Skip to content
This repository was archived by the owner on May 24, 2019. It is now read-only.

Add --copy-source option (.flow)#64

Closed
clintwood wants to merge 3 commits intofacebookarchive:masterfrom
clintwood:copy-source-option
Closed

Add --copy-source option (.flow)#64
clintwood wants to merge 3 commits intofacebookarchive:masterfrom
clintwood:copy-source-option

Conversation

@clintwood
Copy link
Copy Markdown
Contributor

This PR adds a -c, --copy-source options to Copy typed source with .flow extension to output which Only applies when --out-file or --out-dir options are used.

Using this option will copy src/file.ext to dest/file.ext.flow (where ext is any extension supported by flow-remove-types) anytime there is an output file.

@STRML
Copy link
Copy Markdown

STRML commented Apr 22, 2018

This is very helpful and a nice way to author flow packages.

@clintwood clintwood mentioned this pull request May 7, 2018
@clintwood
Copy link
Copy Markdown
Contributor Author

@leebyron, any chance you could take a look at this PR?

mattgstevens added a commit to mattgstevens/eth-events-interface that referenced this pull request Sep 13, 2018
@clintwood clintwood mentioned this pull request Oct 17, 2018
@motiz88
Copy link
Copy Markdown
Contributor

motiz88 commented Feb 15, 2019

While it's nice from a performance standpoint not to have to read the source files twice, I don't know that this is strictly necessary given that https://github.com/Macil/flow-copy-source exists, and the fact that we have plans to resurrect gen-flow-files as the official solution for generating .js.flow files.

@clintwood
Copy link
Copy Markdown
Contributor Author

All good!

@clintwood clintwood closed this Feb 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants