@stephanbit/flow

A generator using gulp task runner. Speed up your development with templates. This Version is a little bit refactored and full in ES6 written.

this package has benn deprecated use eze-cli
Last updated 3 years ago by stephanbit .
MIT · Original npm · Tarball · package.json
$ cnpm install @stephanbit/flow 
SYNC missed versions from official npm registry.

FLOW v2.0.0

A generator using gulp task runner. Speed up your development with templates. This Version is a little bit refactored and full in ES6 written.

How do I get set up?

Install flow globally with:

npm install @stephanbit/flow -g

Usage

flow <generator>[:<task>] [<args>]
  • <tasks>: a colon (":") separated list of a task or tasks to run. If not provided the default task in the flow file is run
  • <args>: any other given arguments (not prefixed with "--" or "-") can be accessed via the gulp.args property from within a flow file

Example:

flow cfw:module myModule

Which will run task module in generator flow-cfw and gulp.args will be set to ["myModule"].

List available generators

If run without any arguments, flow will list all installed generators.

flow

List available tasks in generator

To list available tasks within a generator, use the generator name in conjunction with the --tasks parameter.

flow <generator> --tasks

Print version(s)

As usual you can use -v or --version to get the current flow version:

flow -v

It can also be used together with a generator name:

flow <generator> -v

You'll then get the version for flow, the gulp version installed in the generator and the version number of the given generator.

Creating a generator

A Flow generator is an npm package following the naming convention flow-* and containing a flow.js file.

Add flowgenerator as a keyword in your package.json.

As when building gulp plugins all flow generators need to have gulp installed as a local dependency.

All flow-* packages should be installed globally (for now) to be found by the flow executable.

Note remember to add gulp plugins (and gulp itself) as ordinary dependencies, instead of devDependencies, when building a flow generator.

Current Tags

  • 2.0.0                                ...           latest (3 years ago)

5 Versions

  • 2.0.0 [deprecated]           ...           3 years ago
  • 1.0.3 [deprecated]           ...           3 years ago
  • 1.0.2 [deprecated]           ...           3 years ago
  • 1.0.1 [deprecated]           ...           3 years ago
  • 1.0.0 [deprecated]           ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 2
Last Day 1
Last Week 0
Last Month 3
Dependencies (9)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |