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

https://github.com/maxam2017/bun-lib-starter

$ bun create maxam2017/bun-lib-starter <your-project-name>
https://github.com/maxam2017/bun-lib-starter

Last synced: 10 months ago
JSON representation

$ bun create maxam2017/bun-lib-starter <your-project-name>

Awesome Lists containing this project

README

          

# bun-lib-starter

![Bun](https://img.shields.io/badge/bun-282a36?style=for-the-badge&logo=bun&logoColor=fbf0df)
![Typescript](https://img.shields.io/badge/TypeScript-007ACC?style=for-the-badge&logo=typescript&logoColor=white)
![License](https://img.shields.io/github/license/othneildrew/Best-README-Template.svg?style=for-the-badge)

A starter template for node library built with bun.

## What's included

- ๐Ÿš€ **Typescript Support**
- ๐Ÿงผ **Linting and Formatting with Pre-commit Hooks** (Powered by pre-commit and biomejs)
- ๐Ÿ“ฆ **Efficient Bundling with tsup** (Supporting both cjs and esm)
- ๐Ÿงช **Inclusive Built-in Test Runner** (Powered by bun)
- ๐ŸŒ **GitHub Actions for CI/CD and Semantic Release Automation**

## Getting Started

### Prerequisites

- [bun](https://bun.sh/docs/installation)
- [pre-commit](https://pre-commit.com/#install)

### Installation

Use bun CLI to create a new project **(recommended)**

```sh
bun create maxam2017/bun-lib-starter
```

or clone this repo and install manually

```sh
git clone https://github.com/maxam2017/bun-lib-starter.git

cd bun-lib-starter

pre-commit install

bun install
```

### Development

1. Run in dev mode (watch mode)
```sh
bun dev
```
1. Run tests
```sh
bun test
```

## License

Distributed under the MIT License. See `LICENSE` for more information.