Skip to content

Commit bd4f9c4

Browse files
committed
Refactor package management and update test setup
- Replaced npm commands with Bun commands in package.json for consistency in package management. - Updated README to reflect the new Bun commands for installation and testing. - Modified test setup to utilize a new ensureGenerated function, streamlining the generation process. - Enhanced PHP parity checks by introducing a new function to verify the availability of required dependencies. These changes improve the development workflow and ensure a more cohesive environment for testing and building the project.
1 parent c866b0e commit bd4f9c4

16 files changed

Lines changed: 1404 additions & 2807 deletions

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ the test suite on every run.
5555
## Quick start
5656

5757
```bash
58-
npm install
59-
npm run check # validate all brick definitions
60-
npm run generate # emit all six runtimes into generated/
61-
npm test # domain units + 6-runtime DOM parity (Go + PHP optional)
62-
npm run verify # check + typecheck (engine and generated) + tests
58+
bun install
59+
bun run check # validate all brick definitions
60+
bun run generate # emit all six runtimes into generated/
61+
bun test # domain units + 6-runtime DOM parity (Go + PHP optional)
62+
bun run verify # check + typecheck (engine and generated) + tests
6363
```
6464

6565
Seven local welcome previews (generated primitives + shadcn tokens) live in
@@ -266,10 +266,10 @@ helper, and the canonical reference DOM.
266266
`<name>.variants.json` (and optional `<name>.data.json` showcase
267267
fixtures — they automatically become parity test cases).
268268
2. Register it in `bricks/index.ts`.
269-
3. `npm run check` — the validator enforces recipe integrity, prop
269+
3. `bun run check` — the validator enforces recipe integrity, prop
270270
references, passthrough rules, and slot/children symmetry before anything
271271
is emitted.
272-
4. `npm test` — parity across all four runtimes is asserted automatically;
272+
4. `bun test` — parity across all four runtimes is asserted automatically;
273273
no per-runtime test writing needed.
274274

275275
## Deliberate deviations from the upstream hand-written pair

bun.lock

Lines changed: 17 additions & 71 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bunfig.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[test]
2+
preload = ["./tests/preload-bun.ts"]

examples/templ/page_templ.go

Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)