Skip to content

noshiro-pf/typescript-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

283 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typescript-template

Template Repository for TypeScript

Key Features

  • 🛡️ Strict ESLint setup via eslint-config-typed, with jiti enabling a TypeScript eslint.config.mts.
  • 📝 Built-in spelling and formatting checks with cspell / markdownlint / Prettier.
  • 🧪 Vitest for unit testing with coverage; workflows included to upload results to codecov.io.
  • 🔄 CI runs lint / type-check / test, enforces no post-Prettier diffs, and sends coverage to Codecov.
  • 🏗️ build generates per-directory index.mts, removes unused runtime code with Rollup, and runs type checking.
  • 🚀 semantic-release triggers on merges to main, handling versioning, changelog updates, npm publish, and GitHub Releases.
  • 📚 TypeDoc generates docs and auto-deploys them to GitHub Pages.
  • 📦 pnpm provides strict dependency management (pnpm-lock.yaml included).
  • 📦 Dependabot auto-creates PRs for npm dependencies and GitHub Actions updates.
  • 🔐 github-settings-as-code tracks repository settings and rulesets as code, detecting changes via diffs.
  • 🔄 AGENTS.md is shared via submodule to sync operational rules across repositories.

Local Setup

git clone https://github.com/{owner}/{repo}.git
git submodule update --init --recursive
pnpm i
  • Rename the part that says "typescript-template".
  • Remove --dry-run from .github/workflows/release.yml
  • Update README.md
  • Run pnpm run check-all and fix errors if exist.

GitHub Setup

  1. Copy .env.example to .env and set Personal Access Token with repo access.
  2. Run pnpm run gh:apply-all to update GitHub Repository Settings.
  3. Set Actions secrets on the GUI settings page (https://github.com/{owner}/{repo}/settings/secrets/actions).
  4. Set Dependabot secrets on the GUI settings page (https://github.com/{owner}/{repo}/settings/secrets/dependabot).
  5. Go to Pages and change Build and deployment > Source to be "Github Actions".

Syncing AGENTS.md Updates

  1. Update AGENTS.md in the common repository (common-agent-config)
  2. Update the submodule in each project
git submodule update --remote --merge
git add agents/common
git commit -m "Update AGENTS.md"

About

Template Repository for TypeScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •