@ucm-kit/cli 0.1.53 → 0.1.55
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 +13 -13
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ matches them.
|
|
|
16
16
|
Requires Node 20 or later. At the root of the repository:
|
|
17
17
|
|
|
18
18
|
```sh
|
|
19
|
-
npx --yes @ucm-kit/cli@0.1.
|
|
19
|
+
npx --yes @ucm-kit/cli@0.1.55 init
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
1. Commit and push the files `init` wrote.
|
|
@@ -27,7 +27,7 @@ npx --yes @ucm-kit/cli@0.1.53 init
|
|
|
27
27
|
To run the check locally:
|
|
28
28
|
|
|
29
29
|
```sh
|
|
30
|
-
npx --yes @ucm-kit/cli@0.1.
|
|
30
|
+
npx --yes @ucm-kit/cli@0.1.55 check --report ci-report.md
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
`--yes` skips the npx confirmation prompt. Pin an exact version, without `^`:
|
|
@@ -78,7 +78,7 @@ contract would resolve to the same file. A repository that does not write React
|
|
|
78
78
|
states its own extension:
|
|
79
79
|
|
|
80
80
|
```sh
|
|
81
|
-
npx --yes @ucm-kit/cli@0.1.
|
|
81
|
+
npx --yes @ucm-kit/cli@0.1.55 init --components Sources/DesignSystem --implementation '{dir}/{id}.swift'
|
|
82
82
|
```
|
|
83
83
|
|
|
84
84
|
The three path options act only on a first install. `ucm init` never overwrites
|
|
@@ -188,7 +188,7 @@ directory. It writes a minimal report when the check stopped before writing
|
|
|
188
188
|
one, then posts the report:
|
|
189
189
|
|
|
190
190
|
```sh
|
|
191
|
-
npx --yes @ucm-kit/cli@0.1.
|
|
191
|
+
npx --yes @ucm-kit/cli@0.1.55 rapport-gitlab --projet "$CI_PROJECT_ID" --merge-request "$CI_MERGE_REQUEST_IID" --fichier "$CI_PROJECT_DIR/ci-report.md" --api "$CI_API_V4_URL"
|
|
192
192
|
```
|
|
193
193
|
|
|
194
194
|
| Option | Effect |
|
|
@@ -244,7 +244,7 @@ the code or at the token file.
|
|
|
244
244
|
| Typography tokens have the expected type | Blocks |
|
|
245
245
|
| Every `{token.path}` cited exists in the token file | Warns, but a missing or unreadable token file blocks |
|
|
246
246
|
| The code exposes the props the contract declares, with a stack adapter installed | Warns |
|
|
247
|
-
| Each
|
|
247
|
+
| Each text, icon, border or ring colour reaches its contrast against its background | Information, never blocks |
|
|
248
248
|
|
|
249
249
|
The direction of a version gap names who fixes it. A contract that is too old
|
|
250
250
|
is re-exported by the designer. A contract that is too new needs this package
|
|
@@ -256,14 +256,14 @@ developer upgrades the UCM packages. A mark that is not a version blocks too,
|
|
|
256
256
|
and the designer runs the token export again. Both apply even in a repository
|
|
257
257
|
with no contract yet.
|
|
258
258
|
|
|
259
|
-
The
|
|
260
|
-
|
|
261
|
-
alias of its token
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
259
|
+
The contrast diagnostic applies to any `tokens.json`, whatever its
|
|
260
|
+
collections are named. Each colour of a variant is read through the first
|
|
261
|
+
alias of its token and measured against its background, found by the rule of
|
|
262
|
+
FORMAT.md section 2, in each brand and theme. It reports a `foreground` or
|
|
263
|
+
`icon` colour under 4.5:1, and a `border` or `ring` under 3:1, as
|
|
264
|
+
information that never blocks the merge. The contract does not say whether a
|
|
265
|
+
text is large, where the threshold drops to 3:1: a false signal stays
|
|
266
|
+
information. A colour outside sRGB, or translucent, is not measured.
|
|
267
267
|
|
|
268
268
|
A gap with the code warns: a developer closes it, and the merge goes through. A
|
|
269
269
|
token removed from the design system warns too, so an older contract does not
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ucm-kit/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.55",
|
|
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",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"test": "node scripts/run-tests.cjs"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@ucm-kit/core": "0.
|
|
32
|
+
"@ucm-kit/core": "0.5.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"yaml": "^2.9.1"
|