fix: yarn dev not building dev client assets first

This commit is contained in:
Bobby 2023-02-25 18:09:24 +07:00
parent b0a2cb8ec1
commit 807f153324
No known key found for this signature in database
GPG Key ID: 941839794CBF5A09
2 changed files with 4 additions and 2 deletions

View File

@ -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')))

View File

@ -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",