Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kube/gulp-flowgen
Gulp plugin for Flowgen: Generate Flowtype definition files from TypeScript.
https://github.com/kube/gulp-flowgen
flowgen flowtype gulp gulpplugin typescript
Last synced: 2 days ago
JSON representation
Gulp plugin for Flowgen: Generate Flowtype definition files from TypeScript.
- Host: GitHub
- URL: https://github.com/kube/gulp-flowgen
- Owner: kube
- Created: 2017-04-16T12:46:47.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-16T13:15:14.000Z (almost 8 years ago)
- Last Synced: 2024-12-27T12:10:02.055Z (about 2 months ago)
- Topics: flowgen, flowtype, gulp, gulpplugin, typescript
- Language: TypeScript
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Gulp Flowgen
============Gulp Plugin for [Flowgen](https://github.com/joarwilk/flowgen).
TypeScript Setup Example
------------------------```js
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())// Merge JavaScript output, TypeScript definition files, and a Flow definition files created from the TypeScript dts stream
return merge(
tsResult.js,
tsResult.dts,
tsResult.dts.pipe(flowgen())
)
.pipe(gulp.dest(tsOptions.outDir))
}
```