gulp-flow v2.0.1
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-flowUsage
gulpfile.js
let flow = require('gulp-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 gulpor
NODE_ENV=dev gulpgulpfile.js
// cfg.env output: dev
console.log(cfg.env);
// NODE_ENV output: development
// Why? Because it's a convention of the Node.js sphere ;)
// See envlist module for more details
console.log(process.env.NODE_ENV);
console.log(flow.envList.NODE_ENV);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 |
![]() |
7 years ago
7 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
12 years ago
