GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jordanburke/ts-builds-template

BranchesTags
Open more actions menu

Latest commit

 

History

141 Commits
141 Commits

Folders and files

NameName
Last commit message
Last commit date
.claude-plugin
.claude-plugin
 
 
.claude/skills/ts-builds-template
.claude/skills/ts-builds-template
 
 
.github
.github
 
 
src
src
 
 
test
test
 
 
.gitignore
.gitignore
 
 
.nvmrc
.nvmrc
 
 
.prettierignore
.prettierignore
 
 
AGENTS.md
AGENTS.md
 
 
LICENSE
LICENSE
 
 
MIGRATION_TSDOWN.md
MIGRATION_TSDOWN.md
 
 
README.md
README.md
 
 
STANDARDIZATION_GUIDE.md
STANDARDIZATION_GUIDE.md
 
 
eslint.config.mjs
eslint.config.mjs
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 
ts-builds.config.json
ts-builds.config.json
 
 
tsconfig.json
tsconfig.json
 
 
tsdown.config.ts
tsdown.config.ts
 
 
vitest.config.ts
vitest.config.ts
 
 

Repository files navigation

ts-builds-template

Node.js CI npm version npm downloads GitHub stars License: MIT

A modern TypeScript library template with standardized build scripts and tooling.

Features

  • Modern Build System: ts-builds + tsdown for fast bundling
  • Testing: Vitest with coverage reporting
  • Code Quality: ESLint + Prettier with automatic formatting and fixing
  • ESM Output: ES module output with proper TypeScript declarations
  • Standardized Scripts: Consistent commands via ts-builds across all projects

Requirements

  • Node.js 24+ (exact version pinned in .nvmrc; npm 11.5.1+ also fixes OIDC trusted publishing)
  • pnpm 12+ (pinned via the packageManager field — run corepack enable to use the exact version)

Quick Start

  1. Use this template to create a new repository
  2. Clone your new repository
  3. Install dependencies: pnpm install
  4. Start developing: pnpm dev (builds with watch mode)
  5. Before committing: pnpm validate (format + lint + test + build)

Development Commands

Pre-Checkin Command

pnpm validate  # Main command: format, lint, test, and build everything
pnpm run ci    # What CI runs: the same steps, checking format and lint without fixing

Always type pnpm run ci. A bare pnpm ci is pnpm's own clean install, not this script.

Individual Commands

# Formatting
pnpm format        # Format code with Prettier
pnpm format:check  # Check formatting without writing

# Linting
pnpm lint          # Fix ESLint issues
pnpm lint:check    # Check ESLint issues without fixing

# Testing
pnpm test          # Run tests once
pnpm test:watch    # Run tests in watch mode
pnpm test:coverage # Run tests with coverage report

# Building
pnpm build         # Production build
pnpm dev           # Development mode with watch

# Type Checking
pnpm typecheck     # Check TypeScript types

Publishing

The template automatically runs pnpm run ci before publishing via the prepublishOnly script. It checks format and lint without fixing them, so run pnpm validate first if it fails.

npm version patch|minor|major
npm publish --access public

Project Structure

src/
├── index.ts          # Main library entry point
test/
├── *.spec.ts         # Test files
dist/                 # Built output (ES module + types)

Tooling

  • Build: ts-builds - Centralized TypeScript toolchain
  • Bundler: tsdown - Fast TypeScript bundler (successor to tsup)
  • Test: Vitest - Fast unit test framework
  • Lint: ESLint with TypeScript support
  • Format: Prettier with ESLint integration
  • Package Manager: pnpm for fast, efficient installs

Claude Code Skill

This repository includes a Claude Code skill for bootstrapping new TypeScript libraries from this template:

Location: .claude/skills/ts-builds-template/

Usage: When using Claude Code, the skill provides guidance for:

  • Cloning and customizing this template for a new library
  • Understanding the project structure and dev workflow
  • Publishing to npm

Installation (for use in other projects):

# Copy the skill to your Claude Code skills directory
cp -r .claude/skills/ts-builds-template ~/.claude/skills/

Related Skills: For tooling configuration, migration guides, and standardizing existing projects, see the ts-builds skill.

References:

  • AGENTS.md - Development guidance for AI coding agents
  • .claude/skills/ts-builds-template/ - Complete skill documentation

This template is based on the earlier work of https://github.com/orabazu/tsup-library-template but updated with modern tooling and standardized scripts.

About

No description or website provided.

Topics

library-templatescaffoldstartertemplatetypescript

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.