@choigawoon/boilerplate
v0.0.1
Published
NPM package boilerplate with TypeScript, tsup, and GitHub Actions auto-deploy
Downloads
4
Maintainers
Readme
@choigawoon/boilerplate
NPM package boilerplate with TypeScript, tsup, and GitHub Actions auto-deploy.
Features
- TypeScript support
- Fast builds with tsup (esbuild)
- Automatic NPM publishing via GitHub Actions
- CI/CD pipeline for PR validation
- Ready for AI agent collaboration
Installation
npm install @choigawoon/boilerplateUsage
import { hello } from '@choigawoon/boilerplate';
console.log(hello()); // "Hello, World!"
console.log(hello('Alice')); // "Hello, Alice!"Development
# Install dependencies
npm install
# Build
npm run build
# Watch mode
npm run dev
# Type check
npm run typecheckPublishing
This package automatically publishes to NPM when you push a git tag:
# Update version in package.json
npm version patch # or minor, major
# Push the tag
git push origin v0.0.2The GitHub Actions workflow will automatically:
- Run type checking
- Build the package
- Publish to NPM
Setup for Your Own Package
Fork or copy this repository
Update package.json:
- Change
nameto your package name (e.g.,@yourname/package) - Update
author,description,keywords
- Change
Add NPM token to GitHub Secrets:
- Create an NPM access token at https://www.npmjs.com/settings/YOUR_USERNAME/tokens
- Add it to GitHub repository secrets as
NPM_TOKEN
Make changes and create PR:
- AI agents can create PRs with new features
- CI workflow validates the changes automatically
Merge PR and create release:
npm version patch git push origin v0.0.2
AI Agent Workflow
This boilerplate is designed to work with AI agents:
- AI agent creates a new branch
- AI agent implements features
- AI agent creates a PR
- GitHub Actions runs CI tests
- After PR merge, manually create a version tag
- GitHub Actions automatically publishes to NPM
Project Structure
.
├── src/
│ └── index.ts # Main entry point
├── dist/ # Build output (auto-generated)
├── .github/
│ └── workflows/
│ ├── ci.yml # PR validation
│ └── publish.yml # NPM publishing
├── package.json
├── tsconfig.json
├── tsup.config.ts
└── README.mdLicense
MIT
