gulp-flow
gulp-flow
helps to organize and re-use a collection of tasks.
This is the base package to create a more sophisticated workflow.
Requirements
- >= Node v8 (v8 or +)
- >= Gulp v4 (v4 or +)
Install
gulp-flow
requires Gulp 4.
- Install Gulp 4 CLI tools globally:
npm install gulpjs/gulp-cli -g
- Install Gulp 4 into your project:
npm install --save-dev gulp
- Install Gulp flow:
npm install --save-dev gulp-flow
Usage
gulpfile.js
let flow = ;let cfg gp pipes utils envList = flow;
Config
TODO: cfg
Environment
gulp-flow
use the envlist module to finely manage and consolidate the environments.
See envlist module for more details.
Recommended way:
APP_ENV=dev gulp
or
NODE_ENV=dev gulp
gulpfile.js
// cfg.env output: devconsole; // NODE_ENV output: development// Why? Because it's a convention of the Node.js sphere ;)// See envlist module for more detailsconsole;console;
Also you can ensure the environment directly in your tasks with flow.envList.ensure()
or the shortcut flow.ensureEnv()
.
Gulp plugins
TODO: gp
Pipes
TODO: pipes
Bundles
TODO: bundles
Utils
TODO: utils
LICENSE
MIT (c) 2016, Nicolas Tallefourtane.
Author
Nicolas Talle |