A minimal starting point for building a Node.js library in TypeScript.
- Compile with TypeScript.
- Lint with ESLint.
- Test with Node.js Test Runner.
- GitHub CI for continuous integration.
- Manage dependencies with pnpm.
- Run
node bootstrap.js, and follow the prompts. - Check the generated
README.mdfor further instructions.
- Choose a license to use, and replace the
LICENSEfile and thelicensefield inpackage.json. - Search for all placeholder values in
package.json(via searchingplaceholder) and replace them. - Install dependencies with
pnpm installand update them withpnpm up --latest.- Install pnpm if you haven't.
- Replace the contents of this README with a description of your library.
After setting up, you can use the following commands:
pnpm build– compile TypeScript fromsrc/intodist/.pnpm build:watch– recompile on every file change.
pnpm test– run unit tests fromsrc/**/*.spec.ts.- Don't forget to run
pnpm buildbefore running tests!
- Don't forget to run
pnpm lint– run ESLint on the source code.pnpm clean– remove thedist/directory.
This template is Unlicensed.