frontend-precision 0.0.0-stage → 0.1.1

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
@@ -1,3 +1,40 @@
1
- # Temporary Holding Version
1
+ # frontend-precision
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Cursor-first CLI for frontend visual QA: fixed-viewport screenshots, pixel diff against reference PNGs, configured test runs, and JSON / Markdown / HTML reports. The CLI is deterministic and does **not** call an LLM. Pair it with the Cursor Skill in this repo for the full PRD + Figma workflow.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pnpm add -D frontend-precision
9
+ pnpm exec frontend-precision init
10
+ pnpm exec playwright install chromium
11
+ ```
12
+
13
+ Requires Node.js 20+.
14
+
15
+ ## Verify loop
16
+
17
+ ```bash
18
+ pnpm exec frontend-precision capture --run-id <id>
19
+ pnpm exec frontend-precision visual --run-id <id>
20
+ pnpm exec frontend-precision test --run-id <id>
21
+ pnpm exec frontend-precision report --run-id <id>
22
+ ```
23
+
24
+ `report` is overall `PASS` only when capture, visual, and tests all succeed. Missing stages → `SKIPPED`; failures → `FAIL`; too many fix attempts → `BLOCKED`.
25
+
26
+ ## Commands
27
+
28
+ | Command | Purpose |
29
+ |---|---|
30
+ | `init` | Config, Cursor Skill, and rule templates |
31
+ | `doctor` | Environment and project checks |
32
+ | `capture` | Screenshot configured routes |
33
+ | `visual` | Pixel-diff against reference PNGs |
34
+ | `test` | Run configured `testCommand` |
35
+ | `report` | Aggregate JSON / Markdown / HTML |
36
+
37
+ ## Links
38
+
39
+ - Package: https://www.npmjs.com/package/frontend-precision
40
+ - Full workflow (Chinese docs): https://github.com/spike-soc/frontend-precision
@@ -0,0 +1,2 @@
1
+
2
+ export { }