1.1.4 • Published 12 months 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
TypeScript
pnpm
package managervitest
test runnerCommonJS
andESM
supportBiome
for linting and formatting- CI with GitHub Actions
- Publish to
npm
registry, 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-ts
Install dependencies
pnpm install
Copy .env.example
to .env
and modify as needed
cp .env.example .env
Run development server
pnpm dev
run tests
pnpm test
run build and start production server
pnpm build && pnpm start
to run a one-off TypeScript file
node --import=tsx path/to/file.ts
Publish Package
This will trigger publish workflow in GitHub Actions
pnpm release