I have this code so far:
gulp.task('make_prod_aa', function () {
makeAppHtml(config.srcAalHtml, function () {
runSequence(
'makeTemplate',
'make_css_bundle',
'rename_css_bundle',
'make_js_bundle',
'rename_js_bundle',
function () {
makeAppIndex('index-aa.html');
});
});
});
It allows me to pass parameters into two functions and runs the functions and the tasks all in order. Now I would like to pass parameters into a third task. I want to be able to pass the config.aaTemplates
parameter to the task makeTemplate which is here:
gulp.task('makeTemplate', function () {
return gulp.src(config.aaTemplates)
.pipe(print(function (file) {
return "Added file " + file + " to template";
}))
.pipe(minifyHTML({ collapseWhitespace: true }))
.pipe(templateCache({ standalone: true, root: '/app' }))
.pipe(gulp.dest(config.destPartials))
.pipe(gzip(gzip_options))
.pipe(gulp.dest(config.destPartials));
});
Would appreciate any suggestions on how I can do this.