@ucm-kit/cli 0.2.0 → 0.2.2

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 +7 -9
  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.2.0 init
19
+ npx --yes @ucm-kit/cli@0.2.2 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.2.0 init
27
27
  To run the check locally:
28
28
 
29
29
  ```sh
30
- npx --yes @ucm-kit/cli@0.2.0 check --report ci-report.md
30
+ npx --yes @ucm-kit/cli@0.2.2 check --report ci-report.md
31
31
  ```
32
32
 
33
33
  `--yes` skips the npx confirmation prompt. Pin an exact version, without `^`:
@@ -80,7 +80,7 @@ contract would resolve to the same file. A repository that does not write React
80
80
  states its own extension:
81
81
 
82
82
  ```sh
83
- npx --yes @ucm-kit/cli@0.2.0 init --components Sources/DesignSystem --implementation '{dir}/{id}.swift'
83
+ npx --yes @ucm-kit/cli@0.2.2 init --components Sources/DesignSystem --implementation '{dir}/{id}.swift'
84
84
  ```
85
85
 
86
86
  The three path options act only on a first install. `ucm init` never overwrites
@@ -190,7 +190,7 @@ directory. It writes a minimal report when the check stopped before writing
190
190
  one, then posts the report:
191
191
 
192
192
  ```sh
193
- npx --yes @ucm-kit/cli@0.2.0 rapport-gitlab --projet "$CI_PROJECT_ID" --merge-request "$CI_MERGE_REQUEST_IID" --fichier "$CI_PROJECT_DIR/ci-report.md" --api "$CI_API_V4_URL"
193
+ npx --yes @ucm-kit/cli@0.2.2 rapport-gitlab --projet "$CI_PROJECT_ID" --merge-request "$CI_MERGE_REQUEST_IID" --fichier "$CI_PROJECT_DIR/ci-report.md" --api "$CI_API_V4_URL"
194
194
  ```
195
195
 
196
196
  | Option | Effect |
@@ -248,9 +248,8 @@ the code or at the token file.
248
248
  | The code exposes the props the contract declares, with a stack adapter installed | Blocks a pull request that touches the code or a contract with a gap; otherwise reports the lag |
249
249
  | Each text, icon, border or ring colour reaches its contrast against its background | Information, never blocks |
250
250
 
251
- A gap in the code now blocks the merge. This tightened verdict is class 6 of
252
- `docs/format/COMPATIBILITE.md`: the format does not change, but a pipeline that
253
- stayed green on a gap turns red. A component whose contract was exported after
251
+ Blocking a gap in the code is class 6 of `docs/format/COMPATIBILITE.md`: the
252
+ format does not change, but a pipeline that stayed green on a gap turns red. A component whose contract was exported after
254
253
  its code is reported as behind its contract and does not block the designer's
255
254
  export. A developer who accepts a precise gap writes it in
256
255
  `.ucm/derogations.json`. Each entry names `composant`, `ecart` (its `genre` and
@@ -288,8 +287,7 @@ changes `tokens.json` (without `--base`, always). A file where no collection has
288
287
  a UCM name gets one line saying the architecture is not judged. Composite tokens
289
288
  (typography, shadow, curve) are not Figma variables and are not judged.
290
289
 
291
- A gap with the code warns: a developer closes it, and the merge goes through. A
292
- token removed from the design system warns too, so an older contract does not
290
+ A token removed from the design system warns too, so an older contract does not
293
291
  hold back the tokens. A contract may land before the code that implements it.
294
292
 
295
293
  A repository with no contract passes. Right after `ucm init`, `ucm check`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ucm-kit/cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
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.17.1"
32
+ "@ucm-kit/core": "0.17.3"
33
33
  },
34
34
  "devDependencies": {
35
35
  "yaml": "^2.9.1"