apex-code-coverage-transformer 1.0.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.
@@ -0,0 +1,70 @@
1
+ {
2
+ "commands": {
3
+ "apex-code-coverage:transformer:transform": {
4
+ "aliases": [],
5
+ "args": {},
6
+ "description": "This plugin will convert the JSON file created by the Salesforce CLI during Apex deployments",
7
+ "examples": [
8
+ "`sf apex-code-coverage transformer transform --json \"path-to-cli-coverage.json\"`"
9
+ ],
10
+ "flags": {
11
+ "json": {
12
+ "char": "j",
13
+ "name": "json",
14
+ "required": true,
15
+ "summary": "Path to the JSON file created by the Salesforce CLI deployment command.",
16
+ "hasDynamicHelp": false,
17
+ "multiple": false,
18
+ "type": "option"
19
+ },
20
+ "dx-directory": {
21
+ "char": "d",
22
+ "name": "dx-directory",
23
+ "required": true,
24
+ "summary": "Directory containing Salesforce metadata (default: `force-app/main/default`).",
25
+ "default": "force-app/main/default",
26
+ "hasDynamicHelp": false,
27
+ "multiple": false,
28
+ "type": "option"
29
+ },
30
+ "xml": {
31
+ "char": "x",
32
+ "name": "xml",
33
+ "required": true,
34
+ "summary": "XML file created by this plugin (default: `coverage.xml`).",
35
+ "default": "coverage.xml",
36
+ "hasDynamicHelp": false,
37
+ "multiple": false,
38
+ "type": "option"
39
+ }
40
+ },
41
+ "hasDynamicHelp": false,
42
+ "hiddenAliases": [],
43
+ "id": "apex-code-coverage:transformer:transform",
44
+ "pluginAlias": "apex-code-coverage-transformer",
45
+ "pluginName": "apex-code-coverage-transformer",
46
+ "pluginType": "core",
47
+ "strict": true,
48
+ "summary": "Transforms the Code Coverage JSON into the Generic Test Data Format (XML).",
49
+ "enableJsonFlag": true,
50
+ "isESM": true,
51
+ "relativePath": [
52
+ "lib",
53
+ "commands",
54
+ "apex-code-coverage",
55
+ "transformer",
56
+ "transform.js"
57
+ ],
58
+ "aliasPermutations": [],
59
+ "permutations": [
60
+ "apex-code-coverage:transformer:transform",
61
+ "transformer:apex-code-coverage:transform",
62
+ "transformer:transform:apex-code-coverage",
63
+ "apex-code-coverage:transform:transformer",
64
+ "transform:apex-code-coverage:transformer",
65
+ "transform:transformer:apex-code-coverage"
66
+ ]
67
+ }
68
+ },
69
+ "version": "1.0.0"
70
+ }
package/package.json ADDED
@@ -0,0 +1,186 @@
1
+ {
2
+ "name": "apex-code-coverage-transformer",
3
+ "description": "Transforms the Apex Code Coverage JSON into the Generic Test Data Report.",
4
+ "version": "1.0.0",
5
+ "dependencies": {
6
+ "@oclif/core": "^3.18.1",
7
+ "@salesforce/core": "^6.4.7",
8
+ "@salesforce/sf-plugins-core": "^7.1.3"
9
+ },
10
+ "devDependencies": {
11
+ "@commitlint/cli": "^18.6.0",
12
+ "@commitlint/config-conventional": "^18.6.0",
13
+ "@oclif/plugin-command-snapshot": "^5.0.2",
14
+ "@salesforce/cli-plugins-testkit": "^5.1.7",
15
+ "@salesforce/dev-scripts": "^8.3.0",
16
+ "@semantic-release/changelog": "^6.0.3",
17
+ "@semantic-release/commit-analyzer": "^11.1.0",
18
+ "@semantic-release/git": "^10.0.1",
19
+ "@semantic-release/github": "^9.2.6",
20
+ "@semantic-release/npm": "^11.0.2",
21
+ "@semantic-release/release-notes-generator": "^12.1.0",
22
+ "eslint-plugin-sf-plugin": "^1.17.2",
23
+ "husky": "^9.0.6",
24
+ "oclif": "^4.3.4",
25
+ "semantic-release": "^17.4.7",
26
+ "shx": "0.3.4",
27
+ "ts-node": "^10.9.2",
28
+ "typescript": "^5.3.3"
29
+ },
30
+ "engines": {
31
+ "node": ">=18.0.0"
32
+ },
33
+ "files": [
34
+ "/lib",
35
+ "/messages",
36
+ "/oclif.manifest.json",
37
+ "/oclif.lock"
38
+ ],
39
+ "keywords": [
40
+ "force",
41
+ "salesforce",
42
+ "salesforcedx",
43
+ "sf",
44
+ "sf-plugin",
45
+ "sfdx",
46
+ "sfdx-plugin",
47
+ "xml",
48
+ "json"
49
+ ],
50
+ "license": "BSD-3-Clause",
51
+ "oclif": {
52
+ "commands": "./lib/commands",
53
+ "bin": "sf",
54
+ "topicSeparator": " ",
55
+ "devPlugins": [
56
+ "@oclif/plugin-help"
57
+ ],
58
+ "flexibleTaxonomy": true
59
+ },
60
+ "scripts": {
61
+ "command-docs": "oclif readme",
62
+ "build": "tsc -b",
63
+ "clean": "sf-clean",
64
+ "clean-all": "sf-clean all",
65
+ "clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json oclif.lock",
66
+ "compile": "sf-compile",
67
+ "docs": "sf-docs",
68
+ "format": "sf-format",
69
+ "lint": "wireit",
70
+ "postpack": "shx rm -f oclif.manifest.json oclif.lock",
71
+ "prepack": "sf-prepack",
72
+ "prepare": "husky install",
73
+ "test": "wireit",
74
+ "test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
75
+ "test:only": "wireit",
76
+ "version": "oclif readme"
77
+ },
78
+ "publishConfig": {
79
+ "access": "public"
80
+ },
81
+ "wireit": {
82
+ "build": {
83
+ "dependencies": [
84
+ "compile",
85
+ "lint"
86
+ ]
87
+ },
88
+ "compile": {
89
+ "command": "tsc -p . --pretty --incremental",
90
+ "files": [
91
+ "src/**/*.ts",
92
+ "**/tsconfig.json",
93
+ "messages/**"
94
+ ],
95
+ "output": [
96
+ "lib/**",
97
+ "*.tsbuildinfo"
98
+ ],
99
+ "clean": "if-file-deleted"
100
+ },
101
+ "format": {
102
+ "command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
103
+ "files": [
104
+ "src/**/*.ts",
105
+ "test/**/*.ts",
106
+ "schemas/**/*.json",
107
+ "command-snapshot.json",
108
+ ".prettier*"
109
+ ],
110
+ "output": []
111
+ },
112
+ "lint": {
113
+ "command": "eslint src test --color --cache --cache-location .eslintcache",
114
+ "files": [
115
+ "src/**/*.ts",
116
+ "test/**/*.ts",
117
+ "messages/**",
118
+ "**/.eslint*",
119
+ "**/tsconfig.json"
120
+ ],
121
+ "output": []
122
+ },
123
+ "test:compile": {
124
+ "command": "tsc -p \"./test\" --pretty",
125
+ "files": [
126
+ "test/**/*.ts",
127
+ "**/tsconfig.json"
128
+ ],
129
+ "output": []
130
+ },
131
+ "test": {
132
+ "dependencies": [
133
+ "test:compile",
134
+ "test:only",
135
+ "lint"
136
+ ]
137
+ },
138
+ "test:only": {
139
+ "command": "nyc mocha \"test/**/*.test.ts\"",
140
+ "env": {
141
+ "FORCE_COLOR": "2"
142
+ },
143
+ "files": [
144
+ "test/**/*.ts",
145
+ "src/**/*.ts",
146
+ "**/tsconfig.json",
147
+ ".mocha*",
148
+ "!*.nut.ts",
149
+ ".nycrc"
150
+ ],
151
+ "output": []
152
+ },
153
+ "test:command-reference": {
154
+ "command": "\"./bin/dev\" commandreference:generate --erroronwarnings",
155
+ "files": [
156
+ "src/**/*.ts",
157
+ "messages/**",
158
+ "package.json"
159
+ ],
160
+ "output": [
161
+ "tmp/root"
162
+ ]
163
+ },
164
+ "test:deprecation-policy": {
165
+ "command": "\"./bin/dev\" snapshot:compare",
166
+ "files": [
167
+ "src/**/*.ts"
168
+ ],
169
+ "output": [],
170
+ "dependencies": [
171
+ "compile"
172
+ ]
173
+ },
174
+ "test:json-schema": {
175
+ "command": "\"./bin/dev\" schema:compare",
176
+ "files": [
177
+ "src/**/*.ts",
178
+ "schemas"
179
+ ],
180
+ "output": []
181
+ }
182
+ },
183
+ "exports": "./lib/index.js",
184
+ "type": "module",
185
+ "author": "Matt Carvin"
186
+ }