{"id":13768381,"url":"https://github.com/stcheng/gulp-flowtype","last_synced_at":"2026-03-14T09:31:26.649Z","repository":{"id":23472548,"uuid":"26837192","full_name":"stcheng/gulp-flowtype","owner":"stcheng","description":":busts_in_silhouette: Run Facebook's Flow in your gulp pipeline","archived":false,"fork":false,"pushed_at":"2022-12-06T16:05:16.000Z","size":638,"stargazers_count":102,"open_issues_count":15,"forks_count":33,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-06T19:41:04.014Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stcheng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-19T00:41:22.000Z","updated_at":"2023-08-30T18:51:29.000Z","dependencies_parsed_at":"2023-01-13T23:21:26.309Z","dependency_job_id":null,"html_url":"https://github.com/stcheng/gulp-flowtype","commit_stats":null,"previous_names":["charliedowler/gulp-flowtype"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stcheng%2Fgulp-flowtype","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stcheng%2Fgulp-flowtype/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stcheng%2Fgulp-flowtype/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stcheng%2Fgulp-flowtype/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stcheng","download_url":"https://codeload.github.com/stcheng/gulp-flowtype/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238525142,"owners_count":19486809,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T16:01:20.654Z","updated_at":"2025-10-29T11:31:16.712Z","avatar_url":"https://github.com/stcheng.png","language":"JavaScript","readme":"## gulp-flowtype [![Build Status][travis-image]][travis-url] [![NPM version][npm-image]][npm-url] [![Dependency Status][depstat-image]][depstat-url] [![Gitter chat][gitter-image]][gitter-url]\n\n\u003e Run [Facebook's Flow](http://flowtype.org/) in your gulp pipeline\n\n![gulp-flowtype example](screencap.gif)\n\n## Installation\n```shell\n$ npm install --save-dev gulp-flowtype\n```\n\n### Usage\n\n```js\nvar react = require('gulp-react');\nvar flow = require('gulp-flowtype');\n\ngulp.task('typecheck', function() {\n  return gulp.src('./*.js')\n    .pipe(flow({\n        all: false,\n        weak: false,\n        declarations: './declarations',\n        killFlow: false,\n        beep: true,\n        abort: false\n    }))\n    .pipe(react({ stripTypes: true })) // Strip Flow type annotations before compiling\n    .pipe(gulp.dest('./out'));\n});\n```\n\n### Options\n\n##### options.all\nType: `Boolean`\nDefault: `false`\n\u003eTypecheck all files, not just @flow.\n\n##### options.weak\nType: `Boolean`\nDefault: `false`\n\u003eTypecheck with weak inference, assuming dynamic types by default.\n\n##### options.declarations\nType: `String`\nDefault: `empty`\n\u003eThe path to declared files (interfaces) to third-party libraries\n\n##### options.killFlow\nType: `Boolean`\nDefault: `false`\n\u003eKills the Flow server after Typecheck is finished.\n\n##### options.beep\nType: `Boolean`\nDefault: `true`\n\u003eNotify your command prompt of a Typecheck error with a beep\n\n##### options.abort\nType: `Boolean`\nDefault: `false`\n\u003eAbort the gulp task after the first Typecheck error\n\n##### options.reporter\nType: `function`\nDefault: [charliedowler/flow-reporter](https://github.com/charliedowler/flow-reporter)\n\u003eOptionally specify a custom reporter.\n\n## Release History\n * 2016-08-04    v1.0.0    [Improvement] Update dependencies + Add support for new flow format\n * 2016-01-18    v0.4.9    [Improvement] Update dependencies + fix broken code [#38](https://github.com/charliedowler/gulp-flowtype/pull/38)\n * 2015-09-13    v0.4.8    [Fix] Downgrade flow\n * 2015-05-05    v0.4.7    [Improvement] Add option for custom reporter\n * 2015-04-10    v0.4.6    [Fix] Move flow-bin to peerDependencies + [#25](https://github.com/charliedowler/gulp-flowtype/issues/25) Fix abort option\n * 2015-02-24    v0.4.5    [Bump] flow-bin `v0.4.0`\n * 2015-02-15    v0.4.4    [Fix] [#19](https://github.com/charliedowler/gulp-flowtype/issues/19) Reset passed value when finished\n * 2015-02-07    v0.4.3    [Fix] Move dependency from devDependencies to dependencies\n * 2015-02-06    v0.4.2    [Improvement] Add beep, abort on error and option to override flow executable (broken)\n * 2014-12-15    v0.4.1    [Improvement] Performance improvements \u0026 better error handling\n * 2014-11-26    v0.4.0    [Improvement] Tweak success message, check file has `/* @flow */` before running flow and added options\n * 2014-11-23    v0.3.1    [Fix] Changes to previous formatting fix\n * 2014-11-23    v0.3.0    [Fix] Repair formatting issues\n * 2014-11-21    v0.2.0    [Improvement] General improvements\n * 2014-11-19    v0.1.0    Initial release\n\n## Contributing\n1. Write test (if applicable)\n2. Write code\n3. Make tests pass\n4. Execute `npm run lint` and make amendments if needed\n5. Create pull request\n6. Rinse and repeat\n\n## License\n\nMIT © Charlie Dowler\n\n[travis-url]: http://travis-ci.org/charliedowler/gulp-flowtype\n[travis-image]: https://secure.travis-ci.org/charliedowler/gulp-flowtype.png?branch=master\n\n[npm-url]: https://npmjs.org/package/gulp-flowtype\n[npm-image]: https://badge.fury.io/js/gulp-flowtype.png\n\n[travis-url]: http://travis-ci.org/charliedowler/gulp-flowtype\n[travis-image]: https://secure.travis-ci.org/charliedowler/gulp-flowtype.png?branch=master\n\n[depstat-url]: https://david-dm.org/charliedowler/gulp-flowtype\n[depstat-image]: https://david-dm.org/charliedowler/gulp-flowtype.png\n\n[gitter-url]: https://gitter.im/charliedowler/gulp-flowtype\n[gitter-image]: https://badges.gitter.im/gitterHQ/gitter.png\n","funding_links":[],"categories":["Tools"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstcheng%2Fgulp-flowtype","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstcheng%2Fgulp-flowtype","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstcheng%2Fgulp-flowtype/lists"}