A generator that creates a gulpfile. It also enables easy customization using subgenerators.
First, do a local installation of the module.
npm link
Then go to the folder in which you want to generate a gulpfile and run the generator.
yo gulp-b .
This will update the package.json file to include gulp.
A subgenerator that installs browsersync and configures the gulpfile with a task that by default watches the dist folder.
yo gulp-b:browsersync
Using the browsersync task:
npx gulp browsersync
A subgenerator that installs a task to compile sass.
yo gulp-b:sass
Using the sass task:
npx gulp sass
A subgenerator that installs a task that runs rollup configured from a config file. By default the modules for bundling must be configured in src/main-rollup.js.
Using the rollup task:
npx gulp rollup
Postcss is also configured in the rollup config file so it is possible import and bundle css files (by default the scss extension is used).
Example:
import '../scss/main.scss';
MIT © Mirko Hernandez