Skip to content

Instantly share code, notes, and snippets.

Created January 25, 2015 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/220f8c0cb46f155afb40 to your computer and use it in GitHub Desktop.
Save anonymous/220f8c0cb46f155afb40 to your computer and use it in GitHub Desktop.
sdtsui's Gulp Cheatsheet
gulp = require('gulp');
gulp.task('default', function() {
console.log('gulp!');
});
gulp.task('default2', function() {
console.log('gulp2!');
});
var paths = {
scripts: ['server/*.js'],
html: ['client/index.html'],
dist: 'test/'
};
gulp.task('copyStuff', function(){
console.log('copying..paths :',paths.scripts.concat(paths.html));
gulp.src(paths.scripts.concat(paths.html))
.pipe(gulp.dest(paths.dist));
});
//Note: dist is a string, not an array
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment