Gulp Flowgen
Gulp Plugin for Flowgen.
TypeScript Setup Example
const gulp = require('gulp')
const merge = require('merge-stream')
const typescript = require('gulp-typescript')
const flowgen = require('gulp-flowgen')
const tsOptions = require('./tsconfig.json').compilerOptions
const tsProject = typescript.createProject(tsOptions)
const build = () => {
const tsResult =
gulp.src('**/*.ts')
.pipe(tsProject())
return merge(
tsResult.js,
tsResult.dts,
tsResult.dts.pipe(flowgen())
)
.pipe(gulp.dest(tsOptions.outDir))
}