-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
417 lines (417 loc) · 12.5 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
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
{
"name": "ssjs-vsc",
"displayName": "SSJS Manager",
"description": "Provides dev tools, syntax highlighting and prettifier for SSJS files.",
"version": "0.6.9",
"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",
"icon": "$(cloud-upload)"
},
{
"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.change-script-options",
"title": "Change Script Options",
"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.check-any-path",
"title": "Check Dev Pages",
"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.change-script-options",
"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'"
},
{
"command": "ssjs-vsc.check-any-path",
"when": "ssjs-vsc.codeProvider != 'None'"
}
],
"editor/title": [
{
"command": "ssjs-vsc.run",
"group": "navigation",
"when": "resourceExtname in ssjs-vsc.allowedFileTypes"
},
{
"command": "ssjs-vsc.upload-script",
"group": "navigation",
"when": "resourceExtname in ssjs-vsc.allowedFileTypes"
}
]
},
"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.additionalFileTypes": {
"type": "array",
"default": [],
"items": {
"type": "string",
"pattern": "^\\.[a-zA-Z0-9]{1,5}$"
},
"description": "Additional file types that can be deployed to SFMC:\n- Write in `.ext` format - e.g.: `.js`.\n- First deployment still needs to be manual.\n- Beware: this can interfere with your configured hooks."
},
"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": "SSJS Manager Usage",
"description": "How to use the SSJS Manager?",
"steps": [
{
"id": "ssjs-use-workspace",
"title": "Use Workspace",
"description": "Open a workspace for your SSJS project. Workspace is basically a folder on your computer where you store your scripts. One workspace should be used for one SFMC BU.",
"media": {
"image": "https://raw.githubusercontent.com/FiB3/ssjs-vsc/main/images/walkthrough/noWorkspace.png",
"altText": "Opening a workspace."
}
},
{
"id": "run-ssjs-config",
"title": "Run SSJS Config",
"description": "Run the `SSJS: Show Config` to launch configuration wizzard. Follow presented steps to set up the extension.",
"media": {
"image": "https://raw.githubusercontent.com/FiB3/ssjs-vsc/main/images/walkthrough/createConfig.png",
"altText": "Running the config."
}
},
{
"id": "config-finished",
"title": "Configuration Finished",
"description": "Once you finish the configuration, including creation of Installed Package, Cloud Page and Cloud Page Text Resource, you will be able to start developing your scripts.",
"media": {
"image": "https://raw.githubusercontent.com/FiB3/ssjs-vsc/main/images/walkthrough/setCloudPage.png",
"altText": "Configuration finished."
}
},
{
"id": "create-script",
"title": "Create Script",
"description": "New script is created as any other file. Use `.ssjs`, `.amp` or `.html` extension.",
"media": {
"image": "https://raw.githubusercontent.com/FiB3/ssjs-vsc/main/images/ssjs-vsc-demo1.2.gif",
"altText": "Creating a new script."
}
},
{
"id": "upload-script",
"title": "Upload Script",
"description": "Run the `SSJS: Upload Script` command to upload the script to SFMC for the first time. Following file saves will automatically update the script in SFMC (really, just press that `CTRL / CMD + S`).",
"media": {
"image": "https://raw.githubusercontent.com/FiB3/ssjs-vsc/main/images/ssjs-vsc-demo2.0.gif",
"altText": "Uploading the script."
}
},
{
"id": "run-script",
"title": "Run Script",
"description": "Run the script using the `SSJS: Run` command. Or use the 'Run' button in the editor. You can also open the script in the browser or copy the URL to the clipboard (command `Get dev URL`).",
"media": {
"image": "https://raw.githubusercontent.com/FiB3/ssjs-vsc/main/images/ssjs-vsc-demo2.0.gif",
"altText": "Running the script."
}
}
]
}
],
"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",
"md5": "^2.3.0",
"moment": "^2.29.4",
"monaco-editor": "^0.52.2",
"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"
}
}