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
时间: 2024-10-12 12:44:21