|
1 | 1 | <h1 align="center">Template TypeScript Node Package</h1>
|
2 | 2 |
|
3 |
| -<p align="center">Template TypeScript Node.js package with all the CI bells & whistles I commonly use. ✨</p> |
| 3 | +<p align="center">A quickstart-friendly TypeScript package with lots of great repository tooling. ✨</p> |
4 | 4 |
|
5 | 5 | <p align="center">
|
6 | 6 | <a href="#contributors" target="_blank">
|
@@ -64,6 +64,29 @@ To use this template:
|
64 | 64 |
|
65 | 65 | > The setup script removes the `## Explainer` and `## Setup` from this README.md.
|
66 | 66 |
|
| 67 | +### Setup Options |
| 68 | + |
| 69 | +The setup script requires four options to fill out repository details. |
| 70 | +It will interactively prompt for any that are not provided as a string CLI flag: |
| 71 | + |
| 72 | +1. `repository`: The kebab-case name of the repository (e.g. `template-typescript-node-package`) |
| 73 | +2. `title`: Title Case title for the repository to be used in documentation (e.g. `Template TypeScript Node Package`) |
| 74 | +3. `owner`: GitHub organization or user the repository is underneath (e.g. `JoshuaKGoldberg`) |
| 75 | +4. `description`: Sentence case description of the repository (e.g. `A quickstart-friendly TypeScript package with lots of great repository tooling. ✨`) |
| 76 | + |
| 77 | +Additionally, a `--skip-api` boolean CLI flag may be specified to prevent the setup script from calling to GitHub APIs for repository hydration. |
| 78 | +The script normally posts to GitHub APIs to set information such as repository description and branch protections on github.com. |
| 79 | +Specifying `--skip-api` prevents those API calls, effectively limiting setup changes to local files in Git. |
| 80 | +Doing so can be useful to preview what running setup does. |
| 81 | + |
| 82 | +For example, pre-populating all values and skipping API calls: |
| 83 | + |
| 84 | +```shell |
| 85 | +pnpm run setup --repository "testing-repository" --title "Testing Title" --owner "TestingOwner" --description "Test Description" --skip-api |
| 86 | +``` |
| 87 | + |
| 88 | +> Tip: after running `pnpm run setup` with `--skip-api`, you can always `git add -A; git reset --hard HEAD` to completely reset all changes. |
| 89 | +
|
67 | 90 | ## Usage
|
68 | 91 |
|
69 | 92 | ```shell
|
|
0 commit comments