1.1.4 • Published 2 years ago
@o-az/template-ts v1.1.4
NOTE: You are welcome to ask any questions if anything is unclear. Also feel free to post a discussion
TypeScript / Node.js Template
Requires Node.js LTS (v20 or later) and pnpm v8 or higher
Stack
TypeScriptpnpmpackage managervitesttest runnerCommonJSandESMsupportBiomefor linting and formatting- CI with GitHub Actions
- Publish to
npmregistry, GitHub Packages, Docker Hub and GitHub Container Registry withpnpm(seepublish.yml)
- VSCode ready (see .vscode)
Getting started
Clone repository
git clone https://github.com/o-az/template-ts.git && cd template-tsInstall dependencies
pnpm installCopy .env.example to .env and modify as needed
cp .env.example .envRun development server
pnpm devrun tests
pnpm testrun build and start production server
pnpm build && pnpm startto run a one-off TypeScript file
node --import=tsx path/to/file.tsPublish Package
This will trigger publish workflow in GitHub Actions
pnpm release