Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
gulp.task('min', () => {
return gulp
.src(['./src/bld/pptxgen.gulp.js'])
.pipe(concat('pptxgen.min.js'))
.pipe(uglify())
.pipe(insert.prepend('/* PptxGenJS ' + pkg.version + ' @ ' + new Date().toISOString() + ' */\n'))
.pipe(source.init())
.pipe(ignore.exclude(['**/*.map']))
.pipe(source.write('./'))
.pipe(gulp.dest('./dist/'))
})
module.exports = function() {
gulp.src(sassFiles)
.pipe(parseSettings())
// .pipe(order(fileOrder))
.pipe(ignore.exclude(function(file) {
return file.contents.length === 0;
}))
.pipe(concat('_settings.scss'))
.pipe(map(function(contents, filename) {
return titleText + '\n\n' + contents.toString();
}))
.pipe(gulp.dest('.'));
}
gulp.task('bower', function(cb) {
return $.bower('.tmp/lib')
.pipe(exclude('!**/*.{js,css,map}'))
.pipe(exclude('**/test/**'))
.pipe(exclude('**/tests/**'))
.pipe(exclude('**/modules/**'))
.pipe(exclude('**/demos/**'))
.pipe(exclude('**/src/**'))
.pipe(gulp.dest('dist/lib'));
});
gulp.task('bower', function() {
return bower('.tmp/lib')
.pipe(exclude('**/README.md'))
.pipe(exclude('**/test/**'))
.pipe(exclude('**/tests/**'))
.pipe(exclude('**/demos/**'))
.pipe(exclude('**/demo.html'))
.pipe(exclude('**/bower.json'))
.pipe(exclude('**/.bower.json'))
.pipe(gulp.dest('dist/lib'));
});
gulp.task('prettify', function() {
gulp.src(patterns)
.pipe(gulpIgnore.exclude(IgnoreSass))
.pipe(prettify({
indent_size: 2
}))
.pipe(gulp.dest(function(file) {
return file.base;
}));
});
paths.ignore.forEach(function(filename) {
src = src.pipe(gulpIgnore.exclude(filename));
});
}
paths.ignore.forEach(function(filename){
src = src.pipe(gulpIgnore.exclude(filename));
});
}
paths.ignore.forEach(function(filename){
src = src.pipe(gulpIgnore.exclude(filename));
});
}
paths.ignore.forEach(function(filename){
src = src.pipe(gulpIgnore.exclude(filename));
});
}
paths.ignore.forEach(function(filename){
src = src.pipe(gulpIgnore.exclude(filename));
});
}