diff --git a/gulpfile.js b/gulpfile.js index a7a9e20..32fc777 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -154,6 +154,8 @@ gulp.task('build:js', () => { gulp.task('build', gulp.parallel('build:sass', 'build:css', 'build:fontello', 'build:js')) +gulp.task('build-dev', gulp.series('clean', 'build')) + /** TASKS: VERSION STRINGS */ gulp.task('exec:bump-versions', cb => { @@ -216,4 +218,4 @@ gulp.task('nodemon', cb => { }) }) -gulp.task('watch', gulp.series('clean', 'build', gulp.parallel('watch:src', 'nodemon'))) +gulp.task('watch', gulp.series('clean', 'build', gulp.parallel('nodemon', 'watch:src'))) diff --git a/package.json b/package.json index 888b592..d4e2c67 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "pm2": "env NODE_ENV=production pm2 start ./lolisafe.js", "lint": "gulp lint", "build": "gulp default", - "dev": "env NODE_ENV=development node ./lolisafe.js", + "dev": "env NODE_ENV=development gulp build-dev && env NODE_ENV=development node ./lolisafe.js", "dev:reload": "env NODE_ENV=development gulp watch", "migrate": "node ./scripts/migrate.js", "bump-versions": "node ./scripts/bump-versions.js",