@moontai0724/npm-kickstart - v1.0.1
@moontai0724/npm-kickstart
A modern TypeScript project template with ESLint, Prettier, and automated releases.

Features
- 🔷 TypeScript 5.9+ - Modern TypeScript with strict type checking
- 🎨 ESLint 9 - Latest ESLint with TypeScript support
- 💅 Prettier 3 - Code formatting with Prettier integration
- ✅ Vitest - Fast unit and e2e testing with 100% code coverage
- 📦 Dual Package - Supports both ESM and CommonJS
- 🎯 Multiple Build Outputs:
- Bundled JS files (minified) for production use
- Native JS files (ESM and CJS) for flexible imports
- 🚀 GitHub Actions - Automated CI/CD pipeline
- 📝 Semantic Release - Automated versioning and changelog generation based on conventional commits
- 🔄 Auto Publish - Automatic NPM package publishing and GitHub releases
- 📚 TypeDoc - Automated API documentation generation and publishing to GitHub Pages
Installation
npm install @moontai0724/npm-kickstart
Usage
ESM (ES Modules)
import { add, multiply, greet } from "@moontai0724/npm-kickstart";
console.log(add(2, 3)); // 5
console.log(multiply(4, 5)); // 20
console.log(greet("World")); // Hello, World!
CommonJS
const { add, multiply, greet } = require("@moontai0724/npm-kickstart");
console.log(add(2, 3)); // 5
console.log(multiply(4, 5)); // 20
console.log(greet("World")); // Hello, World!
Documentation
API documentation is automatically generated using TypeDoc and published to GitHub Pages.
Configuration for Initialization a New Project
NPM Publishing
To enable NPM publishing, add your NPM token as a secret in GitHub:
- Go to repository Settings → Secrets and variables → Actions
- Add a new secret named
NPM_TOKEN
- Value should be your NPM automation token
Codecov
Codecov is used for code coverage reporting. To enable Codecov:
- Go to the Codecov website and sign in with GitHub
- Click on "Configure" for your repository to get the token
- Add a new secret named
CODECOV_TOKEN in your GitHub repository settings
GitHub Releases
GitHub releases are automatically created using the GITHUB_TOKEN provided by GitHub Actions.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.