File tree Expand file tree Collapse file tree 3 files changed +45
-1
lines changed Expand file tree Collapse file tree 3 files changed +45
-1
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "version" : " 0.2.0" ,
3
+ "configurations" : [
4
+ {
5
+ "name" : " Program" ,
6
+ "preLaunchTask" : " Debug" ,
7
+ "request" : " launch" ,
8
+ "type" : " node" ,
9
+ "program" : " ${workspaceFolder}/bin/PhpMinifier.js" ,
10
+ "args" : [" --mode=fast" , " ${input:input}" ]
11
+ },
12
+ {
13
+ "name" : " Tests" ,
14
+ "request" : " launch" ,
15
+ "type" : " node" ,
16
+ "program" : " ${workspaceFolder}/node_modules/gulp/bin/gulp.js" ,
17
+ "args" : [" test" ]
18
+ }
19
+ ],
20
+ "inputs" : [
21
+ {
22
+ "description" : " The path to the input directory." ,
23
+ "id" : " input" ,
24
+ "type" : " promptString"
25
+ }
26
+ ]
27
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "version" : " 2.0.0" ,
3
+ "tasks" : [
4
+ {
5
+ "label" : " Debug" ,
6
+ "type" : " shell" ,
7
+ "command" : " gulp" ,
8
+ "args" : [" debug" ],
9
+ "problemMatcher" : " $tsc"
10
+ }
11
+ ]
12
+ }
Original file line number Diff line number Diff line change @@ -15,6 +15,11 @@ export async function clean() {
15
15
for ( const file of await readdir ( "var" ) ) if ( file != ".gitkeep" ) await rm ( join ( "var" , file ) , { recursive : true } ) ;
16
16
}
17
17
18
+ /** Builds the project in debug mode. */
19
+ export async function debug ( ) {
20
+ await run ( "npx tsc --build src/tsconfig.json --sourceMap" ) ;
21
+ }
22
+
18
23
/** Builds the documentation. */
19
24
export async function doc ( ) {
20
25
await run ( "npx typedoc --options etc/TypeDoc.js" ) ;
@@ -35,7 +40,7 @@ export async function publish() {
35
40
36
41
/** Runs the test suite. */
37
42
export async function test ( ) {
38
- await run ( "npx tsc --build src/tsconfig.json --sourceMap" ) ;
43
+ await debug ( ) ;
39
44
await run ( "node --enable-source-maps --test" ) ;
40
45
}
41
46
You can’t perform that action at this time.
0 commit comments