标签:
https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md
1. Install gulp globally:
$ npm install --global gulp
2. Install gulp in your project devDependencies:
$ cd C:\Work\MyProject $ npm install --save-dev gulp
3. Create a gulpfile.js at the root of your project:
var gulp = require(‘gulp‘); gulp.task(‘packJavaScript‘, function() { gulp.src(‘*.js‘); }); gulp.task(‘packCss‘, function() { gulp.src(‘*.css‘); }); gulp.task(‘default‘, [‘packJavaScript‘, ‘packCss‘]);
4. Run gulp:
$ gulp
标签:
原文地址:http://www.cnblogs.com/zhangpengc/p/5141002.html