@kot2000/bunbuild
v2.8.4
Published
BunBuild is bundling and building manager for Bun.
Downloads
2
Maintainers
Readme
.BunBuild
BunBuild is bundling and building manager for Bun.
Installation
You have to have bun installed and added to your env.
bun install -g @kot2000/bunbuild@latest
Updating
You have to have bun installed and added to your env.
bunbuild update
Quick Start
Paste this command to your terminal to begin.
bunbuild init
It will create file called ".bunbuild".
# !bunbuild | Do not edit this file manually; automatically generated.
files=[]
[settings]
outdir = "./out"
target = "browser"
format = "esm"
splitting = false
sourcemap = "none"
minify = false
naming = "./[dir]/[name].[ext]"
root = "."
You can log settings and entry points of ".bunbuild" file with
bunbuild info
- Deleting bunbuild file
bunbuild delete
Entry Points
Add entry points with
bunbuild add <path>
- For Example
bunbuild add ./lang.ts
Remove entry points with
bunbuild remove <path>
- For Example
bunbuild remove ./old_lang.ts
Building and Settings
Building
bunbuild build
- Build with watch mode
bunbuild build --watch
Set Setting
bunbuild set <name> <value>
- For Example
bunbuild set minify true
Log Contents (Settings / Entry Points) of Bunbuild file
bunbuild info