sf-flow-coverage 0.0.0-stage → 0.1.0

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 (56) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE.md +9 -0
  3. package/README.md +275 -2
  4. package/lib/commands/flowcov/gate.d.ts +17 -0
  5. package/lib/commands/flowcov/gate.js +82 -0
  6. package/lib/commands/flowcov/gate.js.map +1 -0
  7. package/lib/commands/flowcov/readiness.d.ts +17 -0
  8. package/lib/commands/flowcov/readiness.js +87 -0
  9. package/lib/commands/flowcov/readiness.js.map +1 -0
  10. package/lib/commands/flowcov/scaffold.d.ts +18 -0
  11. package/lib/commands/flowcov/scaffold.js +76 -0
  12. package/lib/commands/flowcov/scaffold.js.map +1 -0
  13. package/lib/core/apexTemplate.d.ts +18 -0
  14. package/lib/core/apexTemplate.js +310 -0
  15. package/lib/core/apexTemplate.js.map +1 -0
  16. package/lib/core/flowTypes.d.ts +16 -0
  17. package/lib/core/flowTypes.js +29 -0
  18. package/lib/core/flowTypes.js.map +1 -0
  19. package/lib/core/flowXml.d.ts +8 -0
  20. package/lib/core/flowXml.js +97 -0
  21. package/lib/core/flowXml.js.map +1 -0
  22. package/lib/core/gate.d.ts +20 -0
  23. package/lib/core/gate.js +92 -0
  24. package/lib/core/gate.js.map +1 -0
  25. package/lib/core/git.d.ts +13 -0
  26. package/lib/core/git.js +81 -0
  27. package/lib/core/git.js.map +1 -0
  28. package/lib/core/orgCoverageSource.d.ts +17 -0
  29. package/lib/core/orgCoverageSource.js +108 -0
  30. package/lib/core/orgCoverageSource.js.map +1 -0
  31. package/lib/core/projectFiles.d.ts +9 -0
  32. package/lib/core/projectFiles.js +48 -0
  33. package/lib/core/projectFiles.js.map +1 -0
  34. package/lib/core/readiness.d.ts +12 -0
  35. package/lib/core/readiness.js +37 -0
  36. package/lib/core/readiness.js.map +1 -0
  37. package/lib/core/requiredFields.d.ts +27 -0
  38. package/lib/core/requiredFields.js +75 -0
  39. package/lib/core/requiredFields.js.map +1 -0
  40. package/lib/core/scaffold.d.ts +18 -0
  41. package/lib/core/scaffold.js +79 -0
  42. package/lib/core/scaffold.js.map +1 -0
  43. package/lib/core/toolingQuery.d.ts +7 -0
  44. package/lib/core/toolingQuery.js +16 -0
  45. package/lib/core/toolingQuery.js.map +1 -0
  46. package/lib/core/types.d.ts +117 -0
  47. package/lib/core/types.js +2 -0
  48. package/lib/core/types.js.map +1 -0
  49. package/lib/index.d.ts +14 -0
  50. package/lib/index.js +10 -0
  51. package/lib/index.js.map +1 -0
  52. package/messages/flowcov.gate.md +49 -0
  53. package/messages/flowcov.readiness.md +39 -0
  54. package/messages/flowcov.scaffold.md +59 -0
  55. package/oclif.manifest.json +317 -0
  56. package/package.json +311 -3
package/package.json CHANGED
@@ -1,6 +1,314 @@
1
1
  {
2
2
  "name": "sf-flow-coverage",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "description": "Get your Salesforce org ready to deploy Flows as active: find uncovered Flows, gate coverage per Flow in pull requests, and scaffold Apex tests.",
4
+ "version": "0.1.0",
5
+ "dependencies": {
6
+ "@oclif/core": "5.1.11",
7
+ "@salesforce/core": "9.4.5",
8
+ "@salesforce/sf-plugins-core": "13.0.9",
9
+ "fast-xml-parser": "5.12.1"
10
+ },
11
+ "devDependencies": {
12
+ "@biomejs/biome": "2.6.6",
13
+ "@commitlint/cli": "21.2.4",
14
+ "@commitlint/config-conventional": "21.2.4",
15
+ "@salesforce/cli-plugins-testkit": "5.3.93",
16
+ "@salesforce/dev-config": "4.3.3",
17
+ "@stryker-mutator/core": "10.1.1",
18
+ "@stryker-mutator/vitest-runner": "10.1.1",
19
+ "@types/node": "26.6.6",
20
+ "@vitest/coverage-v8": "5.1.0",
21
+ "husky": "9.1.7",
22
+ "knip": "6.44.2",
23
+ "lint-staged": "17.6.0",
24
+ "ls-engines": "0.10.1",
25
+ "oclif": "6.0.15",
26
+ "shx": "0.4.0",
27
+ "tsx": "4.23.15",
28
+ "typescript": "7.0.2",
29
+ "vitest": "5.1.0",
30
+ "wireit": "0.15.0"
31
+ },
32
+ "engines": {
33
+ "node": ">=22.19.0"
34
+ },
35
+ "files": [
36
+ "/lib",
37
+ "/messages",
38
+ "/oclif.manifest.json",
39
+ "/oclif.lock",
40
+ "/CHANGELOG.md"
41
+ ],
42
+ "keywords": [
43
+ "salesforce",
44
+ "salesforcedx",
45
+ "sf",
46
+ "sf-plugin",
47
+ "sfdx",
48
+ "flow",
49
+ "flow-coverage",
50
+ "test-coverage",
51
+ "apex",
52
+ "ci",
53
+ "devops",
54
+ "salesforce-flow",
55
+ "flowcov"
56
+ ],
57
+ "license": "MIT",
58
+ "oclif": {
59
+ "commands": "./lib/commands",
60
+ "bin": "sf",
61
+ "repositoryPrefix": "<%- repo %>/blob/main/<%- commandPath %>",
62
+ "topicSeparator": " ",
63
+ "devPlugins": [
64
+ "@oclif/plugin-help"
65
+ ],
66
+ "topics": {
67
+ "flowcov": {
68
+ "description": "Measure, gate, and scaffold Apex test coverage for Salesforce Flows."
69
+ }
70
+ },
71
+ "flexibleTaxonomy": true
72
+ },
73
+ "scripts": {
74
+ "build": "wireit",
75
+ "clean": "wireit",
76
+ "clean:build": "wireit",
77
+ "clean:package-manager": "wireit",
78
+ "compile": "wireit",
79
+ "dependencies:upgrade": "npx npm-check-updates -u && npm install && npm audit fix",
80
+ "format": "wireit",
81
+ "lint": "wireit",
82
+ "lint:dependencies": "wireit",
83
+ "lint:engine": "wireit",
84
+ "postpack": "shx rm -f oclif.manifest.json oclif.lock",
85
+ "prepack": "wireit",
86
+ "prepare": "husky",
87
+ "readme": "wireit",
88
+ "test": "wireit",
89
+ "test:mutation": "wireit",
90
+ "test:mutation:incremental": "wireit",
91
+ "test:nuts": "wireit",
92
+ "test:only": "wireit"
93
+ },
94
+ "publishConfig": {
95
+ "access": "public"
96
+ },
97
+ "wireit": {
98
+ "build": {
99
+ "dependencies": [
100
+ "compile",
101
+ "lint"
102
+ ]
103
+ },
104
+ "clean": {
105
+ "command": "shx rm -rf 'reports/*' oclif.manifest.json oclif.lock package.tgz 'sf-flow-coverage-*.tgz' 'stderr*.txt' 'stdout*.txt' '.stryker-tmp/*'",
106
+ "files": [
107
+ ".stryker-tmp/*",
108
+ "lib",
109
+ "oclif.manifest.json",
110
+ "oclif.lock",
111
+ "package.tgz",
112
+ "reports/*",
113
+ "sf-flow-coverage-v*.tgz",
114
+ "stderr*.txt",
115
+ "stdout*.txt"
116
+ ],
117
+ "dependencies": [
118
+ "clean:build"
119
+ ]
120
+ },
121
+ "clean:build": {
122
+ "command": "shx rm -rf lib .wireit",
123
+ "files": [
124
+ ".wireit/*",
125
+ "lib/*"
126
+ ]
127
+ },
128
+ "clean:package-manager": {
129
+ "command": "shx rm -rf node_modules tsconfig.tsbuildinfo",
130
+ "files": [
131
+ "node_modules/*"
132
+ ]
133
+ },
134
+ "compile": {
135
+ "command": "tsc -p . --pretty --incremental",
136
+ "files": [
137
+ "src/**/*.ts",
138
+ "**/tsconfig.json",
139
+ "messages/**"
140
+ ],
141
+ "output": [
142
+ "lib/**",
143
+ "*.tsbuildinfo"
144
+ ],
145
+ "clean": "if-file-deleted"
146
+ },
147
+ "format": {
148
+ "command": "biome format --write src test",
149
+ "files": [
150
+ "src/**/*.ts",
151
+ "test/**/*.ts",
152
+ "biome.json"
153
+ ],
154
+ "output": []
155
+ },
156
+ "lint": {
157
+ "command": "biome check src test",
158
+ "files": [
159
+ "src/**/*.ts",
160
+ "test/**/*.ts",
161
+ "messages/**",
162
+ "biome.json",
163
+ "**/tsconfig.json"
164
+ ],
165
+ "output": []
166
+ },
167
+ "lint:dependencies": {
168
+ "command": "knip",
169
+ "files": [
170
+ "src/**/*.ts",
171
+ "test/**/*.ts",
172
+ "knip.config.ts",
173
+ "package.json"
174
+ ],
175
+ "output": [],
176
+ "dependencies": [
177
+ "lint"
178
+ ]
179
+ },
180
+ "lint:engine": {
181
+ "command": "ls-engines --no-current --no-dev --mode=virtual",
182
+ "files": [
183
+ "package.json",
184
+ "package-lock.json"
185
+ ],
186
+ "output": []
187
+ },
188
+ "readme": {
189
+ "command": "oclif readme",
190
+ "files": [
191
+ "src/commands/**/*.ts",
192
+ "messages/*.md",
193
+ "README.md"
194
+ ],
195
+ "dependencies": [
196
+ "build"
197
+ ],
198
+ "output": [
199
+ "README.md"
200
+ ],
201
+ "clean": false
202
+ },
203
+ "test:compile": {
204
+ "command": "tsc -p \"./test\" --pretty",
205
+ "files": [
206
+ "test/**/*.ts",
207
+ "**/tsconfig.json"
208
+ ],
209
+ "output": []
210
+ },
211
+ "test": {
212
+ "dependencies": [
213
+ "test:compile",
214
+ "test:only",
215
+ "lint"
216
+ ]
217
+ },
218
+ "test:mutation": {
219
+ "command": "stryker run",
220
+ "files": [
221
+ "src/**/*.ts",
222
+ "test/**/*.ts",
223
+ "**/tsconfig.json",
224
+ "stryker.config.json",
225
+ "vitest.config.ts"
226
+ ],
227
+ "output": [
228
+ "reports/mutation/**"
229
+ ],
230
+ "dependencies": [
231
+ "lint"
232
+ ]
233
+ },
234
+ "test:mutation:incremental": {
235
+ "command": "node scripts/incremental-mutation.mjs",
236
+ "files": [
237
+ "src/**/*.ts",
238
+ "test/**/*.ts",
239
+ "**/tsconfig.json",
240
+ "stryker.config.json",
241
+ "vitest.config.ts",
242
+ "scripts/incremental-mutation.mjs"
243
+ ],
244
+ "output": [
245
+ "reports/mutation/**"
246
+ ],
247
+ "dependencies": [
248
+ "lint"
249
+ ]
250
+ },
251
+ "test:nuts": {
252
+ "command": "vitest run --config ./vitest.nut.config.ts && shx rm -f oclif.manifest.json oclif.lock *.tsbuildinfo",
253
+ "files": [
254
+ "test/**/*.nut.ts",
255
+ "**/tsconfig.json",
256
+ "vitest.nut.config.ts"
257
+ ],
258
+ "output": [],
259
+ "dependencies": [
260
+ "build",
261
+ "prepack"
262
+ ]
263
+ },
264
+ "test:only": {
265
+ "command": "vitest run --coverage",
266
+ "env": {
267
+ "FORCE_COLOR": "2"
268
+ },
269
+ "files": [
270
+ "test/**/*.ts",
271
+ "src/**/*.ts",
272
+ "**/tsconfig.json",
273
+ "vitest.config.ts",
274
+ "!*.nut.ts"
275
+ ],
276
+ "output": []
277
+ },
278
+ "prepack": {
279
+ "command": "oclif manifest && oclif readme",
280
+ "files": [
281
+ "src/commands/**/*.ts",
282
+ "messages/*.md",
283
+ "README.md"
284
+ ],
285
+ "dependencies": [
286
+ "build"
287
+ ],
288
+ "output": [
289
+ "README.md"
290
+ ],
291
+ "clean": false
292
+ }
293
+ },
294
+ "exports": {
295
+ ".": {
296
+ "types": "./lib/index.d.ts",
297
+ "import": "./lib/index.js"
298
+ },
299
+ "./package.json": "./package.json"
300
+ },
301
+ "types": "./lib/index.d.ts",
302
+ "type": "module",
303
+ "author": "Matt Carvin",
304
+ "repository": {
305
+ "type": "git",
306
+ "url": "git+https://github.com/mcarvin8/sf-flow-coverage.git"
307
+ },
308
+ "bugs": {
309
+ "url": "https://github.com/mcarvin8/sf-flow-coverage/issues"
310
+ },
311
+ "allowScripts": {
312
+ "esbuild@0.28.2": true
313
+ }
6
314
  }