2.8.4 • Published 2 years ago
@kot2000/bunbuild v2.8.4
.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@latestUpdating
You have to have bun installed and added to your env.
bunbuild updateQuick Start
Paste this command to your terminal to begin.
bunbuild initIt 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 deleteEntry Points
Add entry points with
bunbuild add <path>- For Example
bunbuild add ./lang.tsRemove entry points with
bunbuild remove <path>- For Example
bunbuild remove ./old_lang.tsBuilding and Settings
Building
bunbuild build- Build with watch mode
bunbuild build --watchSet Setting
bunbuild set <name> <value>- For Example
bunbuild set minify trueLog Contents (Settings / Entry Points) of Bunbuild file
bunbuild info