0.4.0 • Published 8 years ago

gulp-flowcheck v0.4.0

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
8 years ago

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

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago