Skip to content

kentcdodds/dist-flow-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dist-flow-example

This is just an example that shows how to distribute flow types for modules which use babel and/or rollup. In this example, we have src/browser-module and src/node-module to demonstrate each. The rollup example could use the flow gen-flow-files command except it suffers from this issue. So instead, you can forward all exports in a file with the same name with .flow. See the output in the dist directory and the scripts in the package.json.

I created this for this blog post where I talk about doing this for my project paypal-scripts.

About

An example of how to distribute flow types for modules transpiled with babel and modules bundled with rollup.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published