An open API service indexing awesome lists of open source software.

https://github.com/patelvivekdev/ts-package-template

A modern, efficient template for creating NPM packages using TypeScript.
https://github.com/patelvivekdev/ts-package-template

bun npm-package template typescript vitest

Last synced: 2 months ago
JSON representation

A modern, efficient template for creating NPM packages using TypeScript.

Awesome Lists containing this project

README

          

# TypeScript NPM Package Template

A modern, efficient template for creating NPM packages using TypeScript.

## Why This Template?

- ๐Ÿš€ Zero configuration setup
- ๐Ÿ“ฆ Modern module bundling with tsup
- ๐Ÿ” Type-safe by default
- โšก Ultra-fast development with Bun
- ๐Ÿงช Comprehensive testing setup with Vitest
- ๐Ÿ”„ Continuous Integration ready

## Getting Started

1. Clone this template
2. Install dependencies:
```sh
bun install
```
3. Start development:
```sh
bun run dev
```
4. Build your package:
```sh
bun run build
```
5. Publish your package:
```sh
bun run local-release
```

## Project Structure

```
โ”œโ”€โ”€ src/ # Source code with tests
โ”œโ”€โ”€ dist/ # Built package (generated)
โ”œโ”€โ”€ .github/ # GitHub workflows
โ””โ”€โ”€ .changeset/ # Changeset configs
```

## Important Resources

- [TSConfig Reference](https://www.typescriptlang.org/tsconfig)
- [Bun Documentation](https://bun.sh/docs)
- [Vitest Documentation](https://vitest.dev/)
- [tsup Documentation](https://tsup.egoist.dev/)
- [TypeScript Config Cheat Sheet](https://www.totaltypescript.com/tsconfig-cheat-sheet)

## License

MIT ยฉ Vivek Patel