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

script does not copy .css files when running against dirs #73

Open
santospatrick opened this issue Nov 7, 2018 · 1 comment
Open

script does not copy .css files when running against dirs #73

santospatrick opened this issue Nov 7, 2018 · 1 comment

Comments

@santospatrick
Copy link

directory example:

├── src
|   └── components
|       └── MyComponent
|           ├── MyComponent.jsx   # with flow types
|           ├── MyComponent.css

After running the following command i get this:

flow-remove-types src/ --out-dir dest/
├── dest
|   └── components
|       └── MyComponent
|           ├── MyComponent.jsx   # without flow types
|           ├── # where is my .css file?
@motiz88
Copy link
Contributor

motiz88 commented Feb 15, 2019

I suppose we could add a simple flag to copy all files, like Babel's CLI has. For front-end builds, though (which I'm guessing this is because of the .jsx and .css) I think you're better off using @babel/plugin-transform-flow-strip-types inside whatever build process you already have, which probably already includes Babel. This package isn't intended to replace Webpack or Gulp (etc).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants