@smartyweb/ui 2.5.2-max-figma-hook-gaps.ge3196b3 → 2.5.2-max-harness-trim.g94b20b4
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 -3
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @smartyweb/ui
|
|
2
2
|
|
|
3
|
-
Shared React component library consumed by multiple Next.js microservices via
|
|
3
|
+
Shared React component library consumed by multiple Next.js microservices via npm.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -63,8 +63,6 @@ If a variable is not set, components fall back to `system-ui` (headings/body) or
|
|
|
63
63
|
| -------------------- | ------------------------------------------------------------------------------------------------------- |
|
|
64
64
|
| `/new-component` | Build or align a component from its live Figma node — bindings, fidelity table, gates, measured report. |
|
|
65
65
|
| `/validate-tokens` | Check the library still mirrors Figma — recapture every component's bindings, run the mirror, repair. |
|
|
66
|
-
| `/version-up` | Cut a new version with changesets (bump, changelog, release prep). |
|
|
67
|
-
| `/commit-push` | Commit and push all changes with a summary commit message. |
|
|
68
66
|
| `/use-in-storefront` | Carry a component into a storefront-2 page — install, place, gates, preview. |
|
|
69
67
|
|
|
70
68
|
Local commands, for the times you do need to run something by hand:
|
|
@@ -74,6 +72,8 @@ npm install # install dependencies
|
|
|
74
72
|
npm run storybook # generate tokens, then run Storybook (component workbench)
|
|
75
73
|
npm run build # generate tokens, then build to dist/
|
|
76
74
|
npm run tokens # regenerate src/styles/generated/*.generated.scss from tokens.json
|
|
75
|
+
npm run check # every CI gate; the pre-push hook runs it
|
|
76
|
+
npm run changeset # describe a change, then `npm run version` to bump (see .changeset/README.md)
|
|
77
77
|
```
|
|
78
78
|
|
|
79
79
|
For how the codebase is laid out and why it's built this way, see [`CLAUDE.md`](./CLAUDE.md) and [`docs/PRINCIPLES.md`](./docs/PRINCIPLES.md).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartyweb/ui",
|
|
3
|
-
"version": "2.5.2-max-
|
|
3
|
+
"version": "2.5.2-max-harness-trim.g94b20b4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -29,8 +29,10 @@
|
|
|
29
29
|
"lint": "node scripts/check-use-client.mjs && eslint src --max-warnings 0 && stylelint 'src/**/*.scss'",
|
|
30
30
|
"mirror": "node scripts/mirror-check.mjs",
|
|
31
31
|
"mirror:selftest": "node scripts/mirror-selftest.mjs",
|
|
32
|
-
"
|
|
33
|
-
"
|
|
32
|
+
"format:check": "prettier --check .",
|
|
33
|
+
"check:built-css": "node scripts/check-built-css.mjs",
|
|
34
|
+
"check": "npm run typecheck && npm run lint && npm run tokens && (git diff --exit-code src/styles/generated/ || (echo 'src/styles/generated/ does not match tokens.json: run npm run tokens and commit the result' && exit 1)) && npm run mirror -- --no-figma && npm run mirror:selftest && npm run build && npm run check:built-css",
|
|
35
|
+
"prepare": "git config core.hooksPath .githooks"
|
|
34
36
|
},
|
|
35
37
|
"peerDependencies": {
|
|
36
38
|
"react": "^19.0.0",
|