gulp-flowcheck

0.4.0 • Public • Published

Gulp-Flowcheck

A gulp plugin for Flow.

Build Status Code Climate

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())
    ...

Readme

Keywords

Package Sidebar

Install

npm i gulp-flowcheck

Weekly Downloads

5

Version

0.4.0

License

BSD-3-Clause

Last publish

Collaborators

  • rwhogg