1.1.4 • Published 12 months ago

@o-az/template-ts v1.1.4

Weekly downloads
-
License
GPT-v3-or-later
Repository
github
Last release
12 months ago

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 manager
  • vitest test runner
  • CommonJS and ESM support
  • Biome for linting and formatting
  • CI with GitHub Actions
  • Publish to npm registry, GitHub Packages, Docker Hub and GitHub Container Registry with pnpm (see publish.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

select version, it will create git tags and push to remote

Lastly, you should modify the workflows in .github/workflows to suit your needs

1.1.4

12 months ago

1.1.3

12 months ago

1.1.2

12 months ago

2.0.0

2 years ago

1.0.0

2 years ago