@ucm-kit/cli 0.1.18 → 0.1.19
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 +16 -8
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -10,8 +10,8 @@ Figma plugin and committed next to the component's code. This command reads
|
|
|
10
10
|
those files and says whether they still hold together.
|
|
11
11
|
|
|
12
12
|
```sh
|
|
13
|
-
npx --yes @ucm-kit/cli@0.1.
|
|
14
|
-
npx --yes @ucm-kit/cli@0.1.
|
|
13
|
+
npx --yes @ucm-kit/cli@0.1.19 init
|
|
14
|
+
npx --yes @ucm-kit/cli@0.1.19 check --report ci-report.md
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
Pin an exact version, without `^`. A range would let npx pick a build nobody
|
|
@@ -56,7 +56,7 @@ not write React states its own extension here, rather than carrying a `.tsx`
|
|
|
56
56
|
that was wrong the day it was installed:
|
|
57
57
|
|
|
58
58
|
```sh
|
|
59
|
-
npx --yes @ucm-kit/cli@0.1.
|
|
59
|
+
npx --yes @ucm-kit/cli@0.1.19 init --components Sources/DesignSystem --implementation '{dir}/{id}.swift'
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
All three act only on a first install: `ucm init` never overwrites an existing
|
|
@@ -128,9 +128,15 @@ The report is written for the **designer** who validates the export, not for the
|
|
|
128
128
|
developer who reads CI logs. Every reason a pull request is refused appears in
|
|
129
129
|
it.
|
|
130
130
|
|
|
131
|
-
Six checks run on each contract. Four
|
|
132
|
-
the
|
|
133
|
-
|
|
131
|
+
Six checks run on each contract. Four block a merge, two only warn: **a check
|
|
132
|
+
blocks when the file on disk cannot be read as it stands**, and warns when the
|
|
133
|
+
read succeeds and the gap points at the code or at the token file.
|
|
134
|
+
|
|
135
|
+
Who fixes it depends on the direction of the gap, never on who opened the pull
|
|
136
|
+
request, which the CI does not know. A contract that is too old is re-exported;
|
|
137
|
+
a contract that is too new needs this package upgraded, and no re-export helps.
|
|
138
|
+
[`@ucm-kit/core`](https://www.npmjs.com/package/@ucm-kit/core) names both
|
|
139
|
+
directions.
|
|
134
140
|
|
|
135
141
|
| Check | Verdict |
|
|
136
142
|
|---|---|
|
|
@@ -138,12 +144,14 @@ fix it.**
|
|
|
138
144
|
| This repository can read that contract version | Blocks |
|
|
139
145
|
| Composition: every nested component has its own contract, the lists agree, no cycles | Blocks |
|
|
140
146
|
| Typography tokens have the expected type | Blocks |
|
|
141
|
-
| Every `{token.path}` cited exists in the token file | Warns |
|
|
147
|
+
| Every `{token.path}` cited exists in the token file | Warns, but a missing or unreadable token file blocks |
|
|
142
148
|
| The code exposes the props the contract declares, with a stack adapter installed | Warns |
|
|
143
149
|
|
|
144
150
|
A gap with the code needs a developer, so it warns and lets the merge through. A
|
|
145
151
|
token removed from the design system does too: tokens are the source of truth,
|
|
146
|
-
and an older contract does not hold back their evolution.
|
|
152
|
+
and an older contract does not hold back their evolution. A token file that is
|
|
153
|
+
absent or unreadable is another matter: no reference can be resolved at all, so
|
|
154
|
+
the check gives up rather than reporting every path as missing.
|
|
147
155
|
|
|
148
156
|
A contract may land before the code that implements it. A missing implementation
|
|
149
157
|
is an allowed state, not an error.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ucm-kit/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.19",
|
|
4
4
|
"description": "La ligne de commande UCM : initialiser un repository, lister ce qu'il doit couvrir.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,6 +27,6 @@
|
|
|
27
27
|
"test": "node scripts/run-tests.cjs"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@ucm-kit/core": "0.1.
|
|
30
|
+
"@ucm-kit/core": "0.1.20"
|
|
31
31
|
}
|
|
32
32
|
}
|