-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpackage.json
More file actions
334 lines (334 loc) · 16.4 KB
/
package.json
File metadata and controls
334 lines (334 loc) · 16.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
{
"name": "@salesforce/b2c-cli",
"description": "A Salesforce B2C Commerce CLI",
"version": "0.5.6",
"author": "Charles Lavery",
"bin": {
"b2c": "./bin/run.js"
},
"bugs": "https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/issues",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"dependencies": {
"@inquirer/prompts": "8.2.0",
"@oclif/core": "catalog:",
"@oclif/plugin-autocomplete": "3.2.39",
"@oclif/plugin-help": "6.2.35",
"@oclif/plugin-not-found": "3.2.72",
"@oclif/plugin-plugins": "5.4.53",
"@oclif/plugin-version": "2.2.36",
"@oclif/plugin-warn-if-update-available": "3.1.52",
"@salesforce/b2c-tooling-sdk": "workspace:*",
"cliui": "catalog:",
"glob": "catalog:",
"marked": "15.0.12",
"marked-terminal": "7.3.0",
"open": "catalog:"
},
"devDependencies": {
"@eslint/compat": "catalog:",
"@oclif/prettier-config": "catalog:",
"@oclif/test": "catalog:",
"@salesforce/dev-config": "catalog:",
"@types/chai": "catalog:",
"@types/mocha": "catalog:",
"@types/node": "catalog:",
"c8": "catalog:",
"chai": "catalog:",
"eslint": "catalog:",
"eslint-config-oclif": "catalog:",
"eslint-config-prettier": "catalog:",
"eslint-plugin-header": "catalog:",
"eslint-plugin-prettier": "catalog:",
"execa": "^9.6.1",
"mocha": "catalog:",
"msw": "catalog:",
"oclif": "catalog:",
"prettier": "catalog:",
"shx": "catalog:",
"sinon": "catalog:",
"tsx": "catalog:",
"typescript": "catalog:"
},
"engines": {
"node": ">=22.16.0"
},
"files": [
"./bin",
"./dist",
"./oclif.manifest.json"
],
"homepage": "https://salesforcecommercecloud.github.io/b2c-developer-tooling",
"keywords": [
"salesforce",
"commerce-cloud",
"sfcc",
"b2c",
"cli",
"ecommerce",
"developer-tools",
"deployment",
"webdav",
"oclif"
],
"license": "Apache-2.0",
"main": "dist/index.js",
"type": "module",
"oclif": {
"bin": "b2c",
"dirname": "b2c",
"commands": "./dist/commands",
"telemetry": {
"connectionString": "InstrumentationKey=6fcc215f-0b11-4864-ad5c-3945ae19e2f3;IngestionEndpoint=https://eastus-8.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/;ApplicationId=a60f17ec-265a-4dfc-b8df-03a64695697d"
},
"plugins": [
"@oclif/plugin-help",
"@oclif/plugin-plugins",
"@oclif/plugin-not-found",
"@oclif/plugin-version",
"@oclif/plugin-autocomplete",
"@oclif/plugin-warn-if-update-available"
],
"warn-if-update-available": {
"timeoutInDays": 1,
"frequency": 1,
"frequencyUnit": "minutes"
},
"topicSeparator": " ",
"topics": {
"auth": {
"description": "Manage authentication credentials and tokens\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/auth.html"
},
"code": {
"description": "Deploy and manage code versions on instances\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/code.html"
},
"content": {
"description": "Export and manage Page Designer content libraries"
},
"cip": {
"description": "Run CIP analytics SQL and curated reports\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/cip.html"
},
"docs": {
"description": "Search and read Script API documentation"
},
"job": {
"description": "Run jobs and import/export site archives\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/jobs.html"
},
"webdav": {
"description": "WebDAV file operations (ls, get, put, rm, zip, unzip)\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/webdav.html"
},
"mrt": {
"description": "Manage Managed Runtime (MRT) projects, environments, bundles, and deployments\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/mrt.html"
},
"mrt:env": {
"description": "Create, update, delete, and configure MRT environments (targets)\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/mrt.html#environment-commands"
},
"mrt:env:var": {
"description": "Set and delete environment variables for MRT environments\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/mrt.html#environment-variable-commands"
},
"mrt:env:redirect": {
"description": "Configure URL redirects and clone redirect rules between environments\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/mrt.html#url-redirect-commands"
},
"mrt:org": {
"description": "List organizations and view B2C Commerce instance connections\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/mrt.html#organization-commands"
},
"mrt:project": {
"description": "Create, update, delete, and configure MRT projects\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/mrt.html#project-commands"
},
"mrt:project:member": {
"description": "Add, remove, and update project member roles and permissions\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/mrt.html#project-member-commands"
},
"mrt:project:notification": {
"description": "Configure email notifications for deployment events (start, success, failure)\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/mrt.html#project-notification-commands"
},
"mrt:env:access-control": {
"description": "Configure access control headers for environment security\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/mrt.html#access-control-commands"
},
"mrt:bundle": {
"description": "Push builds, deploy bundles, view deployment history, and download artifacts\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/mrt.html#bundle-commands"
},
"mrt:user": {
"description": "View profile, reset API keys, and configure email preferences\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/mrt.html#user-commands"
},
"sandbox": {
"description": "Manage On-Demand Sandboxes\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sandbox.html"
},
"ods": {
"description": "Alias for 'sandbox' commands. Use 'b2c sandbox' instead.",
"hidden": true
},
"sites": {
"description": "List and inspect storefront sites\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/sites.html"
},
"am": {
"description": "Manage Account Manager resources",
"subtopics": {
"users": {
"description": "Manage Account Manager users"
},
"roles": {
"description": "Manage roles for Account Manager users"
},
"orgs": {
"description": "Manage Account Manager organizations"
},
"clients": {
"description": "Manage Account Manager API clients"
}
}
},
"slas": {
"description": "Manage SLAS API clients and credentials\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/slas.html",
"subtopics": {
"client": {
"description": "Manage SLAS client configurations\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/slas.html"
}
}
},
"scapi": {
"description": "Manage Salesforce Commerce APIs (SCAPI)",
"subtopics": {
"custom": {
"description": "Manage Custom API endpoints\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/custom-apis.html"
},
"schemas": {
"description": "Browse and retrieve SCAPI schema specifications\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/scapi-schemas.html"
},
"cors": {
"description": "Manage CORS Preferences for SCAPI sites\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/scapi-cors.html"
}
}
},
"ecdn": {
"description": "Manage eCDN zones, certificates, WAF, and security settings\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html",
"subtopics": {
"zones": {
"description": "List and create CDN zones\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html"
},
"cache": {
"description": "Manage CDN cache operations\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html"
},
"certificates": {
"description": "Manage SSL certificates\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html"
},
"security": {
"description": "Manage security settings\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html"
},
"speed": {
"description": "Manage speed optimization settings\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html"
},
"waf": {
"description": "Manage Web Application Firewall\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html",
"subtopics": {
"groups": {
"description": "WAF v1 rule groups\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html"
},
"rules": {
"description": "WAF v1 rules\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html"
},
"rulesets": {
"description": "WAF v2 rulesets\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html"
},
"managed-rules": {
"description": "WAF v2 managed rules\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html"
},
"owasp": {
"description": "OWASP ModSecurity package\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html"
}
}
},
"firewall": {
"description": "Manage custom firewall rules\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html"
},
"rate-limit": {
"description": "Manage rate limiting rules\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html"
},
"logpush": {
"description": "Manage log export configuration\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html",
"subtopics": {
"jobs": {
"description": "Logpush job management\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html"
}
}
},
"page-shield": {
"description": "Manage Page Shield security\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html",
"subtopics": {
"notifications": {
"description": "Page Shield notification webhooks\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html"
},
"policies": {
"description": "Content Security Policy rules\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html"
},
"scripts": {
"description": "Detected script monitoring\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html"
}
}
},
"mrt-rules": {
"description": "Manage MRT routing rules\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html",
"subtopics": {
"rules": {
"description": "Individual MRT rules\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html"
}
}
},
"mtls": {
"description": "Manage mTLS certificates for code deployment\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html"
},
"cipher-suites": {
"description": "Manage TLS cipher configuration\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html"
},
"origin-headers": {
"description": "Manage origin header modifications\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/ecdn.html"
}
}
},
"setup": {
"description": "Setup commands for development environment\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/setup.html",
"subtopics": {
"ide": {
"description": "Set up IDE integrations for B2C CLI configuration\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/guide/ide-integration.html"
}
}
},
"scaffold": {
"description": "Generate project scaffolds for cartridges, APIs, and components\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/scaffold.html"
}
}
},
"repository": "SalesforceCommerceCloud/b2c-developer-tooling",
"scripts": {
"build": "shx rm -rf dist && tsc -p tsconfig.build.json",
"lint": "eslint",
"lint:agent": "eslint --quiet",
"typecheck:agent": "tsc --noEmit --pretty false",
"format": "prettier --write src",
"format:check": "prettier --check src",
"postpack": "shx rm -f oclif.manifest.json",
"posttest": "pnpm run lint",
"prepack": "oclif manifest && oclif readme",
"pretest": "tsc --noEmit -p test",
"test": "c8 env OCLIF_TEST_ROOT=. mocha --forbid-only --exclude \"test/functional/e2e/**\" \"test/**/*.test.ts\"",
"test:ci": "c8 env OCLIF_TEST_ROOT=. mocha --forbid-only --exclude \"test/functional/e2e/**\" --reporter json --reporter-option output=test-results.json \"test/**/*.test.ts\"",
"test:unit": "env OCLIF_TEST_ROOT=. mocha --forbid-only --exclude \"test/functional/e2e/**\" \"test/**/*.test.ts\"",
"test:agent": "env OCLIF_TEST_ROOT=. mocha --forbid-only --reporter min --exclude \"test/functional/e2e/**\" \"test/**/*.test.ts\"",
"test:e2e": "env TEST_USE_SHARED_SANDBOX=true OCLIF_TEST_ROOT=. mocha --forbid-only --require test/functional/e2e/hooks.ts --node-option import=tsx --timeout 30000 --retries 2 --reporter spec \"test/functional/e2e/**/*.test.ts\"",
"test:e2e:ci": "env TEST_USE_SHARED_SANDBOX=true OCLIF_TEST_ROOT=. mocha --forbid-only --require test/functional/e2e/hooks.ts --node-option import=tsx --timeout 30000 --retries 2 --reporter json --reporter-option output=test-results.json \"test/functional/e2e/**/*.test.ts\"",
"test:e2e:auth": "env OCLIF_TEST_ROOT=. mocha --forbid-only \"test/functional/e2e/auth-token.test.ts\"",
"test:e2e:code": "env OCLIF_TEST_ROOT=. mocha --forbid-only \"test/functional/e2e/code-lifecycle.test.ts\"",
"test:e2e:jobs": "env OCLIF_TEST_ROOT=. mocha --forbid-only \"test/functional/e2e/job-execution.test.ts\"",
"test:e2e:sandbox": "env OCLIF_TEST_ROOT=. mocha --forbid-only \"test/functional/e2e/sandbox-lifecycle.test.ts\"",
"test:e2e:sites": "env OCLIF_TEST_ROOT=. mocha --forbid-only \"test/functional/e2e/sites-operations.test.ts\"",
"test:e2e:slas": "env OCLIF_TEST_ROOT=. mocha --forbid-only \"test/functional/e2e/slas-lifecycle.test.ts\"",
"test:e2e:webdav": "env OCLIF_TEST_ROOT=. mocha --forbid-only \"test/functional/e2e/webdav-operations.test.ts\"",
"test:e2e:mrt": "env OCLIF_TEST_ROOT=. mocha --forbid-only \"test/functional/e2e/mrt-lifecycle.test.ts\"",
"test:e2e:am": "env OCLIF_TEST_ROOT=. mocha --forbid-only \"test/functional/e2e/am-operations.test.ts\"",
"coverage": "c8 report",
"version": "oclif readme && git add README.md",
"dev": "node ./bin/dev.js"
},
"types": "dist/index.d.ts"
}