@ucm-kit/cli 0.1.50 → 0.1.52

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.
Files changed (2) hide show
  1. package/README.md +15 -5
  2. 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.50 init
19
+ npx --yes @ucm-kit/cli@0.1.52 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.50 init
27
27
  To run the check locally:
28
28
 
29
29
  ```sh
30
- npx --yes @ucm-kit/cli@0.1.50 check --report ci-report.md
30
+ npx --yes @ucm-kit/cli@0.1.52 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.50 init --components Sources/DesignSystem --implementation '{dir}/{id}.swift'
81
+ npx --yes @ucm-kit/cli@0.1.52 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.50 rapport-gitlab --projet "$CI_PROJECT_ID" --merge-request "$CI_MERGE_REQUEST_IID" --fichier "$CI_PROJECT_DIR/ci-report.md" --api "$CI_API_V4_URL"
191
+ npx --yes @ucm-kit/cli@0.1.52 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 |
@@ -232,7 +232,7 @@ Without `--base`, the report covers the whole repository.
232
232
  The report is written for the **designer** who validates the export. Every
233
233
  reason a merge is refused appears in it, so the designer never opens a CI log.
234
234
 
235
- Six checks run on each contract. **A check blocks when the file on disk cannot
235
+ Seven checks run on each contract. **A check blocks when the file on disk cannot
236
236
  be read as it stands**, and warns when the read succeeds and the gap points at
237
237
  the code or at the token file.
238
238
 
@@ -244,6 +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 colour follows the usage table, when the token file has a `usage` collection | Warns |
247
248
 
248
249
  The direction of a version gap names who fixes it. A contract that is too old
249
250
  is re-exported by the designer. A contract that is too new needs this package
@@ -255,6 +256,15 @@ developer upgrades the UCM packages. A mark that is not a version blocks too,
255
256
  and the designer runs the token export again. Both apply even in a repository
256
257
  with no contract yet.
257
258
 
259
+ The usage table is the one UCM Palettes judges its palettes with, from
260
+ `@ucm-kit/core/emplois`. Each colour of a variant is read through the first
261
+ alias of its token. The check warns when a usage paints something it is not
262
+ meant for, a text usage on a border for instance; when a text and the
263
+ background it sits on, found by the rule of FORMAT.md section 2, are not a pair
264
+ of the table at the same rank; when a variant's state does not aim at the rank
265
+ the table gives it; and when a colour aims at `theme` directly. A pair and an
266
+ off-table colour come with their contrast in each brand and theme.
267
+
258
268
  A gap with the code warns: a developer closes it, and the merge goes through. A
259
269
  token removed from the design system warns too, so an older contract does not
260
270
  hold back the tokens. A contract may land before the code that implements it.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ucm-kit/cli",
3
- "version": "0.1.50",
3
+ "version": "0.1.52",
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.1.42"
32
+ "@ucm-kit/core": "0.3.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "yaml": "^2.9.1"