fix watch
This commit is contained in:
parent
7ea207df5d
commit
e9ba81149d
10
gulpfile.ts
10
gulpfile.ts
@ -92,7 +92,9 @@ gulp.task('build', gulp.parallel(
|
|||||||
|
|
||||||
gulp.task('default', gulp.task('build'));
|
gulp.task('default', gulp.task('build'));
|
||||||
|
|
||||||
gulp.watch([
|
gulp.task('watch', () => {
|
||||||
'./src/**/*',
|
gulp.watch([
|
||||||
'!./src/client/**/*'
|
'./src/**/*',
|
||||||
], gulp.task('build'));
|
'!./src/client/**/*'
|
||||||
|
], { ignoreInitial: false }, gulp.task('build'));
|
||||||
|
});
|
||||||
|
10
package.json
10
package.json
@ -11,18 +11,16 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node ./index.js",
|
"start": "node ./index.js",
|
||||||
"start-product": "cross-env NODE_ENV=production node ./index.js",
|
|
||||||
"init": "npm run migrate",
|
"init": "npm run migrate",
|
||||||
"ormconfig": "node ./built/ormconfig.js",
|
"ormconfig": "node ./built/ormconfig.js",
|
||||||
"migrate": "ts-node ./node_modules/typeorm/cli.js migration:run",
|
"migrate": "ts-node ./node_modules/typeorm/cli.js migration:run",
|
||||||
"migrateandstart": "npm run migrate && npm run start",
|
"migrateandstart": "npm run migrate && npm run start",
|
||||||
"build": "webpack && gulp build",
|
"build": "npm run build-webpack && npm run build-gulp",
|
||||||
"build-product": "cross-env NODE_ENV=production webpack && gulp build",
|
"build-webpack": "webpack",
|
||||||
"webpack": "webpack",
|
"build-gulp": "gulp build",
|
||||||
"watch": "concurrently \"npm:watch-*\"",
|
"watch": "concurrently \"npm:watch-*\"",
|
||||||
"watch-webpack": "webpack --watch",
|
"watch-webpack": "webpack --watch",
|
||||||
"watch-gulp": "gulp --watch",
|
"watch-gulp": "gulp watch",
|
||||||
"gulp": "gulp build",
|
|
||||||
"clean": "gulp clean",
|
"clean": "gulp clean",
|
||||||
"cleanall": "gulp cleanall",
|
"cleanall": "gulp cleanall",
|
||||||
"lint": "tslint 'src/**/*.ts'",
|
"lint": "tslint 'src/**/*.ts'",
|
||||||
|
Loading…
Reference in New Issue
Block a user