mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
fix watch
This commit is contained in:
parent
c1aff9aa61
commit
db0284111e
2 changed files with 10 additions and 10 deletions
10
gulpfile.ts
10
gulpfile.ts
|
@ -92,7 +92,9 @@ gulp.task('build', gulp.parallel(
|
|||
|
||||
gulp.task('default', gulp.task('build'));
|
||||
|
||||
gulp.watch([
|
||||
'./src/**/*',
|
||||
'!./src/client/**/*'
|
||||
], gulp.task('build'));
|
||||
gulp.task('watch', () => {
|
||||
gulp.watch([
|
||||
'./src/**/*',
|
||||
'!./src/client/**/*'
|
||||
], { ignoreInitial: false }, gulp.task('build'));
|
||||
});
|
||||
|
|
10
package.json
10
package.json
|
@ -11,18 +11,16 @@
|
|||
"private": true,
|
||||
"scripts": {
|
||||
"start": "node ./index.js",
|
||||
"start-product": "cross-env NODE_ENV=production node ./index.js",
|
||||
"init": "npm run migrate",
|
||||
"ormconfig": "node ./built/ormconfig.js",
|
||||
"migrate": "ts-node ./node_modules/typeorm/cli.js migration:run",
|
||||
"migrateandstart": "npm run migrate && npm run start",
|
||||
"build": "webpack && gulp build",
|
||||
"build-product": "cross-env NODE_ENV=production webpack && gulp build",
|
||||
"webpack": "webpack",
|
||||
"build": "npm run build-webpack && npm run build-gulp",
|
||||
"build-webpack": "webpack",
|
||||
"build-gulp": "gulp build",
|
||||
"watch": "concurrently \"npm:watch-*\"",
|
||||
"watch-webpack": "webpack --watch",
|
||||
"watch-gulp": "gulp --watch",
|
||||
"gulp": "gulp build",
|
||||
"watch-gulp": "gulp watch",
|
||||
"clean": "gulp clean",
|
||||
"cleanall": "gulp cleanall",
|
||||
"lint": "tslint 'src/**/*.ts'",
|
||||
|
|
Loading…
Reference in a new issue