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.tsfile for manual testingbun prepare- Install huskybun build:unix- Builds source and tests build on Github Workflowsubuntu & macos-latestrunnerbun build:windows- Builds source and tests build on Github Workflowswindows-latestrunnerbun build:stable- Builds sources, tests build usingbun test:ciand 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).