Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
iamareebjamal committed Mar 7, 2020
1 parent a8a724b commit a3d634b
Show file tree
Hide file tree
Showing 3 changed files with 235 additions and 65 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@
"body-parser": "^1.15.2",
"chai": "^4.0.1",
"compression": "^1.6.2",
"cookie-parser": "^1.4.4",
"connect-domain": "^0.5.0",
"cookie-parser": "^1.4.4",
"decompress-zip": "^0.3.0",
"del": "^5.1.0",
"dotenv": "^8.2.0",
"express": "^4.13.4",
"express-session": "^1.15.0",
Expand Down
7 changes: 4 additions & 3 deletions src/backend/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const concat = require('gulp-concat');
const minify = require('gulp-minify-css');
const htmlmin = require('gulp-htmlmin');
const iife = require('gulp-iife');
const clean = require('gulp-clean');
const del = require('del');
// eslint-disable-next-line no-var
var exports = module.exports = {};

Expand Down Expand Up @@ -60,6 +60,7 @@ exports.minifyJs = function(path, cb) {
});

gulp.task('speakersJs', function() {
console.log('>>> Generating speakers.js')
return gulp.src([dir + 'social.js', dir + 'scroll.js', dir + 'navbar.js', dir + 'popover.js', dir + 'jquery.lazyload.js'])
.pipe(iife({useStrict: false}))
.pipe(concat('speakers.min.js'))
Expand Down Expand Up @@ -91,8 +92,8 @@ exports.minifyJs = function(path, cb) {
.pipe(gulp.dest(path + '/js/'));
});

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

Expand Down
Loading

0 comments on commit a3d634b

Please sign in to comment.