You can run npx template-typescript-node-package
in your terminal to interactively create a new repository:
npx template-typescript-node-package
Then, go through the following two steps to set up required repository tooling on GitHub:
- Create two tokens in repository secrets (unless you chose to opt out of releases):
ACCESS_TOKEN
: A GitHub PAT with repo and workflow permissionsNPM_TOKEN
: An npm access token with Automation permissions
- Install two GitHub apps:
Your new repository will then be ready for development! Hooray! 🥳
You can explicitly provide some or all of the options the script would prompt for as command-line flags. See Options.md.
For example, running the creation script and skipping all APIs:
npx template-typescript-node-package --mode create --skip-contributors-data --skip-github-api