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

Make package executeable #11

Open
christian-bromann opened this issue Apr 27, 2021 · 1 comment
Open

Make package executeable #11

christian-bromann opened this issue Apr 27, 2021 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@christian-bromann
Copy link
Member

christian-bromann commented Apr 27, 2021

Rather than calling jscodeshift directly, e.g.:

$ npx jscodeshift -t ./node_modules/@wdio/codemod/protractor ./e2e/

It would be nicer to have a binary exposed that allows us to be more flexible with the codemod execution, e.g. to migrate from v5 to v7 it would be great to just having to call:

$ npx codemod v6 v7

which then calls jscodeshift seperately.

Also the package should automatically detect the files and pick e.g. TypeScript as parser if all files are written that way.

@christian-bromann christian-bromann added the help wanted Extra attention is needed label Apr 27, 2021
@christian-bromann
Copy link
Member Author

In the MoT meetup today someone suggested to make this part of the schematic to allow things like:

$ ng e2e migrate ./specs/**.spec.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant