Skip to content

Commit

Permalink
gulp pre-build
Browse files Browse the repository at this point in the history
  • Loading branch information
mcguffin committed Jul 5, 2019
1 parent 75efa51 commit 2c5ab84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ gulp.task( 'js', function(){
} );


gulp.task('build', gulp.parallel('scss','js','js-admin') );
gulp.task('pre-build', gulp.parallel('providers','leaflet-css') );

gulp.task('build', gulp.parallel('pre-build','scss','js','js-admin') );



gulp.task('watch', function() {
Expand All @@ -132,7 +135,7 @@ gulp.task('watch', function() {
gulp.watch('./src/js/**/*.js', gulp.parallel( 'js', 'js-admin' ) );
});

gulp.task( 'dev', gulp.series('build', 'watch') );
gulp.task( 'dev', gulp.series('pre-build', 'build', 'watch') );

gulp.task('default',cb => {
console.log('run either `gulp build` or `gulp dev`');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "A configrable OpenStreetMap Field to ACF.",
"private": true,
"scripts": {
"dev": "gulp providers && gulp leaflet-css && gulp dev",
"dev": "gulp dev",
"build": "gulp build && npm run i18n",
"release": "npm run i18n && node ./src/run/release.js -- build github wporg",
"release:build": "npm run i18n && node ./src/run/release.js -- build",
Expand Down

0 comments on commit 2c5ab84

Please sign in to comment.