MirkoHernandez / generator-gulp-b

A simple gulp yeoman generator.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

generator-gulp-b

A generator that creates a gulpfile. It also enables easy customization using subgenerators.

Installation

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.

Subgenerators

Browsersync

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

Sass

A subgenerator that installs a task to compile sass.

yo gulp-b:sass

Using the sass task:

npx gulp sass

Rollup

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';

License

MIT © Mirko Hernandez

About

A simple gulp yeoman generator.

License:MIT License


Languages

Language:JavaScript 100.0%