Permalink
49 lines (31 sloc) 908 Bytes

Getting Started

If you've previously installed gulp globally, run npm rm --global gulp before following these instructions.

Install the gulp command

npm install --global gulp-cli

Install gulp in your devDependencies

Run this command in your project directory:

npm install --save-dev gulp

Create a gulpfile

Create a file called gulpfile.js in your project root with these contents:

var gulp = require('gulp');

gulp.task('default', function() {
  // place code for your default task here
});

Test it out

Run the gulp command in your project directory:

gulp

Voila! The default task will run and do nothing.

To run multiple tasks, you can use gulp <task> <othertask>.

Where do I go now?