build(scripts): add root-level pnpm run storybook script
CI / lint-and-format (push) Successful in 38s
CI / changeset-check (push) Successful in 31s
CI / unit-tests (push) Successful in 42s
CI / component-tests (push) Successful in 30s
CI / lint-and-format (pull_request) Successful in 32s
CI / changeset-check (pull_request) Successful in 29s
CI / unit-tests (pull_request) Successful in 41s
CI / component-tests (pull_request) Successful in 29s

Adds a storybook script to the root package.json that filters into
the luna-charts package, so Storybook can be launched directly from
the repository root instead of requiring a manual cd into
packages/luna-charts. Updates README.md to document the new command
as part of the standard developer workflow.

Closes #11.
This commit is contained in:
2026-08-12 11:56:59 +02:00
parent 7559a2725a
commit 9e5d8ae075
2 changed files with 2 additions and 11 deletions
+1 -11
View File
@@ -86,17 +86,7 @@ pnpm install
| `pnpm test` | Run the full test suite (unit + component) |
| `pnpm changeset` | Record a changeset for your change (required for any user-facing change) |
| `pnpm run docs` | Start the documentation site locally (astroJS) |
### Storybook
Storybook currently needs to be started from within the library package directly:
```bash
cd packages/luna-charts
pnpm run storybook
```
> **Note:** Running Storybook from the repository root isn't set up yet. This is a known gap — contributions to add a root-level `pnpm --filter` script are welcome.
| `pnpm run storybook` | Start the storybook documentation |
Component and browser tests run inside Docker (`docker-compose.test.yaml`) to guarantee a reproducible browser environment across all contributors and CI — you don't need Playwright browsers installed locally.