summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-03-13 00:40:35 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-03-13 00:40:35 +0900
commite9ba81149d95a02e699f4dc2222bb785efde97ff (patch)
treef1df133b8c1f125945c743d35c4715d0cf8cc879
parentCreate CHANGELOG.md (diff)
downloadsharkey-e9ba81149d95a02e699f4dc2222bb785efde97ff.tar.gz
sharkey-e9ba81149d95a02e699f4dc2222bb785efde97ff.tar.bz2
sharkey-e9ba81149d95a02e699f4dc2222bb785efde97ff.zip
fix watch
-rw-r--r--gulpfile.ts10
-rw-r--r--package.json10
2 files changed, 10 insertions, 10 deletions
diff --git a/gulpfile.ts b/gulpfile.ts
index 0717d82086..0cdd016fd7 100644
--- a/gulpfile.ts
+++ b/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'));
+});
diff --git a/package.json b/package.json
index d805a5fee8..634182f552 100644
--- a/package.json
+++ b/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'",