|
| 1 | +Node.js TypeScript Template |
| 2 | +=========================== |
| 3 | +This is a **template repo** for Node.js projects written in TypeScript. This template works for libraries and/or CLIs. |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | +Step 1: Copy this repo |
| 8 | +--------------------------------------------- |
| 9 | +Create a new git repo and copy the contents of this repo into it. |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | +Step 2: Delete unneeded files |
| 14 | +--------------------------------------------- |
| 15 | +If you **don't** need a CLI, then: |
| 16 | + - Delete the following files and directories: |
| 17 | + - `bin` |
| 18 | + - `src/cli` |
| 19 | + - `test/specs/cli.spec.js` |
| 20 | + - `test/utils/project-cli-name.js` |
| 21 | + - Delete the following fields in `package.json`: |
| 22 | + - `bin` |
| 23 | + - `files.bin` |
| 24 | + - `devDependencies.chai-exec` |
| 25 | + - `dependencies.command-line-args` |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | +Step 3: Replace placeholders |
| 30 | +--------------------------------------------- |
| 31 | +Replace all occurrences of the following placeholders in all files: |
| 32 | + |
| 33 | +|Placeholder |Description |
| 34 | +|:----------------------------------|:------------------------------------------------------------ |
| 35 | +|`project-package-name` |This is the name of the NPM package. It should also match the GitHub repo name. It should be kebab-cased. |
| 36 | +|`project-cli-name` |The name of the CLI program for this project, if any. |
| 37 | +|`projectExportName` |The name of the library's default export, if any. This should be a valid JavaScript identifier name. |
| 38 | +|`Friendly Project Name` |This is the human friendly name of the project that is used in the ReadMe, descriptions, and docs pages |
| 39 | +|`This is the project description` |A short, human friendly description of the project that is used in the ReadMe and package.json |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | +Step 4: TODOs |
| 44 | +--------------------------------------------- |
| 45 | +Find all "TODO" notes in the code and follow their instructions. |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | +Step 5: ReadMe |
| 50 | +--------------------------------------------- |
| 51 | +Delete this file and replace it with `README_md`. |
0 commit comments