@joadr/nx-bun
v0.0.13
Published
An Nx plugin for Bun
Readme
@joadr/nx-bun
@joadr/nx-bun is an Nx plugin for Bun-based workflows.
Docs
Quickstart
Build
{
"targets": {
"build": {
"executor": "@joadr/nx-bun:build",
"options": {
"entry": "src/main.ts",
"outputPath": "{workspaceRoot}/dist/apps/example-app"
},
"outputs": ["{workspaceRoot}/dist/apps/example-app"]
}
}
}Run
{
"targets": {
"serve": {
"executor": "@joadr/nx-bun:run",
"options": {
"buildTarget": "example-app:build",
"watch": true
}
}
}
}Test
{
"targets": {
"test": {
"executor": "@joadr/nx-bun:test",
"options": {
"args": ["src/render.test.tsx"]
}
}
}
}Install
bun add -d @joadr/nx-bunOr with npm:
npm install -D @joadr/nx-bunFor GitHub Actions publishing, use npm Trusted Publishing instead of an NPM_TOKEN secret.
The manual release workflow publishes to npm and GitHub Packages and generates a GitHub Release from commit history.
What It Provides
buildfor Bun entry filesbuildfor Bun entry files and standalone executablesrunfor Bun scripts and entry filestestforbun testbuildTarget-based launch flows for built output- support for extra entry points, including migration files
- Bun CLI flags for advanced
buildcustomization - optional pruned
package.jsongeneration for deployable builds - a client-only React example app in
packages/jsx-client-example-app
Docs
docs/executors/build.mddocs/executors/run.mddocs/executors/test.md../jsx-example-app/README.mdfor the TSX rendering example
Status
Active development. The plugin is wired into this workspace and tested against the included example app.
