If you've previously installed gulp globally, run npm rm --global gulp
before following these instructions.
npm install --global gulp-cli
Run this command in your project directory:
npm install --save-dev gulp
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
});
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>
.