Running & Building
After going through the steps in setting up the project, there are some important things that you need to be aware of;
Important commands
bun test:local
- Runs the complete local test(s)bun test:ci
- Runs the complete test suite(s) in GitHub Workflow runnersbun run demo.ts
- Runs thedemo.ts
file for manual testingbun prepare
- Install huskybun build:unix
- Builds source and tests build on Github Workflowsubuntu & macos-latest
runnerbun build:windows
- Builds source and tests build on Github Workflowswindows-latest
runnerbun build:stable
- Builds sources, tests build usingbun test:ci
and publishes distribution
Building
breadroll is built and optimized for the Bun runtime, and hence we use the Bun.build()
JavaScript API together with tsc
to build and bundle breadroll. This means that all source targets Bun and are prefixed with the // @bun
pragma which removes the need for re-transpilation, reduces startup time and improves performance. You can read more here (opens in a new tab).