-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
399 lines (399 loc) · 12.7 KB
/
package.json
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
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
{
"name": "ssjs-vsc",
"displayName": "SSJS Manager",
"description": "Provides dev tools, syntax highlighting and prettifier for SSJS files.",
"version": "0.6.3",
"publisher": "FiB",
"author": {
"name": "filipbostik"
},
"homepage": "https://fibworks.com/ssjs-vsc",
"engines": {
"vscode": "^1.77.0"
},
"categories": [
"Programming Languages",
"Formatters",
"Other"
],
"keywords": [
"ssjs",
"server-side javascript",
"ampscript",
"amp",
"salesforce",
"marketing cloud",
"salesforce marketing cloud",
"exacttarget",
"sfmc",
"mc",
"content builder",
"cloud pages",
"landing pages",
"code resources",
"text resource"
],
"repository": {
"type": "git",
"url": "https://github.com/FiB3/ssjs-vsc"
},
"icon": "images/logo.v1.1.png",
"license": "BSD-4-CLAUSE",
"activationEvents": [
"onCommand:expressServer.start",
"onLanguage:ssjs",
"onLanguage:AMPscript",
"onLanguage:ampscript",
"onLanguage:html"
],
"main": "./extension.js",
"contributes": {
"commands": [
{
"command": "ssjs-vsc.upload-to-prod",
"title": "Production deployment",
"category": "SSJS"
},
{
"command": "ssjs-vsc.upload-script",
"title": "Upload Script to Dev",
"category": "SSJS"
},
{
"command": "ssjs-vsc.get-url",
"title": "Get Dev Url",
"category": "SSJS"
},
{
"command": "ssjs-vsc.run",
"title": "Run",
"category": "SSJS",
"icon": "$(play)"
},
{
"command": "ssjs-vsc.get-standalone-script",
"title": "Get Standalone Run Script",
"category": "SSJS"
},
{
"command": "ssjs-vsc.start",
"title": "Start",
"category": "SSJS"
},
{
"command": "ssjs-vsc.stop",
"title": "Stop",
"category": "SSJS"
},
{
"command": "ssjs-vsc.show-config",
"title": "Show Config",
"category": "SSJS"
},
{
"command": "ssjs-vsc.create-config",
"title": "Create Config",
"category": "SSJS"
},
{
"command": "ssjs-vsc.update-config",
"title": "Update API Credentials",
"category": "SSJS"
},
{
"command": "ssjs-vsc.deploy-any-path",
"title": "Install Dev Page",
"category": "SSJS"
},
{
"command": "ssjs-vsc.update-any-path",
"title": "Update Dev Page",
"category": "SSJS"
},
{
"command": "ssjs-vsc.show-walkthrough",
"title": "Show Setup Walkthrough",
"category": "SSJS"
}
],
"menus": {
"commandPalette": [
{
"command": "ssjs-vsc.upload-to-prod",
"when": "ssjs-vsc.codeProvider != 'None'"
},
{
"command": "ssjs-vsc.upload-script",
"when": "ssjs-vsc.codeProvider != 'None'"
},
{
"command": "ssjs-vsc.get-standalone-script",
"when": "ssjs-vsc.codeProvider != 'None'"
},
{
"command": "ssjs-vsc.get-url",
"when": "ssjs-vsc.codeProvider != 'None'"
},
{
"command": "ssjs-vsc.run",
"when": "ssjs-vsc.codeProvider != 'None'"
},
{
"command": "ssjs-vsc.start",
"when": "ssjs-vsc.codeProvider == 'Server'"
},
{
"command": "ssjs-vsc.stop",
"when": "ssjs-vsc.codeProvider == 'Server'"
},
{
"command": "ssjs-vsc.deploy-any-path",
"when": "ssjs-vsc.codeProvider != 'None'"
},
{
"command": "ssjs-vsc.update-any-path",
"when": "ssjs-vsc.codeProvider != 'None'"
}
],
"editor/title": [
{
"command": "ssjs-vsc.run",
"group": "navigation",
"when": "resourceExtname == .ssjs || resourceExtname == .amp || resourceExtname == .ampscript || resourceExtname == .html"
}
]
},
"configuration": {
"title": "SSJS Manager",
"properties": {
"ssjs-vsc.editor.codeProvider": {
"type": "string",
"default": "Asset",
"enum": [
"None",
"Asset",
"Server"
],
"description": "Specifies the way the code is provided to SFMC.",
"enumDescriptions": [
"Code is not provided from VSCode to SFMC.",
"Asset - Code is provided using Content Block. Slower but more secure.",
"Server - Code is server using local sever. Faster, but requires reverse tunneling."
]
},
"ssjs-vsc.editor.autoSave": {
"type": "boolean",
"default": "true",
"description": "Upload script automatically when using Asset Provider?"
},
"ssjs-vsc.editor.runHandlingInCloudPages": {
"type": "string",
"default": "Preview",
"enum": [
"Copy",
"Open",
"Preview"
],
"description": "How to handle the URL when using 'Run' command?",
"enumDescriptions": [
"Copy - copies the URL to the clipboard.",
"Open - opens the URL in the default browser.",
"Preview - opens the URL in the VSCode preview (fast but not made for CSS debugging)."
]
},
"ssjs-vsc.editor.runHandlingInTextResources": {
"type": "string",
"default": "Preview",
"enum": [
"Copy",
"Open",
"Preview"
],
"description": "How to handle the URL when using 'Run' command?",
"enumDescriptions": [
"Copy - copies the URL to the clipboard.",
"Open - opens the URL in the default browser.",
"Preview - opens the URL in the VSCode preview (fast but not made for CSS debugging)."
]
},
"ssjs-vsc.editor.showConfigPanelAutomatically": {
"type": "boolean",
"default": "true",
"description": "Keep showing Config Panel if the extension is not configured or there are news to share?"
},
"ssjs-vsc.editor.templatingTags": {
"type": "string",
"default": "{{,}}",
"pattern": "^[{}%<>\\[\\]]{2,3},[{}%<>\\[\\]]{2,3}$",
"patternErrorMessage": "2 or 3 characters, only: `{}%<>[]` are allowed. Separate using a comma. No spaces.",
"description": "Set Templating Tags for Mustache. Opening and closing tag separated with a single comma."
},
"ssjs-vsc.language.ampscript.capitalizeKeywords": {
"type": "boolean",
"default": true,
"description": "Use upper case characters for most keywords like (false for lowercase)."
},
"ssjs-vsc.language.ampscript.capitalizeAndOrNot": {
"type": "boolean",
"default": true,
"description": "Use upper case characters for 'AND', 'OR', 'NOT' keywords (false for lowercase)."
},
"ssjs-vsc.language.ampscript.maxParametersPerLine": {
"type": "number",
"default": 4,
"description": "How many method parameters can be located on one line (creates new lines if overflown)."
}
}
},
"walkthroughs": [
{
"id": "setup-ssjs-manager",
"title": "Setup SSJS Manager",
"description": "Either follow this walkthrough or you can use the new visual config using the: `SSJS: Show Config` command.",
"steps": [
{
"id": "get-installed-package",
"title": "Get Your Installed Package",
"description": "Get an Installed Package for your SFMC Instance. This package must be able to update assets. Don't forget to get the MID of the BU that you want to connect to.",
"media": {
"image": "https://raw.githubusercontent.com/FiB3/ssjs-vsc/main/images/walkthrough/installedPackage.png",
"altText": "Get Installed Package Details"
}
},
{
"id": "create-cloud-page",
"title": "Create Web Studio resources",
"description": "Create a Cloud Page and/or a Text Code Resource in Web Studio and get published URLs - content will be provided later on.",
"media": {
"image": "https://raw.githubusercontent.com/FiB3/ssjs-vsc/main/images/walkthrough/createCloudPage.png",
"altText": "Create Cloud Text Resource"
}
},
{
"id": "run-create-config",
"title": "Create Config",
"description": "Run `SSJS: Create Config` command. Use your Installed Package details to set the connection. MID is optional in case the BU matches the BU that was used to create the Installed Package.",
"media": {
"image": "https://raw.githubusercontent.com/FiB3/ssjs-vsc/main/images/ssjs-vsc-demo1.2.gif",
"altText": "demo of the extension"
},
"completionEvents": [
"onCommand:ssjs-vsc.create-config"
]
},
{
"id": "run-install-dev-page",
"title": "Install Dev Page",
"description": "Run `SSJS: Install Dev Page` command. Fill all information and the dev page code will be created in SFMC.",
"media": {
"image": "https://raw.githubusercontent.com/FiB3/ssjs-vsc/main/images/ssjs-vsc-demo1.2.gif",
"altText": "dev page installation"
},
"completionEvents": [
"onCommand:ssjs-vsc.deploy-any-path"
]
},
{
"id": "set-cloud-page",
"title": "Fill Development Cloud Page & Text Resource",
"description": "Fill the Cloud Page and Text Resource with the provided content (in ./vscode/deploy.me.page.ssjs & deploy.me.text.ssjs files). Publish both.",
"media": {
"image": "https://raw.githubusercontent.com/FiB3/ssjs-vsc/main/images/walkthrough/setCloudPage.png",
"altText": "set cloud text resource"
}
},
{
"id": "develop-ssjs",
"title": "Write scripts",
"description": "Develop your code in `.ssjs`, `.amp` or `.html` files. First deployment is done using the `SSJS: Upload Script` command. Following deploys are automatically done on save.",
"media": {
"image": "https://raw.githubusercontent.com/FiB3/ssjs-vsc/main/images/ssjs-vsc-demo1.2.gif",
"altText": "demo of the extension"
}
},
{
"id": "run-script",
"title": "Run the code",
"description": "Run in your Cloud Page or Resource - one page for all scripts! You can run or open the script using the `SSJS: Run` command.",
"media": {
"image": "https://raw.githubusercontent.com/FiB3/ssjs-vsc/main/images/ssjs-vsc-demo1.2.gif",
"altText": "demo of the extension"
}
}
]
}
],
"languages": [
{
"id": "ssjs",
"aliases": [
"SSJS",
"ssjs"
],
"extensions": [
".ssjs"
],
"configuration": "./syntaxes/language-configuration.json"
},
{
"id": "AMPscript",
"aliases": [
"AMPscript",
"ampscript"
],
"extensions": [
".amp",
".ampscript"
],
"configuration": "./syntaxes/language-configuration.json"
}
],
"grammars": [
{
"language": "ssjs",
"scopeName": "source.ssjs",
"path": "./syntaxes/ssjs.tmLanguage.json"
},
{
"language": "AMPscript",
"scopeName": "source.ssjs",
"path": "./syntaxes/ssjs.tmLanguage.json"
}
],
"snippets": [
{
"language": "ssjs",
"path": "./syntaxes/snippets.json"
}
]
},
"scripts": {
"vscode:prepublish": "cd ./configView && npm install && npm run build",
"lint": "eslint .",
"pretest": "npm run lint",
"test": "node ./test/runTest.js"
},
"dependencies": {
"@vscode/extension-telemetry": "^0.9.2",
"axios": "^1.7.9",
"beauty-amp-core2": "^0.4.10",
"express": "^4.19.2",
"generate-password": "^1.7.0",
"http-proxy-middleware": "^2.0.6",
"md5": "^2.3.0",
"moment": "^2.29.4",
"morgan": "^1.10.0",
"mustache": "^4.2.0"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/vscode": "1.77.0",
"@vscode/test-electron": "^2.3.0",
"chai": "^5.1.0",
"eslint": "^8.36.0",
"glob": "^8.1.0",
"mocha": "^10.2.0"
}
}