Skip to content

Repository files navigation

Starter TS

I love TypeScript!

Project's branding image

starter-ts TypeScript heart icon

npm version npm downloads Codecov Bundlejs TypeDoc

Notes (remove this section when you use the template)

* Do a global replace for starter-ts and NamesMT

* Notable behaviors:

Overview

starter-ts is my starter/boilerplate for typescript projects. This template assumes you are using Linux, or the included Dev Container.

Features

Usage

Install package

# npm
npm install starter-ts

# bun
bun add starter-ts

# pnpm
pnpm install starter-ts

Import and use

// ESM
import { hello } from 'starter-ts'

hello('world')

Releasing

Releases are version-first and dispatched by hand: one workflow run does the whole release, so a git push on its own never publishes anything.

  1. Go to Actions → Release → Run workflow and give it the version to ship, e.g. 0.2.0.
  2. .github/workflows/release.yml verifies the version, lints/type-checks/tests, then lets changelogen write the changelog, bump package.json, commit and tag v<version>. It pushes that commit and tag, creates the GitHub release, and publishes to npm with a short-lived OIDC token and --provenance.

Tick dry-run to do everything up to the commit and stop there — nothing is written back.

Locally, pnpm run release:check <version> validates a version against package.json, and pnpm run release:preview prints the changelog the next release would get.

One-time setup: publish the package once by hand (npm only offers a trusted publisher for a package that already exists), then on npmjs.com enable Settings → Publishing access → Trusted Publishing for namesmt/starter-ts with the workflow filename release.yml.

Roadmap

  • Become the legendary 10000x developer

License

License

About

Opinionated starter template for TypeScript library (DevContainer included)

Topics

Resources

Stars

11 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages