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. Install gulp-concat
$ npm install --save-dev gulp-concat
4. Create a gulpfile.js at the root of your project:
var gulp = require('gulp'),
concat = require("gulp-concat"); gulp.task('packScripts', function() {
gulp.src('Scripts/*.js')
.pipe(concat('all.js'))
.pipe(gulp.dest('Scripts'));
}); gulp.task('packStyles', function() {
gulp.src('Content/*.css')
.pipe(concat('all.css'))
.pipe(gulp.dest('Content'));
}); gulp.task('default', ['packScripts', 'packStyles']);
5. Run gulp:
$ gulp