Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A standalone type-annotation strip transform (not depending on React or JSX transform) #15

Closed
fkling opened this issue Nov 18, 2014 · 5 comments
Labels

Comments

@fkling
Copy link

fkling commented Nov 18, 2014

I already started building this, just opened this for tracking.

Currently blocked on benjamn/ast-types/pull/77

@gabelevi
Copy link
Contributor

Ooh, cool! Are you building on recast or completely stand alone?

Internally we do have a recast type-stripping transform, though it needs a little bit of love after I revamped esprima-fb's type parsing. If that's what you need I might be able to clean it up and open source it.

@fkling
Copy link
Author

fkling commented Nov 18, 2014

Yeah, I based it on recast. Didn't know we have this internally, that makes things easier ;) I'd be happy to help out if necessary.

@fkling
Copy link
Author

fkling commented Nov 20, 2014

So, I actually went ahead and created a standalone, recast-based transform: https://github.com/fkling/flow-typestrip (because I was almost done anyway). I'm ready to publish it on npm if everything looks right to you guys legally (i.e. name, license, etc).

@fkling
Copy link
Author

fkling commented Nov 20, 2014

I published it to npm now, I hope that's OK. Since there is only partial support until the ast-types issue is resolved, I don't think it makes sense to advertise it (yet).

@fkling
Copy link
Author

fkling commented Nov 21, 2014

I guess we can close this now. Tool is available through npm install flow-typestrip.

@fkling fkling closed this as completed Nov 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants