Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
iamareebjamal committed Mar 2, 2020
1 parent a25bd94 commit 38948a2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/backend/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ exports.minifyJs = function(path, cb) {
const dir = path + '/js/';

gulp.task('scheduleJs', function() {
return gulp.src([dir + 'FileSaver.js', dir + 'social.js', dir + 'scroll.js', dir + 'navbar.js', dir + 'calendar.js', dir + 'popover.js', dir + 'html2canvas.js', dir + 'jquery.lazyload.js', dir + 'icsGen.js'])
return gulp.src([dir + 'FileSaver.js', dir + 'social.js', dir + 'scroll.js', dir + 'navbar.js', dir + 'calendar.js', dir + 'popover.js', dir + 'html2canvas.js', dir + 'jquery.lazyload.js', dir + 'icsGen.js'], {allowEmpty: true})
.pipe(iife({useStrict: false}))
.pipe(concat('schedule.min.js'))
.pipe(babel({presets: ['es2015']}))
Expand Down Expand Up @@ -91,12 +91,12 @@ exports.minifyJs = function(path, cb) {
.pipe(gulp.dest(path + '/js/'));
});

gulp.task('minifyJs', ['speakersJs', 'roomsJs', 'scheduleJs', 'eventJs', 'tracksJs', 'sessionJs', 'mainJs'], function() {
gulp.task('minifyJs', gulp.series('speakersJs', 'roomsJs', 'scheduleJs', 'eventJs', 'tracksJs', 'sessionJs', 'mainJs', function() {
gulp.src(['!' + dir + '*.min.js', dir + '*.js']).pipe(clean());
cb();
});
}));

gulp.start('minifyJs');
gulp.series('minifyJs')();
};

exports.minifyCss = function(path, cb) {
Expand All @@ -109,7 +109,7 @@ exports.minifyCss = function(path, cb) {
});
});

gulp.start('minifyCss');
gulp.series('minifyCss')();
};

exports.minifyHtml = function(path, cb) {
Expand All @@ -122,5 +122,5 @@ exports.minifyHtml = function(path, cb) {
});
});

gulp.start('minifyHtml');
gulp.series('minifyHtml')();
};

0 comments on commit 38948a2

Please sign in to comment.