Skip to content

Commit

Permalink
update gulp to 4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed Oct 30, 2018
1 parent 036c369 commit 5c69fb6
Show file tree
Hide file tree
Showing 3 changed files with 1,509 additions and 472 deletions.
8 changes: 4 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ const babel = require('gulp-babel');
const cachebust = require('gulp-cache-bust');

const debug = process.env.NODE_ENV !== 'production';
let defaultTasks = [ 'app-js', 'tracker-js', 'sass', 'html', 'img', 'fonts' ] ;

gulp.task('default', defaultTasks);

gulp.task('app-js', function () {
let stream = browserify({
Expand Down Expand Up @@ -75,10 +73,12 @@ gulp.task('sass', function () {
.pipe(gulp.dest(`./assets/build/css`))
});

gulp.task('watch', ['default'], function() {
gulp.task('default', gulp.series('app-js', 'tracker-js', 'sass', 'html', 'img', 'fonts' ) );

gulp.task('watch', gulp.series('default', function() {
gulp.watch(['./assets/src/js/**/*.js'], ['app-js', 'tracker-js'] );
gulp.watch(['./assets/src/sass/**/**/*.scss'], ['sass'] );
gulp.watch(['./assets/src/**/*.html'], ['html'] );
gulp.watch(['./assets/src/img/**/*'], ['img'] );
gulp.watch(['./assets/src/fonts/**/*'], ['fonts'] );
});
}));
Loading

0 comments on commit 5c69fb6

Please sign in to comment.