@wuchuheng/npm-template
v1.0.2
Published
A CLI tool to initialize project from template.
Readme
@wuchuheng/npm-template
A modern template for creating and publishing npm libraries with TypeScript, pnpm, and best practices.
Features
- TypeScript-first setup
- CLI entrypoint support
- Ready for publishing to npm
- pnpm for fast, reproducible installs
- Pre-configured build with tsup
- MIT licensed
Getting Started
1. Clone this template
git clone https://github.com/wuchuheng/com.wuchuheng.npm.template.git your-lib-name
cd your-lib-name2. Install dependencies
pnpm install3. Develop your library
- Source code:
src/ - CLI entry:
src/cli.ts - Main entry:
src/main.ts
4. Build
pnpm run build5. Publish
pnpm publish --access publicUsage
After publishing, users can install your library:
pnpm add @wuchuheng/npm-templateAnd use it in their projects:
import /* your exports */ "@wuchuheng/npm-template";Or run the CLI (if enabled):
npx @wuchuheng/npm-templateLicense
MIT © wuchuheng
