@lasercat/claudeli
v1.0.12
Published
A TypeScript-native library template with bun
Downloads
349
Readme
Library Template
A modern TypeScript library template with ESLint, Prettier, and build tooling pre-configured. Designed for seamless setup with bun create.
Features
- 🚀 Interactive setup with
bun create - 📦 TypeScript support with strict mode
- 🎨 ESLint and Prettier pre-configured
- 🔨 Build scripts ready to go
- 🤖 GitHub Actions CI/CD workflow
- 📚 Optional NPM publishing
Quick Start
Using bun create (Recommended)
bun create github.com/lasercat-industries/library-template my-libraryThe interactive setup will:
- Configure your package name as
@lasercat/<your-name> - Set the author field
- Optionally set up npm publishing
- Clean up setup files automatically
Manual Setup
- Clone this template
- Run
bun install - Update
package.jsonwith your library details - Replace this README with your library documentation
- Start developing your library
Development
# Install dependencies
bun install
# Build the library
bun run build
# Run linting
bun run lint
# Run formatter
bun run format
# Run tests
bun test
# Type checking
bun run typecheckProject Structure
src/
├── index.ts # Main entry point
└── index.test.ts # Example test file
dist/ # Built output (generated)GitHub Actions
The template includes a CI workflow that:
- Runs tests, linting, and type checking on every push
- Publishes to npm when the version changes (if configured)
Publishing to npm
If you chose to enable npm publishing during setup:
- Add
NPM_TOKENsecret to your GitHub repository - Update the version in
package.json - Push to the
mainbranch - The package will be automatically published
License
MIT
