Skip to content

Wain-PC/gulp-flow-remove-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-flow-remove-types

Build Status Coverage Status

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

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 

About

Gulp plugin for flow-remove-types

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published