Skip to content

ptmt/gulp-flowtype

 
 

Repository files navigation

gulp-flowtype Build Status NPM version Dependency Status

Run Facebook's Flow in your gulp pipeline

gulp-flowtype example

Installation

$ npm install --save-dev gulp-flowtype

Usage

var flow = require('gulp-flowtype');
gulp.task('typecheck', function() {
  return gulp.src('./*.js')
    .pipe(flow({
        all: false,
        weak: false,
        declarations: './lib/flow'
    }));
});

Options

options.all

Type: Boolean Default: false

Typecheck all files, not just @flow.

options.weak

Type: Boolean Default: false

Typecheck with weak inference, assuming dynamic types by default.

options.declarations

Type: String Default: empty

The path to declared files (interfaces) to third-party libraries

Release History

  • 2014-11-25 v0.3.2 Tweak success message, check file has /* @flow */ before running flow and added options
  • 2014-11-23 v0.3.1 Changes to previous formatting fix
  • 2014-11-23 v0.3.0 Fix formatting issues
  • 2014-11-21 v0.2.0 General improvements
  • 2014-11-19 v0.1.0 Initial release

License

MIT © Charlie Dowler

About

Run Facebook's Flow in your gulp pipeline

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%