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
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:
This would act similar to
create-react-app
. That is, given the name of a project, it would:package.json
,README
, etc.) with the name of the project.github/PULL_REQUEST_TEMPLATE