@simplysf/simply-utam 0.1.0 → 0.1.1
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/LICENSE.txt +206 -206
- package/README.md +76 -76
- package/bin/dev.js +20 -20
- package/bin/run.js +20 -20
- package/oclif.manifest.json +467 -467
- package/package.json +17 -27
package/oclif.manifest.json
CHANGED
|
@@ -1,468 +1,468 @@
|
|
|
1
|
-
{
|
|
2
|
-
"commands": {
|
|
3
|
-
"build": {
|
|
4
|
-
"aliases": [],
|
|
5
|
-
"args": {},
|
|
6
|
-
"description": "Standalone convenience runner executing all transformation and compilation stages sequentially. Note: Wireit tasks (configured via simply-utam init) remain the recommended mechanism for granular caching in everyday developer workflows.",
|
|
7
|
-
"examples": [
|
|
8
|
-
"<%= config.bin %> <%= command.id %>",
|
|
9
|
-
"<%= config.bin %> <%= command.id %> --dry-run"
|
|
10
|
-
],
|
|
11
|
-
"flags": {
|
|
12
|
-
"json": {
|
|
13
|
-
"description": "Format output as json.",
|
|
14
|
-
"helpGroup": "GLOBAL",
|
|
15
|
-
"name": "json",
|
|
16
|
-
"allowNo": false,
|
|
17
|
-
"type": "boolean"
|
|
18
|
-
},
|
|
19
|
-
"source": {
|
|
20
|
-
"char": "s",
|
|
21
|
-
"name": "source",
|
|
22
|
-
"summary": "Specific source directory or directories to process (defaults to discovered package directories).",
|
|
23
|
-
"hasDynamicHelp": false,
|
|
24
|
-
"multiple": true,
|
|
25
|
-
"type": "option"
|
|
26
|
-
},
|
|
27
|
-
"project-dir": {
|
|
28
|
-
"name": "project-dir",
|
|
29
|
-
"summary": "Root directory of the project.",
|
|
30
|
-
"default": ".",
|
|
31
|
-
"hasDynamicHelp": false,
|
|
32
|
-
"multiple": false,
|
|
33
|
-
"type": "option"
|
|
34
|
-
},
|
|
35
|
-
"generator-config": {
|
|
36
|
-
"name": "generator-config",
|
|
37
|
-
"summary": "Path to generator.config.json.",
|
|
38
|
-
"default": "generator.config.json",
|
|
39
|
-
"hasDynamicHelp": false,
|
|
40
|
-
"multiple": false,
|
|
41
|
-
"type": "option"
|
|
42
|
-
},
|
|
43
|
-
"utam-config": {
|
|
44
|
-
"name": "utam-config",
|
|
45
|
-
"summary": "Path to utam.config.json.",
|
|
46
|
-
"default": "utam.config.json",
|
|
47
|
-
"hasDynamicHelp": false,
|
|
48
|
-
"multiple": false,
|
|
49
|
-
"type": "option"
|
|
50
|
-
},
|
|
51
|
-
"namespace-map": {
|
|
52
|
-
"name": "namespace-map",
|
|
53
|
-
"summary": "Path to namespace-map.json.",
|
|
54
|
-
"default": ".utam/namespace-map.json",
|
|
55
|
-
"hasDynamicHelp": false,
|
|
56
|
-
"multiple": false,
|
|
57
|
-
"type": "option"
|
|
58
|
-
},
|
|
59
|
-
"dry-run": {
|
|
60
|
-
"char": "d",
|
|
61
|
-
"name": "dry-run",
|
|
62
|
-
"summary": "Preview pipeline execution without invoking compilers or modifying files.",
|
|
63
|
-
"allowNo": false,
|
|
64
|
-
"type": "boolean"
|
|
65
|
-
},
|
|
66
|
-
"verbose": {
|
|
67
|
-
"char": "v",
|
|
68
|
-
"name": "verbose",
|
|
69
|
-
"summary": "Enable detailed output.",
|
|
70
|
-
"allowNo": false,
|
|
71
|
-
"type": "boolean"
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
"hasDynamicHelp": false,
|
|
75
|
-
"hiddenAliases": [],
|
|
76
|
-
"id": "build",
|
|
77
|
-
"pluginAlias": "@simplysf/simply-utam",
|
|
78
|
-
"pluginName": "@simplysf/simply-utam",
|
|
79
|
-
"pluginType": "core",
|
|
80
|
-
"strict": true,
|
|
81
|
-
"summary": "Run the end-to-end SimplyUTAM build pipeline (rules -> utam-generate -> overrides -> rewrite -> utam).",
|
|
82
|
-
"enableJsonFlag": true,
|
|
83
|
-
"isESM": true,
|
|
84
|
-
"relativePath": [
|
|
85
|
-
"lib",
|
|
86
|
-
"commands",
|
|
87
|
-
"build.js"
|
|
88
|
-
]
|
|
89
|
-
},
|
|
90
|
-
"init": {
|
|
91
|
-
"aliases": [],
|
|
92
|
-
"args": {},
|
|
93
|
-
"description": "Inspects the target project, generates generator.config.json, utam.config.json, wdio.conf.mjs, and .utam/namespace-map.json, and non-destructively injects standard Wireit tasks into package.json.",
|
|
94
|
-
"examples": [
|
|
95
|
-
"<%= config.bin %> <%= command.id %>",
|
|
96
|
-
"<%= config.bin %> <%= command.id %> --source-dir force-app --app-name my-app",
|
|
97
|
-
"<%= config.bin %> <%= command.id %> --dry-run"
|
|
98
|
-
],
|
|
99
|
-
"flags": {
|
|
100
|
-
"json": {
|
|
101
|
-
"description": "Format output as json.",
|
|
102
|
-
"helpGroup": "GLOBAL",
|
|
103
|
-
"name": "json",
|
|
104
|
-
"allowNo": false,
|
|
105
|
-
"type": "boolean"
|
|
106
|
-
},
|
|
107
|
-
"project-dir": {
|
|
108
|
-
"name": "project-dir",
|
|
109
|
-
"summary": "Root directory of the consumer project.",
|
|
110
|
-
"default": ".",
|
|
111
|
-
"hasDynamicHelp": false,
|
|
112
|
-
"multiple": false,
|
|
113
|
-
"type": "option"
|
|
114
|
-
},
|
|
115
|
-
"source-dir": {
|
|
116
|
-
"char": "s",
|
|
117
|
-
"name": "source-dir",
|
|
118
|
-
"summary": "Primary Salesforce source directory (auto-detected from sfdx-project.json if omitted).",
|
|
119
|
-
"hasDynamicHelp": false,
|
|
120
|
-
"multiple": false,
|
|
121
|
-
"type": "option"
|
|
122
|
-
},
|
|
123
|
-
"app-name": {
|
|
124
|
-
"char": "a",
|
|
125
|
-
"name": "app-name",
|
|
126
|
-
"summary": "Application name for UTAM namespaces (defaults to package.json name).",
|
|
127
|
-
"hasDynamicHelp": false,
|
|
128
|
-
"multiple": false,
|
|
129
|
-
"type": "option"
|
|
130
|
-
},
|
|
131
|
-
"force": {
|
|
132
|
-
"char": "f",
|
|
133
|
-
"name": "force",
|
|
134
|
-
"summary": "Overwrite existing configuration files.",
|
|
135
|
-
"allowNo": false,
|
|
136
|
-
"type": "boolean"
|
|
137
|
-
},
|
|
138
|
-
"dry-run": {
|
|
139
|
-
"char": "d",
|
|
140
|
-
"name": "dry-run",
|
|
141
|
-
"summary": "Preview modifications without writing to disk.",
|
|
142
|
-
"allowNo": false,
|
|
143
|
-
"type": "boolean"
|
|
144
|
-
},
|
|
145
|
-
"verbose": {
|
|
146
|
-
"char": "v",
|
|
147
|
-
"name": "verbose",
|
|
148
|
-
"summary": "Enable detailed output.",
|
|
149
|
-
"allowNo": false,
|
|
150
|
-
"type": "boolean"
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
"hasDynamicHelp": false,
|
|
154
|
-
"hiddenAliases": [],
|
|
155
|
-
"id": "init",
|
|
156
|
-
"pluginAlias": "@simplysf/simply-utam",
|
|
157
|
-
"pluginName": "@simplysf/simply-utam",
|
|
158
|
-
"pluginType": "core",
|
|
159
|
-
"strict": true,
|
|
160
|
-
"summary": "Scaffold UTAM configurations, Wireit tasks, and namespace maps in a Salesforce project.",
|
|
161
|
-
"enableJsonFlag": true,
|
|
162
|
-
"isESM": true,
|
|
163
|
-
"relativePath": [
|
|
164
|
-
"lib",
|
|
165
|
-
"commands",
|
|
166
|
-
"init.js"
|
|
167
|
-
]
|
|
168
|
-
},
|
|
169
|
-
"overrides": {
|
|
170
|
-
"aliases": [],
|
|
171
|
-
"args": {},
|
|
172
|
-
"description": "Recursively searches source directories for *.utam-overrides.json files, locates corresponding compiled *.utam.json schemas, and performs deep AST merging while preserving JSON indentation.",
|
|
173
|
-
"examples": [
|
|
174
|
-
"<%= config.bin %> <%= command.id %>",
|
|
175
|
-
"<%= config.bin %> <%= command.id %> --source force-app",
|
|
176
|
-
"<%= config.bin %> <%= command.id %> --dry-run"
|
|
177
|
-
],
|
|
178
|
-
"flags": {
|
|
179
|
-
"json": {
|
|
180
|
-
"description": "Format output as json.",
|
|
181
|
-
"helpGroup": "GLOBAL",
|
|
182
|
-
"name": "json",
|
|
183
|
-
"allowNo": false,
|
|
184
|
-
"type": "boolean"
|
|
185
|
-
},
|
|
186
|
-
"source": {
|
|
187
|
-
"char": "s",
|
|
188
|
-
"name": "source",
|
|
189
|
-
"summary": "Specific source directory or directories to scan (defaults to discovered package directories).",
|
|
190
|
-
"hasDynamicHelp": false,
|
|
191
|
-
"multiple": true,
|
|
192
|
-
"type": "option"
|
|
193
|
-
},
|
|
194
|
-
"project-dir": {
|
|
195
|
-
"name": "project-dir",
|
|
196
|
-
"summary": "Root directory of the project.",
|
|
197
|
-
"default": ".",
|
|
198
|
-
"hasDynamicHelp": false,
|
|
199
|
-
"multiple": false,
|
|
200
|
-
"type": "option"
|
|
201
|
-
},
|
|
202
|
-
"dry-run": {
|
|
203
|
-
"char": "d",
|
|
204
|
-
"name": "dry-run",
|
|
205
|
-
"summary": "Preview overrides without modifying files on disk.",
|
|
206
|
-
"allowNo": false,
|
|
207
|
-
"type": "boolean"
|
|
208
|
-
},
|
|
209
|
-
"verbose": {
|
|
210
|
-
"char": "v",
|
|
211
|
-
"name": "verbose",
|
|
212
|
-
"summary": "Enable detailed output.",
|
|
213
|
-
"allowNo": false,
|
|
214
|
-
"type": "boolean"
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
"hasDynamicHelp": false,
|
|
218
|
-
"hiddenAliases": [],
|
|
219
|
-
"id": "overrides",
|
|
220
|
-
"pluginAlias": "@simplysf/simply-utam",
|
|
221
|
-
"pluginName": "@simplysf/simply-utam",
|
|
222
|
-
"pluginType": "core",
|
|
223
|
-
"strict": true,
|
|
224
|
-
"summary": "Merge *.utam-overrides.json files into generated UTAM page object schemas.",
|
|
225
|
-
"enableJsonFlag": true,
|
|
226
|
-
"isESM": true,
|
|
227
|
-
"relativePath": [
|
|
228
|
-
"lib",
|
|
229
|
-
"commands",
|
|
230
|
-
"overrides.js"
|
|
231
|
-
]
|
|
232
|
-
},
|
|
233
|
-
"rewrite": {
|
|
234
|
-
"aliases": [],
|
|
235
|
-
"args": {},
|
|
236
|
-
"description": "Reads namespace mappings from a configuration file (or defaults to .utam/namespace-map.json) and replaces target component namespaces in *.utam.json schemas.",
|
|
237
|
-
"examples": [
|
|
238
|
-
"<%= config.bin %> <%= command.id %>",
|
|
239
|
-
"<%= config.bin %> <%= command.id %> --config .utam/namespace-map.json",
|
|
240
|
-
"<%= config.bin %> <%= command.id %> --dry-run"
|
|
241
|
-
],
|
|
242
|
-
"flags": {
|
|
243
|
-
"json": {
|
|
244
|
-
"description": "Format output as json.",
|
|
245
|
-
"helpGroup": "GLOBAL",
|
|
246
|
-
"name": "json",
|
|
247
|
-
"allowNo": false,
|
|
248
|
-
"type": "boolean"
|
|
249
|
-
},
|
|
250
|
-
"source": {
|
|
251
|
-
"char": "s",
|
|
252
|
-
"name": "source",
|
|
253
|
-
"summary": "Specific source directory or directories to scan (defaults to discovered package directories).",
|
|
254
|
-
"hasDynamicHelp": false,
|
|
255
|
-
"multiple": true,
|
|
256
|
-
"type": "option"
|
|
257
|
-
},
|
|
258
|
-
"config": {
|
|
259
|
-
"char": "c",
|
|
260
|
-
"name": "config",
|
|
261
|
-
"summary": "Path to namespace mapping configuration file.",
|
|
262
|
-
"default": ".utam/namespace-map.json",
|
|
263
|
-
"hasDynamicHelp": false,
|
|
264
|
-
"multiple": false,
|
|
265
|
-
"type": "option"
|
|
266
|
-
},
|
|
267
|
-
"project-dir": {
|
|
268
|
-
"name": "project-dir",
|
|
269
|
-
"summary": "Root directory of the project.",
|
|
270
|
-
"default": ".",
|
|
271
|
-
"hasDynamicHelp": false,
|
|
272
|
-
"multiple": false,
|
|
273
|
-
"type": "option"
|
|
274
|
-
},
|
|
275
|
-
"dry-run": {
|
|
276
|
-
"char": "d",
|
|
277
|
-
"name": "dry-run",
|
|
278
|
-
"summary": "Preview namespace rewrites without modifying files on disk.",
|
|
279
|
-
"allowNo": false,
|
|
280
|
-
"type": "boolean"
|
|
281
|
-
},
|
|
282
|
-
"verbose": {
|
|
283
|
-
"char": "v",
|
|
284
|
-
"name": "verbose",
|
|
285
|
-
"summary": "Enable detailed output.",
|
|
286
|
-
"allowNo": false,
|
|
287
|
-
"type": "boolean"
|
|
288
|
-
}
|
|
289
|
-
},
|
|
290
|
-
"hasDynamicHelp": false,
|
|
291
|
-
"hiddenAliases": [],
|
|
292
|
-
"id": "rewrite",
|
|
293
|
-
"pluginAlias": "@simplysf/simply-utam",
|
|
294
|
-
"pluginName": "@simplysf/simply-utam",
|
|
295
|
-
"pluginType": "core",
|
|
296
|
-
"strict": true,
|
|
297
|
-
"summary": "Rewrite namespace prefixes across generated UTAM page object schemas.",
|
|
298
|
-
"enableJsonFlag": true,
|
|
299
|
-
"isESM": true,
|
|
300
|
-
"relativePath": [
|
|
301
|
-
"lib",
|
|
302
|
-
"commands",
|
|
303
|
-
"rewrite.js"
|
|
304
|
-
]
|
|
305
|
-
},
|
|
306
|
-
"rules": {
|
|
307
|
-
"aliases": [],
|
|
308
|
-
"args": {},
|
|
309
|
-
"description": "Discovers root components in package directories matching target page types and generates or updates corresponding *.rules.json schemas.",
|
|
310
|
-
"examples": [
|
|
311
|
-
"<%= config.bin %> <%= command.id %>",
|
|
312
|
-
"<%= config.bin %> <%= command.id %> --source force-app/main/default/lwc",
|
|
313
|
-
"<%= config.bin %> <%= command.id %> --dry-run"
|
|
314
|
-
],
|
|
315
|
-
"flags": {
|
|
316
|
-
"json": {
|
|
317
|
-
"description": "Format output as json.",
|
|
318
|
-
"helpGroup": "GLOBAL",
|
|
319
|
-
"name": "json",
|
|
320
|
-
"allowNo": false,
|
|
321
|
-
"type": "boolean"
|
|
322
|
-
},
|
|
323
|
-
"source": {
|
|
324
|
-
"char": "s",
|
|
325
|
-
"name": "source",
|
|
326
|
-
"summary": "Specific source directory or directories to scan (defaults to discovered package directories).",
|
|
327
|
-
"hasDynamicHelp": false,
|
|
328
|
-
"multiple": true,
|
|
329
|
-
"type": "option"
|
|
330
|
-
},
|
|
331
|
-
"namespace": {
|
|
332
|
-
"char": "n",
|
|
333
|
-
"name": "namespace",
|
|
334
|
-
"summary": "LWC namespace prefix for selector generation (defaults to c).",
|
|
335
|
-
"hasDynamicHelp": false,
|
|
336
|
-
"multiple": false,
|
|
337
|
-
"type": "option"
|
|
338
|
-
},
|
|
339
|
-
"project-dir": {
|
|
340
|
-
"name": "project-dir",
|
|
341
|
-
"summary": "Root directory of the project.",
|
|
342
|
-
"default": ".",
|
|
343
|
-
"hasDynamicHelp": false,
|
|
344
|
-
"multiple": false,
|
|
345
|
-
"type": "option"
|
|
346
|
-
},
|
|
347
|
-
"dry-run": {
|
|
348
|
-
"char": "d",
|
|
349
|
-
"name": "dry-run",
|
|
350
|
-
"summary": "Preview generated rules without writing to disk.",
|
|
351
|
-
"allowNo": false,
|
|
352
|
-
"type": "boolean"
|
|
353
|
-
},
|
|
354
|
-
"verbose": {
|
|
355
|
-
"char": "v",
|
|
356
|
-
"name": "verbose",
|
|
357
|
-
"summary": "Enable detailed output.",
|
|
358
|
-
"allowNo": false,
|
|
359
|
-
"type": "boolean"
|
|
360
|
-
}
|
|
361
|
-
},
|
|
362
|
-
"hasDynamicHelp": false,
|
|
363
|
-
"hiddenAliases": [],
|
|
364
|
-
"id": "rules",
|
|
365
|
-
"pluginAlias": "@simplysf/simply-utam",
|
|
366
|
-
"pluginName": "@simplysf/simply-utam",
|
|
367
|
-
"pluginType": "core",
|
|
368
|
-
"strict": true,
|
|
369
|
-
"summary": "Scan LWC component definitions and generate UTAM .rules.json files.",
|
|
370
|
-
"enableJsonFlag": true,
|
|
371
|
-
"isESM": true,
|
|
372
|
-
"relativePath": [
|
|
373
|
-
"lib",
|
|
374
|
-
"commands",
|
|
375
|
-
"rules.js"
|
|
376
|
-
]
|
|
377
|
-
},
|
|
378
|
-
"steps": {
|
|
379
|
-
"aliases": [],
|
|
380
|
-
"args": {},
|
|
381
|
-
"description": "Parses Gherkin .feature files, compiles registered step expressions from existing step definition files, detects true missing steps without false positives, and appends formatted snippet templates.",
|
|
382
|
-
"examples": [
|
|
383
|
-
"<%= config.bin %> <%= command.id %>",
|
|
384
|
-
"<%= config.bin %> <%= command.id %> --features \"tests/**/*.feature\" --steps \"tests/**/*.steps.ts\"",
|
|
385
|
-
"<%= config.bin %> <%= command.id %> --dry-run"
|
|
386
|
-
],
|
|
387
|
-
"flags": {
|
|
388
|
-
"json": {
|
|
389
|
-
"description": "Format output as json.",
|
|
390
|
-
"helpGroup": "GLOBAL",
|
|
391
|
-
"name": "json",
|
|
392
|
-
"allowNo": false,
|
|
393
|
-
"type": "boolean"
|
|
394
|
-
},
|
|
395
|
-
"features": {
|
|
396
|
-
"char": "f",
|
|
397
|
-
"name": "features",
|
|
398
|
-
"summary": "Glob pattern(s) for Gherkin feature files.",
|
|
399
|
-
"default": [
|
|
400
|
-
"**/test/*.feature",
|
|
401
|
-
"**/test/**/*.feature"
|
|
402
|
-
],
|
|
403
|
-
"hasDynamicHelp": false,
|
|
404
|
-
"multiple": true,
|
|
405
|
-
"type": "option"
|
|
406
|
-
},
|
|
407
|
-
"steps": {
|
|
408
|
-
"char": "s",
|
|
409
|
-
"name": "steps",
|
|
410
|
-
"summary": "Glob pattern(s) for existing Cucumber step definitions.",
|
|
411
|
-
"default": [
|
|
412
|
-
"**/test/*.steps.{js,mjs,ts}",
|
|
413
|
-
"**/test/**/*.steps.{js,mjs,ts}"
|
|
414
|
-
],
|
|
415
|
-
"hasDynamicHelp": false,
|
|
416
|
-
"multiple": true,
|
|
417
|
-
"type": "option"
|
|
418
|
-
},
|
|
419
|
-
"output": {
|
|
420
|
-
"char": "o",
|
|
421
|
-
"name": "output",
|
|
422
|
-
"summary": "Target file path for scaffolded step definitions (defaults to first matched step file or new generated.steps.mjs).",
|
|
423
|
-
"hasDynamicHelp": false,
|
|
424
|
-
"multiple": false,
|
|
425
|
-
"type": "option"
|
|
426
|
-
},
|
|
427
|
-
"project-dir": {
|
|
428
|
-
"name": "project-dir",
|
|
429
|
-
"summary": "Root directory of the project.",
|
|
430
|
-
"default": ".",
|
|
431
|
-
"hasDynamicHelp": false,
|
|
432
|
-
"multiple": false,
|
|
433
|
-
"type": "option"
|
|
434
|
-
},
|
|
435
|
-
"dry-run": {
|
|
436
|
-
"char": "d",
|
|
437
|
-
"name": "dry-run",
|
|
438
|
-
"summary": "Preview generated step snippets without modifying files on disk.",
|
|
439
|
-
"allowNo": false,
|
|
440
|
-
"type": "boolean"
|
|
441
|
-
},
|
|
442
|
-
"verbose": {
|
|
443
|
-
"char": "v",
|
|
444
|
-
"name": "verbose",
|
|
445
|
-
"summary": "Enable detailed output.",
|
|
446
|
-
"allowNo": false,
|
|
447
|
-
"type": "boolean"
|
|
448
|
-
}
|
|
449
|
-
},
|
|
450
|
-
"hasDynamicHelp": false,
|
|
451
|
-
"hiddenAliases": [],
|
|
452
|
-
"id": "steps",
|
|
453
|
-
"pluginAlias": "@simplysf/simply-utam",
|
|
454
|
-
"pluginName": "@simplysf/simply-utam",
|
|
455
|
-
"pluginType": "core",
|
|
456
|
-
"strict": true,
|
|
457
|
-
"summary": "Scaffold missing Cucumber step definitions based on Gherkin feature files.",
|
|
458
|
-
"enableJsonFlag": true,
|
|
459
|
-
"isESM": true,
|
|
460
|
-
"relativePath": [
|
|
461
|
-
"lib",
|
|
462
|
-
"commands",
|
|
463
|
-
"steps.js"
|
|
464
|
-
]
|
|
465
|
-
}
|
|
466
|
-
},
|
|
467
|
-
"version": "0.
|
|
1
|
+
{
|
|
2
|
+
"commands": {
|
|
3
|
+
"build": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {},
|
|
6
|
+
"description": "Standalone convenience runner executing all transformation and compilation stages sequentially. Note: Wireit tasks (configured via simply-utam init) remain the recommended mechanism for granular caching in everyday developer workflows.",
|
|
7
|
+
"examples": [
|
|
8
|
+
"<%= config.bin %> <%= command.id %>",
|
|
9
|
+
"<%= config.bin %> <%= command.id %> --dry-run"
|
|
10
|
+
],
|
|
11
|
+
"flags": {
|
|
12
|
+
"json": {
|
|
13
|
+
"description": "Format output as json.",
|
|
14
|
+
"helpGroup": "GLOBAL",
|
|
15
|
+
"name": "json",
|
|
16
|
+
"allowNo": false,
|
|
17
|
+
"type": "boolean"
|
|
18
|
+
},
|
|
19
|
+
"source": {
|
|
20
|
+
"char": "s",
|
|
21
|
+
"name": "source",
|
|
22
|
+
"summary": "Specific source directory or directories to process (defaults to discovered package directories).",
|
|
23
|
+
"hasDynamicHelp": false,
|
|
24
|
+
"multiple": true,
|
|
25
|
+
"type": "option"
|
|
26
|
+
},
|
|
27
|
+
"project-dir": {
|
|
28
|
+
"name": "project-dir",
|
|
29
|
+
"summary": "Root directory of the project.",
|
|
30
|
+
"default": ".",
|
|
31
|
+
"hasDynamicHelp": false,
|
|
32
|
+
"multiple": false,
|
|
33
|
+
"type": "option"
|
|
34
|
+
},
|
|
35
|
+
"generator-config": {
|
|
36
|
+
"name": "generator-config",
|
|
37
|
+
"summary": "Path to generator.config.json.",
|
|
38
|
+
"default": "generator.config.json",
|
|
39
|
+
"hasDynamicHelp": false,
|
|
40
|
+
"multiple": false,
|
|
41
|
+
"type": "option"
|
|
42
|
+
},
|
|
43
|
+
"utam-config": {
|
|
44
|
+
"name": "utam-config",
|
|
45
|
+
"summary": "Path to utam.config.json.",
|
|
46
|
+
"default": "utam.config.json",
|
|
47
|
+
"hasDynamicHelp": false,
|
|
48
|
+
"multiple": false,
|
|
49
|
+
"type": "option"
|
|
50
|
+
},
|
|
51
|
+
"namespace-map": {
|
|
52
|
+
"name": "namespace-map",
|
|
53
|
+
"summary": "Path to namespace-map.json.",
|
|
54
|
+
"default": ".utam/namespace-map.json",
|
|
55
|
+
"hasDynamicHelp": false,
|
|
56
|
+
"multiple": false,
|
|
57
|
+
"type": "option"
|
|
58
|
+
},
|
|
59
|
+
"dry-run": {
|
|
60
|
+
"char": "d",
|
|
61
|
+
"name": "dry-run",
|
|
62
|
+
"summary": "Preview pipeline execution without invoking compilers or modifying files.",
|
|
63
|
+
"allowNo": false,
|
|
64
|
+
"type": "boolean"
|
|
65
|
+
},
|
|
66
|
+
"verbose": {
|
|
67
|
+
"char": "v",
|
|
68
|
+
"name": "verbose",
|
|
69
|
+
"summary": "Enable detailed output.",
|
|
70
|
+
"allowNo": false,
|
|
71
|
+
"type": "boolean"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"hasDynamicHelp": false,
|
|
75
|
+
"hiddenAliases": [],
|
|
76
|
+
"id": "build",
|
|
77
|
+
"pluginAlias": "@simplysf/simply-utam",
|
|
78
|
+
"pluginName": "@simplysf/simply-utam",
|
|
79
|
+
"pluginType": "core",
|
|
80
|
+
"strict": true,
|
|
81
|
+
"summary": "Run the end-to-end SimplyUTAM build pipeline (rules -> utam-generate -> overrides -> rewrite -> utam).",
|
|
82
|
+
"enableJsonFlag": true,
|
|
83
|
+
"isESM": true,
|
|
84
|
+
"relativePath": [
|
|
85
|
+
"lib",
|
|
86
|
+
"commands",
|
|
87
|
+
"build.js"
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
"init": {
|
|
91
|
+
"aliases": [],
|
|
92
|
+
"args": {},
|
|
93
|
+
"description": "Inspects the target project, generates generator.config.json, utam.config.json, wdio.conf.mjs, and .utam/namespace-map.json, and non-destructively injects standard Wireit tasks into package.json.",
|
|
94
|
+
"examples": [
|
|
95
|
+
"<%= config.bin %> <%= command.id %>",
|
|
96
|
+
"<%= config.bin %> <%= command.id %> --source-dir force-app --app-name my-app",
|
|
97
|
+
"<%= config.bin %> <%= command.id %> --dry-run"
|
|
98
|
+
],
|
|
99
|
+
"flags": {
|
|
100
|
+
"json": {
|
|
101
|
+
"description": "Format output as json.",
|
|
102
|
+
"helpGroup": "GLOBAL",
|
|
103
|
+
"name": "json",
|
|
104
|
+
"allowNo": false,
|
|
105
|
+
"type": "boolean"
|
|
106
|
+
},
|
|
107
|
+
"project-dir": {
|
|
108
|
+
"name": "project-dir",
|
|
109
|
+
"summary": "Root directory of the consumer project.",
|
|
110
|
+
"default": ".",
|
|
111
|
+
"hasDynamicHelp": false,
|
|
112
|
+
"multiple": false,
|
|
113
|
+
"type": "option"
|
|
114
|
+
},
|
|
115
|
+
"source-dir": {
|
|
116
|
+
"char": "s",
|
|
117
|
+
"name": "source-dir",
|
|
118
|
+
"summary": "Primary Salesforce source directory (auto-detected from sfdx-project.json if omitted).",
|
|
119
|
+
"hasDynamicHelp": false,
|
|
120
|
+
"multiple": false,
|
|
121
|
+
"type": "option"
|
|
122
|
+
},
|
|
123
|
+
"app-name": {
|
|
124
|
+
"char": "a",
|
|
125
|
+
"name": "app-name",
|
|
126
|
+
"summary": "Application name for UTAM namespaces (defaults to package.json name).",
|
|
127
|
+
"hasDynamicHelp": false,
|
|
128
|
+
"multiple": false,
|
|
129
|
+
"type": "option"
|
|
130
|
+
},
|
|
131
|
+
"force": {
|
|
132
|
+
"char": "f",
|
|
133
|
+
"name": "force",
|
|
134
|
+
"summary": "Overwrite existing configuration files.",
|
|
135
|
+
"allowNo": false,
|
|
136
|
+
"type": "boolean"
|
|
137
|
+
},
|
|
138
|
+
"dry-run": {
|
|
139
|
+
"char": "d",
|
|
140
|
+
"name": "dry-run",
|
|
141
|
+
"summary": "Preview modifications without writing to disk.",
|
|
142
|
+
"allowNo": false,
|
|
143
|
+
"type": "boolean"
|
|
144
|
+
},
|
|
145
|
+
"verbose": {
|
|
146
|
+
"char": "v",
|
|
147
|
+
"name": "verbose",
|
|
148
|
+
"summary": "Enable detailed output.",
|
|
149
|
+
"allowNo": false,
|
|
150
|
+
"type": "boolean"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"hasDynamicHelp": false,
|
|
154
|
+
"hiddenAliases": [],
|
|
155
|
+
"id": "init",
|
|
156
|
+
"pluginAlias": "@simplysf/simply-utam",
|
|
157
|
+
"pluginName": "@simplysf/simply-utam",
|
|
158
|
+
"pluginType": "core",
|
|
159
|
+
"strict": true,
|
|
160
|
+
"summary": "Scaffold UTAM configurations, Wireit tasks, and namespace maps in a Salesforce project.",
|
|
161
|
+
"enableJsonFlag": true,
|
|
162
|
+
"isESM": true,
|
|
163
|
+
"relativePath": [
|
|
164
|
+
"lib",
|
|
165
|
+
"commands",
|
|
166
|
+
"init.js"
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
"overrides": {
|
|
170
|
+
"aliases": [],
|
|
171
|
+
"args": {},
|
|
172
|
+
"description": "Recursively searches source directories for *.utam-overrides.json files, locates corresponding compiled *.utam.json schemas, and performs deep AST merging while preserving JSON indentation.",
|
|
173
|
+
"examples": [
|
|
174
|
+
"<%= config.bin %> <%= command.id %>",
|
|
175
|
+
"<%= config.bin %> <%= command.id %> --source force-app",
|
|
176
|
+
"<%= config.bin %> <%= command.id %> --dry-run"
|
|
177
|
+
],
|
|
178
|
+
"flags": {
|
|
179
|
+
"json": {
|
|
180
|
+
"description": "Format output as json.",
|
|
181
|
+
"helpGroup": "GLOBAL",
|
|
182
|
+
"name": "json",
|
|
183
|
+
"allowNo": false,
|
|
184
|
+
"type": "boolean"
|
|
185
|
+
},
|
|
186
|
+
"source": {
|
|
187
|
+
"char": "s",
|
|
188
|
+
"name": "source",
|
|
189
|
+
"summary": "Specific source directory or directories to scan (defaults to discovered package directories).",
|
|
190
|
+
"hasDynamicHelp": false,
|
|
191
|
+
"multiple": true,
|
|
192
|
+
"type": "option"
|
|
193
|
+
},
|
|
194
|
+
"project-dir": {
|
|
195
|
+
"name": "project-dir",
|
|
196
|
+
"summary": "Root directory of the project.",
|
|
197
|
+
"default": ".",
|
|
198
|
+
"hasDynamicHelp": false,
|
|
199
|
+
"multiple": false,
|
|
200
|
+
"type": "option"
|
|
201
|
+
},
|
|
202
|
+
"dry-run": {
|
|
203
|
+
"char": "d",
|
|
204
|
+
"name": "dry-run",
|
|
205
|
+
"summary": "Preview overrides without modifying files on disk.",
|
|
206
|
+
"allowNo": false,
|
|
207
|
+
"type": "boolean"
|
|
208
|
+
},
|
|
209
|
+
"verbose": {
|
|
210
|
+
"char": "v",
|
|
211
|
+
"name": "verbose",
|
|
212
|
+
"summary": "Enable detailed output.",
|
|
213
|
+
"allowNo": false,
|
|
214
|
+
"type": "boolean"
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"hasDynamicHelp": false,
|
|
218
|
+
"hiddenAliases": [],
|
|
219
|
+
"id": "overrides",
|
|
220
|
+
"pluginAlias": "@simplysf/simply-utam",
|
|
221
|
+
"pluginName": "@simplysf/simply-utam",
|
|
222
|
+
"pluginType": "core",
|
|
223
|
+
"strict": true,
|
|
224
|
+
"summary": "Merge *.utam-overrides.json files into generated UTAM page object schemas.",
|
|
225
|
+
"enableJsonFlag": true,
|
|
226
|
+
"isESM": true,
|
|
227
|
+
"relativePath": [
|
|
228
|
+
"lib",
|
|
229
|
+
"commands",
|
|
230
|
+
"overrides.js"
|
|
231
|
+
]
|
|
232
|
+
},
|
|
233
|
+
"rewrite": {
|
|
234
|
+
"aliases": [],
|
|
235
|
+
"args": {},
|
|
236
|
+
"description": "Reads namespace mappings from a configuration file (or defaults to .utam/namespace-map.json) and replaces target component namespaces in *.utam.json schemas.",
|
|
237
|
+
"examples": [
|
|
238
|
+
"<%= config.bin %> <%= command.id %>",
|
|
239
|
+
"<%= config.bin %> <%= command.id %> --config .utam/namespace-map.json",
|
|
240
|
+
"<%= config.bin %> <%= command.id %> --dry-run"
|
|
241
|
+
],
|
|
242
|
+
"flags": {
|
|
243
|
+
"json": {
|
|
244
|
+
"description": "Format output as json.",
|
|
245
|
+
"helpGroup": "GLOBAL",
|
|
246
|
+
"name": "json",
|
|
247
|
+
"allowNo": false,
|
|
248
|
+
"type": "boolean"
|
|
249
|
+
},
|
|
250
|
+
"source": {
|
|
251
|
+
"char": "s",
|
|
252
|
+
"name": "source",
|
|
253
|
+
"summary": "Specific source directory or directories to scan (defaults to discovered package directories).",
|
|
254
|
+
"hasDynamicHelp": false,
|
|
255
|
+
"multiple": true,
|
|
256
|
+
"type": "option"
|
|
257
|
+
},
|
|
258
|
+
"config": {
|
|
259
|
+
"char": "c",
|
|
260
|
+
"name": "config",
|
|
261
|
+
"summary": "Path to namespace mapping configuration file.",
|
|
262
|
+
"default": ".utam/namespace-map.json",
|
|
263
|
+
"hasDynamicHelp": false,
|
|
264
|
+
"multiple": false,
|
|
265
|
+
"type": "option"
|
|
266
|
+
},
|
|
267
|
+
"project-dir": {
|
|
268
|
+
"name": "project-dir",
|
|
269
|
+
"summary": "Root directory of the project.",
|
|
270
|
+
"default": ".",
|
|
271
|
+
"hasDynamicHelp": false,
|
|
272
|
+
"multiple": false,
|
|
273
|
+
"type": "option"
|
|
274
|
+
},
|
|
275
|
+
"dry-run": {
|
|
276
|
+
"char": "d",
|
|
277
|
+
"name": "dry-run",
|
|
278
|
+
"summary": "Preview namespace rewrites without modifying files on disk.",
|
|
279
|
+
"allowNo": false,
|
|
280
|
+
"type": "boolean"
|
|
281
|
+
},
|
|
282
|
+
"verbose": {
|
|
283
|
+
"char": "v",
|
|
284
|
+
"name": "verbose",
|
|
285
|
+
"summary": "Enable detailed output.",
|
|
286
|
+
"allowNo": false,
|
|
287
|
+
"type": "boolean"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"hasDynamicHelp": false,
|
|
291
|
+
"hiddenAliases": [],
|
|
292
|
+
"id": "rewrite",
|
|
293
|
+
"pluginAlias": "@simplysf/simply-utam",
|
|
294
|
+
"pluginName": "@simplysf/simply-utam",
|
|
295
|
+
"pluginType": "core",
|
|
296
|
+
"strict": true,
|
|
297
|
+
"summary": "Rewrite namespace prefixes across generated UTAM page object schemas.",
|
|
298
|
+
"enableJsonFlag": true,
|
|
299
|
+
"isESM": true,
|
|
300
|
+
"relativePath": [
|
|
301
|
+
"lib",
|
|
302
|
+
"commands",
|
|
303
|
+
"rewrite.js"
|
|
304
|
+
]
|
|
305
|
+
},
|
|
306
|
+
"rules": {
|
|
307
|
+
"aliases": [],
|
|
308
|
+
"args": {},
|
|
309
|
+
"description": "Discovers root components in package directories matching target page types and generates or updates corresponding *.rules.json schemas.",
|
|
310
|
+
"examples": [
|
|
311
|
+
"<%= config.bin %> <%= command.id %>",
|
|
312
|
+
"<%= config.bin %> <%= command.id %> --source force-app/main/default/lwc",
|
|
313
|
+
"<%= config.bin %> <%= command.id %> --dry-run"
|
|
314
|
+
],
|
|
315
|
+
"flags": {
|
|
316
|
+
"json": {
|
|
317
|
+
"description": "Format output as json.",
|
|
318
|
+
"helpGroup": "GLOBAL",
|
|
319
|
+
"name": "json",
|
|
320
|
+
"allowNo": false,
|
|
321
|
+
"type": "boolean"
|
|
322
|
+
},
|
|
323
|
+
"source": {
|
|
324
|
+
"char": "s",
|
|
325
|
+
"name": "source",
|
|
326
|
+
"summary": "Specific source directory or directories to scan (defaults to discovered package directories).",
|
|
327
|
+
"hasDynamicHelp": false,
|
|
328
|
+
"multiple": true,
|
|
329
|
+
"type": "option"
|
|
330
|
+
},
|
|
331
|
+
"namespace": {
|
|
332
|
+
"char": "n",
|
|
333
|
+
"name": "namespace",
|
|
334
|
+
"summary": "LWC namespace prefix for selector generation (defaults to c).",
|
|
335
|
+
"hasDynamicHelp": false,
|
|
336
|
+
"multiple": false,
|
|
337
|
+
"type": "option"
|
|
338
|
+
},
|
|
339
|
+
"project-dir": {
|
|
340
|
+
"name": "project-dir",
|
|
341
|
+
"summary": "Root directory of the project.",
|
|
342
|
+
"default": ".",
|
|
343
|
+
"hasDynamicHelp": false,
|
|
344
|
+
"multiple": false,
|
|
345
|
+
"type": "option"
|
|
346
|
+
},
|
|
347
|
+
"dry-run": {
|
|
348
|
+
"char": "d",
|
|
349
|
+
"name": "dry-run",
|
|
350
|
+
"summary": "Preview generated rules without writing to disk.",
|
|
351
|
+
"allowNo": false,
|
|
352
|
+
"type": "boolean"
|
|
353
|
+
},
|
|
354
|
+
"verbose": {
|
|
355
|
+
"char": "v",
|
|
356
|
+
"name": "verbose",
|
|
357
|
+
"summary": "Enable detailed output.",
|
|
358
|
+
"allowNo": false,
|
|
359
|
+
"type": "boolean"
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
"hasDynamicHelp": false,
|
|
363
|
+
"hiddenAliases": [],
|
|
364
|
+
"id": "rules",
|
|
365
|
+
"pluginAlias": "@simplysf/simply-utam",
|
|
366
|
+
"pluginName": "@simplysf/simply-utam",
|
|
367
|
+
"pluginType": "core",
|
|
368
|
+
"strict": true,
|
|
369
|
+
"summary": "Scan LWC component definitions and generate UTAM .rules.json files.",
|
|
370
|
+
"enableJsonFlag": true,
|
|
371
|
+
"isESM": true,
|
|
372
|
+
"relativePath": [
|
|
373
|
+
"lib",
|
|
374
|
+
"commands",
|
|
375
|
+
"rules.js"
|
|
376
|
+
]
|
|
377
|
+
},
|
|
378
|
+
"steps": {
|
|
379
|
+
"aliases": [],
|
|
380
|
+
"args": {},
|
|
381
|
+
"description": "Parses Gherkin .feature files, compiles registered step expressions from existing step definition files, detects true missing steps without false positives, and appends formatted snippet templates.",
|
|
382
|
+
"examples": [
|
|
383
|
+
"<%= config.bin %> <%= command.id %>",
|
|
384
|
+
"<%= config.bin %> <%= command.id %> --features \"tests/**/*.feature\" --steps \"tests/**/*.steps.ts\"",
|
|
385
|
+
"<%= config.bin %> <%= command.id %> --dry-run"
|
|
386
|
+
],
|
|
387
|
+
"flags": {
|
|
388
|
+
"json": {
|
|
389
|
+
"description": "Format output as json.",
|
|
390
|
+
"helpGroup": "GLOBAL",
|
|
391
|
+
"name": "json",
|
|
392
|
+
"allowNo": false,
|
|
393
|
+
"type": "boolean"
|
|
394
|
+
},
|
|
395
|
+
"features": {
|
|
396
|
+
"char": "f",
|
|
397
|
+
"name": "features",
|
|
398
|
+
"summary": "Glob pattern(s) for Gherkin feature files.",
|
|
399
|
+
"default": [
|
|
400
|
+
"**/test/*.feature",
|
|
401
|
+
"**/test/**/*.feature"
|
|
402
|
+
],
|
|
403
|
+
"hasDynamicHelp": false,
|
|
404
|
+
"multiple": true,
|
|
405
|
+
"type": "option"
|
|
406
|
+
},
|
|
407
|
+
"steps": {
|
|
408
|
+
"char": "s",
|
|
409
|
+
"name": "steps",
|
|
410
|
+
"summary": "Glob pattern(s) for existing Cucumber step definitions.",
|
|
411
|
+
"default": [
|
|
412
|
+
"**/test/*.steps.{js,mjs,ts}",
|
|
413
|
+
"**/test/**/*.steps.{js,mjs,ts}"
|
|
414
|
+
],
|
|
415
|
+
"hasDynamicHelp": false,
|
|
416
|
+
"multiple": true,
|
|
417
|
+
"type": "option"
|
|
418
|
+
},
|
|
419
|
+
"output": {
|
|
420
|
+
"char": "o",
|
|
421
|
+
"name": "output",
|
|
422
|
+
"summary": "Target file path for scaffolded step definitions (defaults to first matched step file or new generated.steps.mjs).",
|
|
423
|
+
"hasDynamicHelp": false,
|
|
424
|
+
"multiple": false,
|
|
425
|
+
"type": "option"
|
|
426
|
+
},
|
|
427
|
+
"project-dir": {
|
|
428
|
+
"name": "project-dir",
|
|
429
|
+
"summary": "Root directory of the project.",
|
|
430
|
+
"default": ".",
|
|
431
|
+
"hasDynamicHelp": false,
|
|
432
|
+
"multiple": false,
|
|
433
|
+
"type": "option"
|
|
434
|
+
},
|
|
435
|
+
"dry-run": {
|
|
436
|
+
"char": "d",
|
|
437
|
+
"name": "dry-run",
|
|
438
|
+
"summary": "Preview generated step snippets without modifying files on disk.",
|
|
439
|
+
"allowNo": false,
|
|
440
|
+
"type": "boolean"
|
|
441
|
+
},
|
|
442
|
+
"verbose": {
|
|
443
|
+
"char": "v",
|
|
444
|
+
"name": "verbose",
|
|
445
|
+
"summary": "Enable detailed output.",
|
|
446
|
+
"allowNo": false,
|
|
447
|
+
"type": "boolean"
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
"hasDynamicHelp": false,
|
|
451
|
+
"hiddenAliases": [],
|
|
452
|
+
"id": "steps",
|
|
453
|
+
"pluginAlias": "@simplysf/simply-utam",
|
|
454
|
+
"pluginName": "@simplysf/simply-utam",
|
|
455
|
+
"pluginType": "core",
|
|
456
|
+
"strict": true,
|
|
457
|
+
"summary": "Scaffold missing Cucumber step definitions based on Gherkin feature files.",
|
|
458
|
+
"enableJsonFlag": true,
|
|
459
|
+
"isESM": true,
|
|
460
|
+
"relativePath": [
|
|
461
|
+
"lib",
|
|
462
|
+
"commands",
|
|
463
|
+
"steps.js"
|
|
464
|
+
]
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
"version": "0.1.1"
|
|
468
468
|
}
|