stitch2 0.7.2 → 0.7.3
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 +3 -5
- package/package.json +22 -1
package/README.md
CHANGED
|
@@ -79,7 +79,6 @@ file that already exists. From there the agent spends its effort on the design.
|
|
|
79
79
|
npx playwright install chromium
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
-
Every release is also on GitHub: `github:ifokeev/stitch2#release` (latest) or `#v<version>` (pinned).
|
|
83
82
|
2. Set the project up:
|
|
84
83
|
|
|
85
84
|
```bash
|
|
@@ -193,10 +192,9 @@ pnpm test # smoke test in a fresh project; needs Chromium (np
|
|
|
193
192
|
pnpm build # compiles to dist/, which the installed package runs
|
|
194
193
|
```
|
|
195
194
|
|
|
196
|
-
Releases: bump `version` in package.json, commit
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
trusted publishing. `main` holds sources only; `dist/` is ignored.
|
|
195
|
+
Releases: bump `version` in package.json, commit and push to `main`, then `pnpm release`. It tags that commit
|
|
196
|
+
`v<version>` and pushes the tag, which runs `.github/workflows/publish.yml`: it builds and tests the tagged commit and
|
|
197
|
+
publishes it to npm through trusted publishing. `dist/` is ignored; npm gets it from the build.
|
|
200
198
|
|
|
201
199
|
Point it at a project with `STITCH2_CONFIG=/path/to/stitch2.config.json`, or run it from inside the project.
|
|
202
200
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stitch2",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"description": "A design canvas, layout and type checks, component consistency and screen versioning for agent-built UI, on Google's DESIGN.md format.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ifokeev",
|
|
@@ -26,6 +26,23 @@
|
|
|
26
26
|
"README.md",
|
|
27
27
|
"LICENSE"
|
|
28
28
|
],
|
|
29
|
+
"scripts": {
|
|
30
|
+
"test": "node --test test/*.test.ts",
|
|
31
|
+
"build": "tsc -p . && node -e \"require('node:fs').copyFileSync('src/canvas.html','dist/canvas.html')\"",
|
|
32
|
+
"typecheck": "tsc -p . --noEmit",
|
|
33
|
+
"release": "node scripts/release.mjs",
|
|
34
|
+
"prepublishOnly": "npm run build",
|
|
35
|
+
"canvas": "node src/cli.ts canvas",
|
|
36
|
+
"check": "node src/cli.ts check",
|
|
37
|
+
"consistency": "node src/cli.ts consistency",
|
|
38
|
+
"type": "node src/cli.ts type",
|
|
39
|
+
"tokens": "node src/cli.ts tokens",
|
|
40
|
+
"lint": "node src/cli.ts lint",
|
|
41
|
+
"screens": "node src/cli.ts screens",
|
|
42
|
+
"localize": "node src/cli.ts localize",
|
|
43
|
+
"sandbox": "node src/cli.ts sandbox",
|
|
44
|
+
"elements": "node src/cli.ts elements"
|
|
45
|
+
},
|
|
29
46
|
"engines": {
|
|
30
47
|
"node": ">=24"
|
|
31
48
|
},
|
|
@@ -51,5 +68,9 @@
|
|
|
51
68
|
"type": "git",
|
|
52
69
|
"url": "git+https://github.com/ifokeev/stitch2.git"
|
|
53
70
|
},
|
|
71
|
+
"devDependencies": {
|
|
72
|
+
"@types/node": "26.6.4",
|
|
73
|
+
"typescript": "7.0.2"
|
|
74
|
+
},
|
|
54
75
|
"packageManager": "pnpm@10.32.1"
|
|
55
76
|
}
|