Macil / flow-copy-source

Script to copy javascript files and append ".flow" to the filename
MIT License
173 stars 13 forks source link

Can it be integrated with Babel build process? #17

Open PolGuixe opened 5 years ago

PolGuixe commented 5 years ago

It may be a basic question, what is the best way to use this script?

Can it be integrated with Babel?

Macil commented 5 years ago

Here's an example of a project using flow-copy-source: https://github.com/StreakYC/react-draggable-list/blob/7e2bc3cfbef39ef092bc3a58c534cdb3bbc67e5b/package.json#L8. Having a prepare line like this run rimraf on the output directory and babel and flow-copy-source is how I'd expect flow-copy-source to be used. I think I'll add a recommendation like this to this project's readme.