Created
January 25, 2015 23:10
-
-
Save anonymous/220f8c0cb46f155afb40 to your computer and use it in GitHub Desktop.
sdtsui's Gulp Cheatsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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