Home

Awesome

gulp-flow-remove-types

Build Status Coverage Status

Gulp plugin for flow-remove-types.

Installation

Install the package:

Usage

var gulp = require('gulp'),
    flowRemoveTypes = require('gulp-flow-remove-types');


gulp.src('file.js')
    .pipe(flowRemoveTypes())
    .pipe(gulp.dest('dist'));

Options

pretty

Type: boolean Default: false

By default, flow-remove-types replaces Flow type definitions with whitespaces.

Pass {pretty: true} if you want more condensed output (no whitespaces).

Example
gulp.src('file.js')
    .pipe(flowRemoveTypes({
        pretty: true
    }))
    .pipe(gulp.dest('dist'));

sourceMap

Type: boolean Default: false

If set to true gulp will additionally output your_file_name.js.map file to the stream.

Example
gulp.src('file.js')
    .pipe(flowRemoveTypes({
        sourceMap: true
    }))
    .pipe(gulp.dest('dist')); //This will output both file.js and file.js.map