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

Add more tools #26

Closed
fkling opened this issue Aug 24, 2015 · 7 comments
Closed

Add more tools #26

fkling opened this issue Aug 24, 2015 · 7 comments

Comments

@fkling
Copy link
Owner

fkling commented Aug 24, 2015

There are many more tools besides jscodeshift which could be added to the ast explorer for quick prototyping / testing. For example:

  • eslint plugin development
  • babel plugin development

To make adding new tools easy, some refactoring of the client side code and the DB schema is necessary. I already have a proof of concept commit locally but it still needs more tweaking.

The current idea/plan is that "tools" are React components which are rendered below the code editor and ast panel (just like the transform tool now) and which have access to

  • The current parser
  • The current code
  • An API to highlight parts and show errors in the code editor

Tools would also be able to specify which parsers they work together with. They could render whatever interface they need.

@hzoo
Copy link
Collaborator

hzoo commented Aug 24, 2015

👍 been using this for jscs and babel-eslint. Can be a lot of work to debug/make rules/tests. Awesome stuff @fkling!

@jasonLaster
Copy link

👍

@fkling
Copy link
Owner Author

fkling commented Sep 4, 2015

First step is done: The logic is more split up to allow custom transformers (but not custom views yet).

@jasonLaster
Copy link

nice! can't wait to see that

@fkling
Copy link
Owner Author

fkling commented Sep 4, 2015

@jasonLaster: If you go to http://astexplorer.net/, you can now select between "jscodeshift" and "babel".

@fkling
Copy link
Owner Author

fkling commented Dec 8, 2015

We have support for PostCSS now.

@fkling
Copy link
Owner Author

fkling commented Apr 27, 2016

I'm closing this for now, since we have everything that I originally wanted. In the future, we might also want to give more liberty to tools and let them render whatever they want in their panel (i.e. they wouldn't be restricted to just two text input fields).

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

No branches or pull requests

3 participants