Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

readme.md

Outline

@taskr/unflow npm

Removes Flow type annotations with Taskr.

Install

$ npm install --save-dev @taskr/unflow

Usage

exports.build = function * (task) {
  yield task.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.js entry will also generate a foo.js.map file.

Support

Any issues or questions can be sent to the Taskr monorepo.

Please be sure to specify that you are using @taskr/unflow.

License

MIT © Luke Edwards

Morty Proxy This is a proxified and sanitized view of the page, visit original site.