@wojciechpiskorz/astroix 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -30,9 +30,21 @@ bun install # also in e2e/fixture/
30
30
  bun run check && bun run typecheck # Biome + tsc
31
31
  bun run test # vitest (unit)
32
32
  bun run test:e2e # Playwright (boots e2e/fixture on :4312)
33
- bun run build # tsup → dist
33
+ bun run build # tsup (node) + vite (chrome bundle) → dist
34
34
  ```
35
35
 
36
+ ### Dogfood loop
37
+
38
+ The e2e fixture consumes the local package via `file:../..` and registers `astroix()` in its `astro.config.mjs`. With both packages installed, run `bun run dev` (tsup watch) at the root in one terminal and `bun run dev` in `e2e/fixture/` in the other — the fixture dev server on `http://localhost:4312` runs the integration straight from your checkout.
39
+
40
+ ### Ports
41
+
42
+ The owner's manual smoke owns `:4312` (`bun run smoke`); the e2e lanes never touch it — Playwright boots the main lane on `:4314` (`ASTROIX_E2E_PORT` in the fixture's dev script) and the npm-pack lane on `:4313`. Both lanes always boot their own servers (`reuseExistingServer: false`), and the fixture dev script runs astro with `--ignore-lock` — astro's per-project single-server guard would otherwise refuse the e2e instance while the owner's smoke server runs; both paths own their lifecycle externally (the smoke script pre-checks its port, Playwright kills its own servers).
43
+
44
+ ### Definition of done (POC)
45
+
46
+ The executable DoD is `e2e/loop.spec.ts` (the full CSS editing loop: chrome → select → rule list → CodeMirror edit → bytes on disk + canvas reflection), green in CI. The human half — the owner's manual smoke through the real chrome — is [`docs/manual-smoke.md`](docs/manual-smoke.md); `bun run smoke` prepares and boots the environment in one command.
47
+
36
48
  ## License
37
49
 
38
50
  [MIT](LICENSE)