File tree Expand file tree Collapse file tree 3 files changed +22
-20
lines changed Expand file tree Collapse file tree 3 files changed +22
-20
lines changed Original file line number Diff line number Diff line change 1- worker : npm run prod:start
1+ worker : npm run prod:build && prod: start
Original file line number Diff line number Diff line change 1- const gulp = require ( ' gulp' ) ;
1+ const gulp = require ( " gulp" ) ;
22const ts = require ( "gulp-typescript" ) ;
33const tslint = require ( "gulp-tslint" ) ;
4- const { resolve } = require ( "path" ) ;
54
65const tsProject = ts . createProject ( "tsconfig.json" ) ;
76
8- gulp . task ( "ts" , ( ) => (
9- tsProject . src ( )
7+ gulp . task ( "ts" , ( ) =>
8+ tsProject
9+ . src ( )
1010 . pipe ( tsProject ( ) )
1111 . js . pipe ( gulp . dest ( "dist" ) )
12- ) ) ;
12+ ) ;
1313
14- gulp . task ( 'tslint' , ( ) => (
15- tsProject . src ( )
16- . pipe ( tslint ( {
17- formatter : 'verbose'
18- } ) )
14+ gulp . task ( "tslint" , ( ) =>
15+ tsProject
16+ . src ( )
17+ . pipe (
18+ tslint ( {
19+ formatter : "verbose"
20+ } )
21+ )
1922 . pipe ( tslint . report ( ) )
20- ) ) ;
21- gulp . task ( 'watch' , ( ) => (
22- gulp . watch ( 'src/**/*.ts' , [ 'ts' ] )
23- ) ) ;
23+ ) ;
24+ gulp . task ( "watch" , ( ) => gulp . watch ( "src/**/*.ts" , [ "ts" ] ) ) ;
2425
25- gulp . task ( "default" , [ "ts" ] ) ;
26+ gulp . task ( "default" , [ "ts" ] ) ;
Original file line number Diff line number Diff line change 66 "author" :
" buoyantair <[email protected] >" ,
77 "license" : " MIT" ,
88 "scripts" : {
9- "start" : " nodemon ./dist/main.js" ,
10- "build" : " gulp watch" ,
11- "test" : " jest" ,
12- "test:watch" : " jest --watch" ,
9+ "start" : " npx nodemon ./dist/main.js" ,
10+ "build" : " npx gulp watch" ,
11+ "test" : " npx jest" ,
12+ "test:watch" : " npx jest --watch" ,
13+ "prod:build" :" npx gulp" ,
1314 "prod:start" : " node ./dist/main.js"
1415 },
1516 "dependencies" : {
You can’t perform that action at this time.
0 commit comments