Skip to content

b3nten/builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Builder

Builder

ESBuild CLI

Builder is a thin wrapper around ESBuild's cli that lets you define a declarative build config with dev server.

Builder

Install

pnpm i @benstack/builder

Create Config

Create an {esbuild|build|builder}.config.{ts|js} file in your root directory.

import { defineConfig } from "@benstack/builder"

//  typeof esbuild.BuildOptions
export default defineConfig({
  entryPoints: ["src/mod.ts"],
  outdir: "dist",
  target: "esm",
  bundle: "true"
})

Run pnpm builder for a production build or pnpm builder --dev for an auto-reloading dev server.

License

Made with 💛

Published under MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published