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

Create a CLI #205

Open
mcmire opened this issue Jul 7, 2023 · 0 comments
Open

Create a CLI #205

mcmire opened this issue Jul 7, 2023 · 0 comments

Comments

@mcmire
Copy link
Contributor

mcmire commented Jul 7, 2023

If we want to make a new project derived from this template, the only way is to go to this repo and pressing the "Use this template" button. But this will add a new repo to our GitHub organization right away, and sometimes we don't want to do that, especially if we're building a prototype and don't know if the new project something we'll want to keep long-term.

It would be nice if we could run something like:

yarn create @metamask/module <project-name>

This would act similar to create-react-app. That is, given the name of a project, it would:

  • create a new directory locally
  • initialize it as a Git repo
  • replace all instances of "metamask-module-template" (in package.json, README, etc.) with the name of the project
  • remove the "Examples" section from .github/PULL_REQUEST_TEMPLATE
  • add an initial commit (called "Initial commit")
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

No branches or pull requests

1 participant