gulp-flow-remove-types
Gulp plugin for flow-remove-types.
Installation
Install the package:
- npm
npm install --save gulp-flow-remove-types
- yarn
yarn add gulp-flow-remove-types
Usage
var gulp = require('gulp'),
flowRemoveTypes = require('gulp-flow-remove-types');
gulp.src('file.js')
.pipe(flowRemoveTypes())
.pipe(gulp.dest('dist'));
Options
By default, flow-remove-types replaces Flow type definitions with whitespaces.
Pass {pretty: true}
if you want more condensed output (no whitespaces).
gulp.src('file.js')
.pipe(flowRemoveTypes({
pretty: true
}))
.pipe(gulp.dest('dist'));