gulp-flowcheck
v0.4.0
Published
Gulp plugin for Flow
Downloads
8
Readme
Gulp-Flowcheck
Installation
$ npm install --save-dev gulp-flowcheck;
Usage
var GulpFlow = require("gulp-flowcheck");
var gulpFlow = new GulpFlow();
gulp.task("flow", function()
{
gulp.src("*.js")
.pipe(gulpFlow.check())
.pipe(gulpFlow.reporter());
});
The default reporter uses a JSON format. You'll probably find GulpFlow.markdownReporter()
easier to read.
You can also try GulpFlow.failReporter()
, which does exactly what you think it does.
Automatically adding @flow
headers
You can use gulp-header to add the @flow
headers to your source code
automatically:
var header = require("gulp-header");
gulp.src("*.js")
.pipe(header("/* @flow */"))
.pipe(gulpFlow.check())
...