-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
package.json
368 lines (368 loc) · 12.1 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
{
"name": "aurelia",
"description": "A VSCode extension for Aurelia",
"author": "AureliaEffect",
"license": "MIT",
"version": "2.3.9",
"repository": {
"type": "git",
"url": "https://github.com/aurelia/vscode-extension"
},
"publisher": "AureliaEffect",
"categories": [
"Programming Languages",
"Themes",
"Snippets"
],
"icon": "images/logo.png",
"keywords": [
"aurelia",
"vscode",
"extension"
],
"homepage": "http://aurelia.io",
"bugs": {
"url": "https://github.com/aurelia/vscode-extension/issues"
},
"galleryBanner": {
"color": "#5c2d91",
"theme": "dark"
},
"engines": {
"vscode": "^1.63.0"
},
"activationEvents": [
"onStartupFinished"
],
"main": "./client/out/extension",
"contributes": {
"commands": [
{
"command": "extension.au.reloadExtension",
"title": "Reload Extension",
"category": "Aurelia"
},
{
"command": "aurelia.getAureliaComponents",
"title": "[Au] Show Aurelia Components parsed by the extension",
"category": "Aurelia"
},
{
"command": "extension.auOpenRelated",
"title": "[Au] Switch between Aurelia view and view model"
},
{
"command": "extension.auOpenRelatedScript",
"title": "[Au] Open Related Aurelia File: Script"
},
{
"command": "extension.auOpenRelatedStyle",
"title": "[Au] Open Related Aurelia File: Style"
},
{
"command": "extension.auOpenRelatedUnit",
"title": "[Au] Open Related Aurelia File: Unit"
},
{
"command": "extension.auOpenRelatedView",
"title": "[Au] Open Related Aurelia File: View"
},
{
"command": "extension.extractComponent",
"title": "[Au] Extract Component"
},
{
"command": "extension.declareViewModelVariable",
"title": "[Au] Declare View Model Variable from Selection"
}
],
"configuration": {
"title": "aurelia",
"properties": {
"aurelia.readme": {
"markdownDescription": "For more information, visit the Repo at https://github.com/aurelia/vscode-extension"
},
"aurelia.aureliaProject": {
"type": "object",
"markdownDescription": "The extension scans your View model files to extract information for various features. This setting provides customization. (For more information, visit the Repo at https://github.com/aurelia/vscode-extension)"
},
"aurelia.aureliaProject.exclude": {
"type": "array",
"default": [
"**/node_modules",
"**/out",
"**/build",
"**/dist",
"aurelia_project"
],
"items": {
"type": "string"
},
"uniqueItems": true,
"markdownDescription": "Specifies exclude globs for your View model files.",
"scope": "language-overridable"
},
"aurelia.aureliaProject.include": {
"type": "array",
"default": [
"src"
],
"items": {
"type": "string"
},
"uniqueItems": true,
"markdownDescription": "Specifies include globs for your View model files.",
"scope": "language-overridable"
},
"aurelia.aureliaProject.packageJsonInclude": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"uniqueItems": true,
"markdownDescription": "Specifies include globs for package.json files (Used to determine eg. version of your Aurelia project). This settings should only be needed for a Monorepo setup.",
"scope": "language-overridable"
},
"aurelia.aureliaProject.rootDirectory": {
"type": "string",
"description": "Provide a custom directory for the root. (Defaults to workspace root)",
"default": ""
},
"aurelia.aureliaProject.pathToAureliaFiles": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"uniqueItems": true,
"markdownDescription": "Absolute paths, that include Aurelia files. Use if the Extension did not pick up expected files.",
"scope": "language-overridable"
},
"aurelia.capabilities": {
"type": "object",
"markdownDescription": "Control capabilities for the extension.",
"additionalProperties": false,
"scope": "window",
"default": {
"completions": true,
"codeActions": true,
"defintions": true,
"renames": false,
"documentSymbols": true,
"workspaceSymbols": true
},
"properties": {
"capabilities.completions": {
"type": "boolean",
"description": "Provide completions from View model to View (and more).",
"default": "false"
},
"capabilities.codeActions": {
"type": "boolean",
"description": "Provide code actions for eg. refactoring.",
"default": "false"
},
"capabilities.definitions": {
"type": "boolean",
"description": "Provide definitions between View model and View (and more).",
"default": "false"
},
"capabilities.renames": {
"type": "boolean",
"description": "Provide renamings from eg. View model bindables (and more).",
"default": "false"
},
"capabilities.documentSymbols": {
"type": "boolean",
"description": "Provide document symbols from regions inside View.",
"default": "false"
},
"capabilities.workspaceSymbols": {
"type": "boolean",
"description": "Provide workspace symbols from all regions of your Views.",
"default": "false"
}
}
},
"aurelia.pathToTsConfig": {
"type": "string",
"description": "Provide an absolute path to a tsconfig.json"
},
"aurelia.relatedFiles": {
"type": "object",
"markdownDescription": "Quick switching between related files. **Important** all files are assumed to be in the same directory."
},
"aurelia.relatedFiles.script": {
"type": "array",
"default": [
".js",
".ts"
],
"items": {
"type": "string"
},
"uniqueItems": true,
"markdownDescription": "Define file extensions for your project scripts. **Important** all files are assumed to be in the same directory.",
"scope": "window"
},
"aurelia.relatedFiles.style": {
"type": "array",
"default": [
".less",
".sass",
".scss",
".styl",
".css"
],
"items": {
"type": "string"
},
"uniqueItems": true,
"markdownDescription": "Define file extensions for your project styles **Important** all files are assumed to be in the same directory.",
"scope": "window"
},
"aurelia.relatedFiles.unit": {
"type": "array",
"default": [
".spec.js",
".spec.ts"
],
"items": {
"type": "string"
},
"uniqueItems": true,
"markdownDescription": "Define file extensions for your project unit tests. **Important** all files are assumed to be in the same directory.",
"scope": "window"
},
"aurelia.relatedFiles.view": {
"type": "array",
"default": [
".html"
],
"items": {
"type": "string"
},
"uniqueItems": true,
"markdownDescription": "Define file extensions for your project views. **Important** all files are assumed to be in the same directory.",
"scope": "window"
}
},
"grammars": [
{
"language": "html",
"scopeName": "au.html",
"path": "./syntaxes/html.json"
}
],
"languages": [
{
"id": "html",
"order": 1,
"extensions": [
".html",
".htm",
".shtml",
".xhtml",
".mdoc",
".jsp",
".asp",
".aspx",
".jshtm",
".volt",
".ejs",
".au"
],
"aliases": [
"HTML",
"htm",
"html",
"xhtml"
],
"mimetypes": [
"text/html",
"text/x-jshtm",
"text/template",
"text/ng-template",
"application/xhtml+xml"
],
"embeddedLanguages": {
"text.html": "html",
"source.css": "css",
"source.js": "javascript",
"source.python": "python",
"source.smarty": "smarty"
},
"configuration": "./language-configuration.json"
}
]
}
},
"scripts": {
"publish:addTag": "",
"vscode:prepublish": "npm run compile",
"build": "tsc -p ./",
"create:vsix": "npx vsce package",
"changelog": "node ./node_modules/conventional-changelog-cli/cli.js -p angular -i CHANGELOG.md -s",
"compile": "npm run compile:client && npm run compile:server",
"compile:client": "tsc -p ./client/tsconfig.json",
"compile:server": "tsc -p ./server/tsconfig.json",
"lint": " npx eslint ./ --ext js,ts",
"lint:fix": " npx eslint ./ --ext js,ts --fix",
"lint:cache": "npx eslint ./ --ext js,ts --cache",
"watch": "tsc -b -w",
"watch:client": "tsc -w -p ./client/tsconfig.json",
"watch:server": "tsc -w -p ./server/tsconfig.json",
"postinstall": "cd client && npm i && cd ../server && npm i && cd ..",
"test:ci": "npm run test:unit",
"test:unit": "npm run test:unit:core && npm run test:unit:gherkin",
"test:unit:core": "npx jest --testMatch=\"**/unit/core/**/*.spec.ts\"",
"test:unit:gherkin": "npm run test:unit:gherkin:core && npm run test:unit:gherkin:cli && npm run test:unit:gherkin:mono && npm run test:unit:gherkin:scoped",
"test:unit:gherkin:core": " npx jest ./testLauncher/core.spec.ts --forceExit --color",
"test:unit:gherkin:cli": " npx jest ./testLauncher/cliGenerated.spec.ts --forceExit --color",
"test:unit:gherkin:mono": " npx jest ./testLauncher/monorepo.spec.ts --forceExit --color",
"test:unit:gherkin:scoped": "npx jest ./testLauncher/scopedForTesting.spec.ts --forceExit --color",
"start:depTree": "./node_modules/.bin/code-dependency --exclude 'node_modules' --source ./server/src/",
"start:depCruise": "depcruise --include-only '^server/src' --output-type dot server/src | dot -T svg > dependencygraph.svg"
},
"devDependencies": {
"@jsdevtools/coverage-istanbul-loader": "^3.0.5",
"@sucrase/jest-plugin": "^2.2.0",
"@types/assert": "^1.5.4",
"@types/jest": "~25.1.3",
"@types/mocha": "^8.2.1",
"@types/node": "^14.14.30",
"@typescript-eslint/eslint-plugin": "^5.3.0",
"@typescript-eslint/parser": "^5.3.0",
"conventional-changelog-cli": "^2.1.1",
"core-js": "^3.6.5",
"eslint": "^8.5.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jsdoc": "^37.4.0",
"jest": "=27.4.5",
"jest-cucumber": "^3.0.1",
"mocha": "^8.3.0",
"prettier": "^2.5.1",
"prettier-eslint": "^13.0.0",
"sucrase": "^3.20.1",
"ts-node": "^9.1.1",
"vsce": "^2.15.0"
},
"dependencies": {
"aurelia-dependency-injection": "^1.5.2",
"colorette": "^2.0.12",
"culog": "^0.0.10",
"lodash": "^4.17.19",
"reflect-metadata": "^0.1.9",
"ts-morph": "^12.0.0",
"typescript": "^4.4.4",
"vscode-html-languageservice": "^3.0.3",
"vscode-languageserver": "^6.1.1",
"vscode-languageserver-textdocument": "^1.0.1"
},
"babel": {
"presets": [
"@babel/preset-typescript"
]
}
}