@ucm-kit/cli 0.1.41 → 0.1.42
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 +4 -4
- package/package.json +1 -1
- package/src/ucm.mjs +5 -0
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.42 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.41 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.42 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.42 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
|
|
@@ -182,7 +182,7 @@ directory. It writes a minimal report when the check stopped before writing
|
|
|
182
182
|
one, then posts the report:
|
|
183
183
|
|
|
184
184
|
```sh
|
|
185
|
-
npx --yes @ucm-kit/cli@0.1.
|
|
185
|
+
npx --yes @ucm-kit/cli@0.1.42 rapport-gitlab --projet "$CI_PROJECT_ID" --merge-request "$CI_MERGE_REQUEST_IID" --fichier "$CI_PROJECT_DIR/ci-report.md" --api "$CI_API_V4_URL"
|
|
186
186
|
```
|
|
187
187
|
|
|
188
188
|
| Option | Effect |
|
package/package.json
CHANGED
package/src/ucm.mjs
CHANGED
|
@@ -192,6 +192,11 @@ function executerCommande(arguments_, {
|
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
if (commande === "icons") {
|
|
195
|
+
if (arguments_.length > 1) {
|
|
196
|
+
const alerter = sorties.alerter ?? console.error;
|
|
197
|
+
alerter(`Argument inconnu : ${arguments_[1]}\n\nucm icons`);
|
|
198
|
+
return 2;
|
|
199
|
+
}
|
|
195
200
|
const { configuration, erreur } = lireConfiguration(racine);
|
|
196
201
|
if (erreur) {
|
|
197
202
|
// La configuration est refusée ici comme ailleurs : retomber sur les
|