Development setup
Prerequisites
- Bun
1.2.21+— this is the only package manager for the project. There is no npm and nopackage-lock.json.- The version is pinned via
packageManagerinpackage.jsonandcli.packageManagerinangular.json. - The version matters: the project uses the text
bun.locklockfile format, which Bun 1.1.x cannot read. Use 1.2.21 or newer.
- The version is pinned via
Install
bun install
Run
bun start # ng serve on http://localhost:4200
Watch (continuous dev build)
bun run watch # ng build --watch --configuration development
Production build
bun run build # ng build (production) + scripts/postbuild.ts
The production build emits to dist/SchulyWebsite/browser. See
deployment for how that output is served.
Test
bun run test # ng test (Karma + Jasmine)