If you have previously installed a version of gulp globally, please run npm rm --global gulp
to make sure your old version doesn't collide with gulp-cli.
$ npm install --global gulp-cli
{
"name": "package-json-template",
"version": "1.0.0",
"description": "package-description",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "ASNet",
"license": "ISC",
"devDependencies": {
"del": "^2.2.2",
"gulp": "^3.9.1",
"gulp-less": "^3.1.0",
"gulp-minify-css": "^1.2.4",
"gulp-newer": "^1.2.0",
"gulp-rename": "^1.2.2",
"path": "^0.12.7"
}
}
$ npm install
https://github.com/thatONEjustin/gulpjs-common-tasks/blob/master/gulpfile.js
Tasks run as follows: gulp.task('default', ['copy-html', 'scripts', 'bootstrap', 'less', 'cssmin', 'watch']); It's important to note that the new WATCH task is an actual stream, if a file has an error it will kill the task but still keep WATCH running
M:\path\to\site\> gulp