¡Esta es una revisión vieja del documento!
$ npm install <module> --save
$ npm install <module> --save-dev
var gulp = require('gulp');
gulp.task('default', function() {
// place code for your default task here
});
Execute it:
$ gulp
If there was not a default but, for ex., deploy:
$ gulp deploy
var gulp = require('gulp')
gulp.task('deploy', function () {
return gulp.src('app/*.js')
.pipe(gulp.dest('dist'));
});
remember to return so there was another task which depended of this could use it
gulp.task('deploy', ['prior-task1', 'prior-task2'], function () { ...
With reload installed you can do reload -b into your root path an it will automatically reload when some of its inner files change.