0.1.1 • Published 8 years ago
flow-up v0.1.1
flow-up
Easy flowtypeing.
JSONconfiguration for flow.@flowpragma writing to your files. Easyflowtypeing.
Install
$ npm install --save-dev flow-upOr if you're using Yarn:
$ yarn add flow-up --devUsage
flowup [opts] [filename ...]In real world, it'd look something like:
flowup --pragma "src/**/*js"NOTE: Don't forget to wrap globs in quotes. Look for valid glob patters here.
Options
Flowup has got minimal options at present:
--config, --no-config
Syntax : flowup --config
Writes .flowconfig at the project root based on flow config provided in package.json file. Typically as:
{
"flow": {
"include": ["src", "app"],
"ignore": ["node_modules"]
}
}--pragma, --no-pragma
Syntax : flowup --pragma <file-glob>
Tests for flow pragma in the files that match the glob pattern you provide. If not found, it'll add it to the file.
Defaults
config: true
pragma: false
Todo
- Test cases
- Run flow (
flow-bin) fromflowup - Smarter flow pragma additions
- More options
License
MIT © Yatharth Khatri