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

Aster experiments with ESnext #2

Open
mandricore opened this issue Nov 23, 2016 · 0 comments
Open

Aster experiments with ESnext #2

mandricore opened this issue Nov 23, 2016 · 0 comments

Comments

@mandricore
Copy link
Owner

mandricore commented Nov 23, 2016

Experiment with rx-aster for use with ES.next (latest javascript)

First try simple experiments with grasp using grasp-squery and grasp-equery

  • find a class
  • find a function in a class

For each AST match

  • rename identifier
  • delete node with identifier
  • add/remove an import of a module
  • add function to matching class
  • replace class function

To delete an AST node, make a query that finds it, then replace it with an empty string.

rx-aster utilizes the grasp queries under the hood. Familiarize with rx-aster, then integrate your grasp work with rx-aster. While doing so, add tests to rx-aster and make PRs.

For each file with a specific exported class, subclass or file name:

  • add/delete function or class (or function in class)
  • add/remove import or export

These experiments will be the foundation for the chaining API issue

@mandricore mandricore changed the title aster experiments with ESnext Aster experiments with ESnext Dec 1, 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

1 participant