On Github kmathur7 / Gulpjs_presentation
npm init // initialize package.json
npm install -g gulp // global installation
npm install gulp --save-dev // local installation
var gulp = require('gulp'); //importing node package gulp.task('default',function(){ console.log('Hello World'); });
require('gulp')
gulp.task
http://gulpjs.com/plugins
var gulp = require('gulp'); var uglify = require('gulp-uglify'); gulp.task('scripts', function(){ gulp.src('js/*.js') .pipe(uglify()) .pipe(gulp.dest('build/js')); }); gulp.task('default',['scripts']);