@cellajs/cli 0.6.4 → 0.6.5

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
@@ -59,7 +59,7 @@ Per-command help: `pnpm cella <command> --help`.
59
59
 
60
60
  | Command | Useful options |
61
61
  |---------|----------------|
62
- | testbed | `stop`, `--fresh`, `-- <command>` |
62
+ | testbed | `stop`, `--fresh`, `--showcase`, `-- <command>` |
63
63
  | bench | `[scenario]`, `--all`, `--short`, `--isolated`, `--skip-seed` |
64
64
  | a11y | `report`, `decide`, `--states <ids>`, `--workers <n>`, `--email <address>`, `--publish`, `--draft`, `--file <path>` |
65
65
  | screenshots | `<ids...>`, `--out <dir>`, `--email <address>` |
@@ -91,6 +91,7 @@ database container.
91
91
  | `pnpm cella testbed` | Start a testbed and hold it |
92
92
  | `pnpm cella testbed -- <command>` | Run a command against it: the one this checkout holds, or one started for the command and stopped after. The command gets the testbed's ports (`DEV_PORT_OFFSET`) and database URLs in its environment |
93
93
  | `pnpm cella testbed --fresh` | Start from an empty database, seeded again |
94
+ | `pnpm cella testbed --showcase` | Start one on the app's showcase and hold it, for a screenshot review loop |
94
95
  | `pnpm cella testbed stop` | Stop the running testbed, or the servers one left behind after a crash |
95
96
 
96
97
  One testbed runs per app on a machine, since every checkout of the app shares its database: a second start, from
@@ -98,6 +99,11 @@ another worktree too, says which checkout holds it. The servers write to `testbe
98
99
  start that fails prints the end of that log. The testbed needs Docker and an app whose `backend/compose.yaml` has the
99
100
  `db_testbed` service.
100
101
 
102
+ The database holds either the app's seed or its showcase: the curated `json/showcase.json` that the screenshots shoot,
103
+ seeded by `pnpm seed showcase`. A start that asks for the other one seeds a new database, and so does every showcase
104
+ start, since the showcase's times are relative to its seed. A running testbed serves only commands that want what it
105
+ holds.
106
+
101
107
  ## Tools and their adapters
102
108
 
103
109
  A tool's engine ships in this package, and what is app-specific sits in the app's `cella/` folder as an adapter: a base
@@ -194,8 +200,10 @@ A short script can open one state of the scope, signed in, to check a fix: `open
194
200
 
195
201
  `pnpm cella screenshots` shoots the app's marketing screenshots on a testbed, a light and a dark file each, over the
196
202
  files the app ships, and prints each file's pixel and byte size. Ids pick some shots (`pnpm cella screenshots settings`),
197
- `--out <dir>` writes a trial run elsewhere. On the testbed it also turns MFA on for the shot user and a share of their
198
- members, so the pages show both states; nobody can sign in with those factors. WebP is written lossless by the system
203
+ `--out <dir>` writes a trial run elsewhere. An app with a `json/showcase.json` is shot on a testbed seeded with that
204
+ showcase, which no other tool writes to, as its admin; without one the testbed holds the app's seed, and the command turns
205
+ MFA on for the shot user and a share of their members through the backend's `showcase:mfa` script where the app has it.
206
+ Nobody can sign in with those factors. WebP is written lossless by the system
199
207
  `cwebp` encoder, checked before the testbed starts. `cella/screenshots.ts` lists the template's shots and devices, and
200
208
  `cella/screenshots.app.ts` the app's own. The cella template's `screenshots` skill is the rubric for judging them.
201
209
 
package/dist/bench.js CHANGED
@@ -1067,7 +1067,7 @@ import process6 from "process";
1067
1067
  // package.json
1068
1068
  var package_default = {
1069
1069
  name: "@cellajs/cli",
1070
- version: "0.6.4",
1070
+ version: "0.6.5",
1071
1071
  private: false,
1072
1072
  license: "MIT",
1073
1073
  description: "CLI for managing your monorepo and upgrading it with upstream Cella.",