Skip to content
Permalink
Browse files

update gulp to 4.x

  • Loading branch information...
dannyvankooten committed Oct 30, 2018
1 parent 036c369 commit 5c69fb61ec18364acebb7b885cbddd3898f23692
Showing with 1,509 additions and 472 deletions.
  1. +4 −4 gulpfile.js
  2. +1,504 −467 package-lock.json
  3. +1 −1 package.json
@@ -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({
@@ -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'] );
});
}));
Oops, something went wrong.

0 comments on commit 5c69fb6

Please sign in to comment.
You can’t perform that action at this time.