Skip to content

Commit

Permalink
fix: yarn dev not building dev client assets first
Browse files Browse the repository at this point in the history
  • Loading branch information
BobbyWibowo committed Feb 25, 2023
1 parent b0a2cb8 commit 807f153
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down Expand Up @@ -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')))
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 807f153

Please sign in to comment.