Are you tired of always having to manually set up a gulpfile.js for every new project? Me too, that's why I've written this small tool that will generate the gulpfile.js for you, based on your needs.
gulpfile-generator is an interactive tool to help your create your custom gulpfile.js. gulpfile-generator is run as an CLI where you will be asked for what tasks you want in your gulpfile.js. When it is done it will generate a gulpfile.js in the same folder as you are standing in. You can then optionally let it generate a file containing the exact npm command to install the dependencies you need for your gulpfile.js.
Since you probably want to use this tool for multiple projects, it makes sense to let it live in your global node_modules folder (hence the g flag).
npm install -g gulpfile-generatorgulpfile-generatorThis will start up an interactive interface where you should follow the instructions.
- Development server using browser-sync
- JavaScript
- Minification using gulp-uglify
- Concatenation using gulp-concat
- JSHint using gulp-jshint
- Compiling CoffeeScript using gulp-coffee
- Converting ES6 to ES5 using gulp-babel
- CSS
- LESS using gulp-less
- Sass using gulp-sass
- Stylus using gulp-stylus
- Lint using gulp-csslint
- Autoprefixer using gulp-autoprefixer
- Minification using gulp-minify-css (will be replaced by gulp-clean-css)
- Images
- Minification using gulp-imagemin
-
Install dependencies and make CLI available in root
make install link -
Do code changes
-
Run generator with
./gulpfile-generator -
Run linter and tests
make lint test