1.0.0 • Published 9 years ago
fly-unflow v1.0.0
fly-unflow 
Removes Flow type annotations with Fly
Install
npm install --save-dev fly-unflowUsage
exports.build = function * (fly) {
yield fly.source('src/**/*.js').unflow({
all: false,
sourceMap: 'inline'
}).target('lib');
};API
.unflow(options)
options.all
Type: Boolean
Default: true
Transforms all files; not just those with a "@flow" comment.
options.pretty
Type: Boolean
Default: true
Remove whitespace where annotations used to be. See here for more info.
options.sourceMap
Type: String
Options: internal|external
Default: ''
Create an inline or an external sourcemap for each entry file. A sourceMappingURL comment is appended to each destination file.
If using external maps, a
foo.jsentry will also generate afoo.js.mapfile.
License
MIT © Luke Edwards
1.0.0
9 years ago