Skip to content

CLI sub-commands for creating and validating (not publishing yet) external codemods #30

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

Merged
merged 2 commits into from
Jun 20, 2021

Conversation

danieldelcore
Copy link
Contributor

@danieldelcore danieldelcore commented Jun 19, 2021

Adds sub-commands to the cli that initialize, validate codemods external to the community repo.

These codemods will likely be for cases where:

  • They're highly specific to a repo or organisation
  • Need to be private or closed-source
  • Don't want overhead or approval to contribute to this repo

Related issues: #8, #6
Closes: #28, #27

This PR includes:

  • Refactors internal helper scripts
  • Adds initialize, validate commands to CLI

TODO:

  • Init to generate package.json

@danieldelcore danieldelcore force-pushed the cli-sub-commands branch 3 times, most recently from 5097e51 to d25f182 Compare June 20, 2021 23:08
Create a new codemod package called foobar with a transform for version 10
on the Desktop

- `@codeshift/cli init --packageName="foobar" --version"10.0.0" ~/Desktop`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add validate docs

@danieldelcore danieldelcore changed the title CLI sub-commands for publishing external codemods CLI sub-commands for creating and validating (not publishing yet) external codemods Jun 20, 2021
@danieldelcore danieldelcore merged commit b3bd2cd into main Jun 20, 2021
@danieldelcore danieldelcore deleted the cli-sub-commands branch June 20, 2021 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant