Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ubermanu/bobun
🍚 A CLI that bundles your Bun project
https://github.com/ubermanu/bobun
bun bundler cli
Last synced: 16 days ago
JSON representation
🍚 A CLI that bundles your Bun project
- Host: GitHub
- URL: https://github.com/ubermanu/bobun
- Owner: ubermanu
- License: mit
- Created: 2023-09-09T14:21:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-02T11:59:00.000Z (over 1 year ago)
- Last Synced: 2024-12-15T02:11:53.248Z (22 days ago)
- Topics: bun, bundler, cli
- Language: TypeScript
- Homepage:
- Size: 107 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @ubermanu/bobun
An all-in-one bundler using `Bun.build`.
## Install
```bash
bun add @ubermanu/bobun -d
```## Usage
```bash
bunx bobun [options]
```### Options
- `--minify` Minify the output files
- `--sourcemap` Generate sourcemaps## Quick Start
**Bobun** reads your `package.json` file and determines what to build without you providing any configuration.
For example, if you have a `package.json` file like this:
```json
{
"name": "hello-world",
"version": "1.0.0",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"bin": {
"hello": "dist/bin.js"
}
}
```Then you can build your package with:
```bash
bunx bobun
```Which will generate these files:
```
src/index.ts → dist/index.mjs
src/index.ts → dist/index.d.ts
src/bin.ts → dist/bin.js
```