2.0.1 • Published 7 years ago

gulp-flow v2.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

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 = 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 gulp

or

NODE_ENV=dev gulp

gulpfile.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 Tallefourtane - Nicolab.net
Nicolas Talle
Make a donation via Paypal
2.0.1

7 years ago

2.0.0

7 years ago

1.5.1

8 years ago

1.5.0

8 years ago

1.4.1

8 years ago

1.4.0

8 years ago

1.3.0

8 years ago

1.2.6

9 years ago

1.2.5

9 years ago

1.2.4

9 years ago

1.2.3

9 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago

0.0.0

12 years ago