Skip to content

Instantly share code, notes, and snippets.

@cicorias
Forked from glenasmith/gulpfile.js
Created December 2, 2015 05:05
Show Gist options
  • Save cicorias/51bb231abf06f073963c to your computer and use it in GitHub Desktop.
Save cicorias/51bb231abf06f073963c to your computer and use it in GitHub Desktop.
Zip up your webjob files into a deployable artifact
gulp.task('webjob', function() {
var webjob = "feedFetcher.zip";
del(webjob)
return gulp.src(['parsers/*.js', 'package.json', 'feedFetcher.js'], {base: "."})
.pipe(zip(webjob))
.pipe(gulp.dest('.'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment