File tree 3 files changed +22
-20
lines changed
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" ) ;
2
2
const ts = require ( "gulp-typescript" ) ;
3
3
const tslint = require ( "gulp-tslint" ) ;
4
- const { resolve } = require ( "path" ) ;
5
4
6
5
const tsProject = ts . createProject ( "tsconfig.json" ) ;
7
6
8
- gulp . task ( "ts" , ( ) => (
9
- tsProject . src ( )
7
+ gulp . task ( "ts" , ( ) =>
8
+ tsProject
9
+ . src ( )
10
10
. pipe ( tsProject ( ) )
11
11
. js . pipe ( gulp . dest ( "dist" ) )
12
- ) ) ;
12
+ ) ;
13
13
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
+ )
19
22
. 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" ] ) ) ;
24
25
25
- gulp . task ( "default" , [ "ts" ] ) ;
26
+ gulp . task ( "default" , [ "ts" ] ) ;
Original file line number Diff line number Diff line change 6
6
"author" :
" buoyantair <[email protected] >" ,
7
7
"license" : " MIT" ,
8
8
"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" ,
13
14
"prod:start" : " node ./dist/main.js"
14
15
},
15
16
"dependencies" : {
You can’t perform that action at this time.
0 commit comments