This repository has been archived by the owner on Oct 10, 2018. It is now read-only.
/
package.json
372 lines (372 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
369
370
371
372
{
"name": "typescript-hero",
"displayName": "TypeScript Hero",
"description": "Additional tooling for the typescript language",
"icon": "etc/icon.png",
"galleryBanner": {
"color": "#1e324c",
"theme": "dark"
},
"version": "0.0.0-development",
"publisher": "rbbit",
"engines": {
"vscode": "^1.13.0",
"node": ">=8.0.0",
"npm": ">=5.3.0"
},
"categories": [
"Other",
"Languages"
],
"main": "./out/src/extension/extension",
"author": "Christoph Bühler <christoph.buehler@bluewin.ch>",
"license": "MIT",
"contributors": [],
"release": {
"getLastRelease": "semantic-release-visualstudio-marketplace-version"
},
"badges": [
{
"url": "https://img.shields.io/travis/buehler/typescript-hero.svg",
"href": "https://travis-ci.org/buehler/typescript-hero",
"description": "Travis build"
},
{
"url": "https://vsmarketplacebadge.apphb.com/version-short/rbbit.typescript-hero.svg",
"href": "https://marketplace.visualstudio.com/items?itemName=rbbit.typescript-hero",
"description": "Marketplace"
},
{
"url": "https://vsmarketplacebadge.apphb.com/installs/rbbit.typescript-hero.svg",
"href": "https://marketplace.visualstudio.com/items?itemName=rbbit.typescript-hero",
"description": "Installs"
},
{
"url": "https://img.shields.io/github/issues/buehler/typescript-hero.svg",
"href": "https://github.com/buehler/typescript-hero/issues",
"description": "GitHub issues"
},
{
"url": "https://img.shields.io/github/issues-pr/buehler/typescript-hero.svg",
"href": "https://github.com/buehler/typescript-hero/pulls",
"description": "GitHub pull requests"
},
{
"url": "https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg",
"href": "https://github.com/semantic-release/semantic-release",
"description": "Semantic release"
},
{
"url": "https://badges.greenkeeper.io/buehler/typescript-hero.svg",
"href": "https://greenkeeper.io/",
"description": "Greenkeeper"
},
{
"url": "https://img.shields.io/github/license/buehler/typescript-hero.svg",
"href": "https://github.com/buehler/typescript-hero/blob/master/LICENSE",
"description": "License"
}
],
"repository": {
"type": "git",
"url": "https://github.com/buehler/typescript-hero.git"
},
"bugs": {
"url": "https://github.com/buehler/typescript-hero/issues"
},
"homepage": "https://buehler.github.io/typescript-hero/",
"scripts": {
"vscode:prepublish": "yarn install --production",
"predevelop": "del-cli ./out",
"develop": "tsc",
"postinstall": "test -f ./node_modules/vscode/bin/install && node ./node_modules/vscode/bin/install || echo 'vscode/bin/install not found'",
"pretest": "del-cli ./out && tsc -p ./config/tsconfig.test.json && yarn run lint",
"test": "node ./node_modules/vscode/bin/test",
"lint": "tslint -c tslint.json --project ./config/tsconfig.build.json",
"build": "del-cli ./out && tsc -p ./config/tsconfig.build.json",
"package": "yarn run build && del-cli './*.vsix' && vsce package",
"semantic-release-pre": "semantic-release pre",
"semantic-release": "yarn run semantic-release-pre && vsce package && vsce publish -p $VSCE_TOKEN && yarn install && semantic-release post"
},
"devDependencies": {
"@types/chai": "^4.0.4",
"@types/mocha": "^2.2.43",
"@types/node": "^8.0.31",
"@types/reflect-metadata": "0.0.5",
"@types/sinon": "^2.3.5",
"@types/sinon-chai": "^2.7.29",
"chai": "^4.1.2",
"del-cli": "^1.1.0",
"filewalker": "^0.1.3",
"mocha-testdata": "^1.2.0",
"semantic-release": "^8.0.3",
"semantic-release-visualstudio-marketplace-version": "^1.0.0",
"sinon": "^4.0.0",
"sinon-chai": "^2.14.0",
"tslint": "^5.7.0",
"tslint-config-airbnb": "^5.3.0",
"tsutils": "^2.11.1",
"vscode": "^1.1.5"
},
"dependencies": {
"inversify": "^4.3.0",
"inversify-inject-decorators": "^3.0.1",
"reflect-metadata": "^0.1.10",
"tslib": "^1.7.1",
"typescript": "~2.5.3",
"typescript-parser": "^2.0.0"
},
"activationEvents": [
"onLanguage:typescript",
"onLanguage:typescriptreact",
"onLanguage:javascript",
"onLanguage:javascriptreact"
],
"contributes": {
"commands": [
{
"command": "typescriptHero.resolve.addImport",
"title": "TS Hero: Add an import to current file"
},
{
"command": "typescriptHero.resolve.addImportUnderCursor",
"title": "TS Hero: Adds the current symbol under the cursor as an import to current file"
},
{
"command": "typescriptHero.resolve.addMissingImports",
"title": "TS Hero: Adds all missing imports for the open document"
},
{
"command": "typescriptHero.resolve.organizeImports",
"title": "TS Hero: Organize imports (sort and remove unused)"
},
{
"command": "typescriptHero.resolve.rebuildCache",
"title": "TS Hero: Rebuild the resolver cache"
},
{
"command": "typescriptHero.codeFix.executeCodeAction",
"title": "TS Hero (internal): Execute a code action"
},
{
"command": "typescriptHero.codeCompletion.executeIntellisenseItem",
"title": "TS Hero (internal): Execute the command for a intellisense item"
},
{
"command": "typescriptHero.documentCodeOutline.gotoNode",
"title": "TS Hero (internal): Jump to the given nodes location"
}
],
"keybindings": [
{
"command": "typescriptHero.resolve.addImport",
"key": "ctrl+shift+i",
"when": "editorTextFocus"
},
{
"command": "typescriptHero.resolve.addImportUnderCursor",
"key": "ctrl+alt+i",
"when": "editorTextFocus"
},
{
"command": "typescriptHero.resolve.addMissingImports",
"key": "ctrl+alt+shift+i",
"when": "editorTextFocus"
},
{
"command": "typescriptHero.resolve.organizeImports",
"key": "ctrl+alt+o",
"when": "editorTextFocus"
}
],
"views": {
"explorer": [
{
"id": "documentCodeOutline",
"name": "Code outline",
"when": "config.typescriptHero.codeOutline.enabled != false"
}
]
},
"configuration": {
"title": "TypeScript Hero",
"properties": {
"typescriptHero.verbosity": {
"enum": [
"Nothing",
"Errors",
"Warnings",
"All"
],
"default": "Warnings",
"description": "Defines the log output level in the output window."
},
"typescriptHero.completionSortMode": {
"enum": [
"default",
"bottom"
],
"default": "default",
"description": "Import completion sort order"
},
"typescriptHero.resolver.insertSpaceBeforeAndAfterImportBraces": {
"type": "boolean",
"default": true,
"description": "Defines if there should be a space inside the curly braces of an import statement."
},
"typescriptHero.resolver.insertSemicolons": {
"type": "boolean",
"default": true,
"description": "Defines if there should be a semicolon at the end of a statement."
},
"typescriptHero.resolver.stringQuoteStyle": {
"enum": [
"'",
"\""
],
"default": "'",
"description": "Defines if single or double quotes should be used."
},
"typescriptHero.resolver.ignorePatterns": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true,
"default": [
"build",
"out",
"dist"
],
"description": "Defines partial pathes that are ignored during indexing (e.g. 'node_modules' would exclude all modules)."
},
"typescriptHero.resolver.multiLineWrapThreshold": {
"type": "number",
"minimum": 1,
"multipleOf": 1,
"default": 125,
"description": "Defines the threshold when an import should be wrapped into a multiline import."
},
"typescriptHero.resolver.multiLineTrailingComma": {
"type": "boolean",
"default": true,
"description": "Defined if multi line imports contain the last trailing comma."
},
"typescriptHero.resolver.disableImportsSorting": {
"type": "boolean",
"default": false,
"description": "Defines if sorting is disable during organize imports."
},
"typescriptHero.resolver.disableImportRemovalOnOrganize": {
"type": "boolean",
"default": false,
"description": "Defines, if removal unsed imports is obligatory during organize imports"
},
"typescriptHero.resolver.organizeOnSave": {
"type": "boolean",
"default": false,
"description": "Defines if the imports should be organized on save."
},
"typescriptHero.resolver.ignoreImportsForOrganize": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true,
"default": [
"react"
],
"description": "Defines imports (libraries, so the 'from' part), which are not removed during 'organize imports'."
},
"typescriptHero.resolver.importGroups": {
"type": "array",
"items": {
"anyOf": [
{
"enum": [
"Modules",
"Plains",
"Workspace",
"Remaining"
]
},
{
"type": "string",
"pattern": "\\/[A-Za-z-_0-9]+\\/"
},
{
"type": "object",
"properties": {
"identifier": {
"enum": [
"Modules",
"Plains",
"Workspace",
"Remaining"
]
},
"order": {
"enum": [
"asc",
"desc"
]
}
},
"additionalProperties": false,
"required": [
"identifier",
"order"
]
},
{
"type": "object",
"properties": {
"identifier": {
"type": "string",
"pattern": "\\/[A-Za-z-_0-9]+\\/"
},
"order": {
"enum": [
"asc",
"desc"
]
}
},
"additionalProperties": false,
"required": [
"identifier",
"order"
]
}
]
},
"default": [
"Plains",
"Modules",
"Workspace"
],
"description": "Defines the groups of the imports ordering. Multiple groups possible, see readme for instructions."
},
"typescriptHero.resolver.resolverMode": {
"enum": [
"TypeScript",
"ES6",
"Both"
],
"default": "TypeScript",
"description": "Defines the mode of the symbol resolver (i.e. if JavaScript files should be indexed as well (experimental)."
},
"typescriptHero.resolver.promptForSpecifiers": {
"type": "boolean",
"default": true,
"description": "Defines if typescript hero should ask the user for default specifiers or duplicate specifier aliases."
},
"typescriptHero.codeOutline.enabled": {
"type": "boolean",
"default": true,
"description": "Defines if the code outline feature (and window) are enabled or not."
}
}
}
}
}