This repository has been archived by the owner on Oct 10, 2018. It is now read-only.
/
package.json
312 lines (312 loc) · 9.73 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
{
"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.17.0",
"node": ">=8.0.0",
"npm": ">=5.3.0"
},
"categories": [
"Other",
"Languages"
],
"main": "./out/extension",
"author": "Christoph Bühler <christoph.buehler@bluewin.ch>",
"license": "MIT",
"contributors": [],
"badges": [
{
"url": "https://img.shields.io/travis/buehler/typescript-hero.svg",
"href": "https://travis-ci.org/buehler/typescript-hero",
"description": "Travis build"
},
{
"url": "https://ci.appveyor.com/api/projects/status/p1vbbyh69j4s0rbh?svg=true",
"href": "https://ci.appveyor.com/project/buehler/typescript-hero",
"description": "AppVeyor build"
},
{
"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"
}
],
"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": {
"postinstall": "node ./etc/test_install.js && node ./node_modules/vscode/bin/install || echo 'vscode/bin/install not found'",
"clean": "del-cli ./out ./coverage",
"build": "npm run clean && tsc -p ./config/tsconfig.build.json",
"develop": "npm run clean && tsc -p .",
"lint": "tslint -c ./tslint.json -p ./config/tsconfig.build.json",
"test": "npm run lint && npm run clean && jest -c ./jest.json",
"test:watch": "npm run clean && jest -c ./jest.json --watch --no-coverage",
"test:vscode": "echo 'beside unit test with jest, there could be integration test with node ./node_modules/vscode/bin/test'",
"semantic-release": "semantic-release"
},
"release": {
"verifyConditions": [
"semantic-release-vsce",
"@semantic-release/github"
],
"getLastRelease": "./etc/get-last-release",
"publish": [
{
"path": "semantic-release-vsce",
"packageVsix": "rbbit.typescript-hero.vsix"
},
{
"path": "@semantic-release/github",
"assets": "rbbit.typescript-hero.vsix"
}
]
},
"devDependencies": {
"@smartive/tslint-config": "^2.0.0",
"@types/jest": "^22.0.1",
"@types/node": "^9.3.0",
"@types/reflect-metadata": "0.1.0",
"cross-env": "^5.1.3",
"del-cli": "^1.1.0",
"filewalker": "^0.1.3",
"jest": "^22.1.2",
"semantic-release": "^12.2.2",
"semantic-release-vsce": "^1.0.2",
"ts-jest": "^22.0.1",
"tslint": "^5.9.1",
"tsutils": "^2.19.1",
"vscode": "^1.1.10"
},
"dependencies": {
"inversify": "^4.9.0",
"inversify-inject-decorators": "^3.1.0",
"reflect-metadata": "^0.1.12",
"rxjs": "^5.5.6",
"tslib": "^1.8.1",
"typescript": "~2.6.2",
"typescript-parser": "^2.2.2",
"winston": "^3.0.0-rc1"
},
"activationEvents": [
"onLanguage:typescript",
"onLanguage:typescriptreact",
"onLanguage:javascript",
"onLanguage:javascriptreact"
],
"contributes": {
"commands": [
{
"command": "typescriptHero.imports.organize",
"title": "TS Hero: Organize imports (sort and remove unused)"
},
{
"command": "typescriptHero.codeOutline.gotoNode",
"title": "TS Hero (internal): Jump to the given nodes location"
}
],
"keybindings": [
{
"command": "typescriptHero.imports.organize",
"key": "ctrl+alt+o",
"when": "editorTextFocus"
}
],
"views": {
"explorer": [
{
"id": "codeOutline",
"name": "Code outline",
"when": "config.typescriptHero.codeOutline.enabled != false"
}
]
},
"configuration": {
"title": "TypeScript Hero",
"properties": {
"typescriptHero.verbosity": {
"enum": [
"error",
"warn",
"info",
"debug"
],
"default": "warn",
"description": "Defines the log output level in the output window. In the log file, it's always info or debug.",
"scope": "window"
},
"typescriptHero.codeOutline.enabled": {
"type": "boolean",
"default": true,
"description": "Defines if the code outline feature (and window) are enabled or not.",
"scope": "window"
},
"typescriptHero.imports.insertSpaceBeforeAndAfterImportBraces": {
"type": "boolean",
"default": true,
"description": "Defines if there should be a space inside the curly braces of an import statement.",
"scope": "resource"
},
"typescriptHero.imports.removeTrailingIndex": {
"type": "boolean",
"default": true,
"description": "Defines if a trailing '/index' should be removed from imports.",
"scope": "resource"
},
"typescriptHero.imports.insertSemicolons": {
"type": "boolean",
"default": true,
"description": "Defines if there should be a semicolon at the end of a statement.",
"scope": "resource"
},
"typescriptHero.imports.stringQuoteStyle": {
"enum": [
"'",
"\""
],
"default": "'",
"description": "Defines if single or double quotes should be used.",
"scope": "resource"
},
"typescriptHero.imports.multiLineWrapThreshold": {
"type": "number",
"minimum": 1,
"multipleOf": 1,
"default": 125,
"description": "Defines the threshold when an import should be wrapped into a multiline import.",
"scope": "resource"
},
"typescriptHero.imports.multiLineTrailingComma": {
"type": "boolean",
"default": true,
"description": "Defined if multi line imports contain the last trailing comma.",
"scope": "resource"
},
"typescriptHero.imports.organizeOnSave": {
"type": "boolean",
"default": false,
"description": "Defines if the imports should be organized on save.",
"scope": "resource"
},
"typescriptHero.imports.organizeSortsByFirstSpecifier": {
"type": "boolean",
"default": false,
"description": "Defines if the imports are organized by first specifier/alias instead of module path.",
"scope": "resource"
},
"typescriptHero.imports.disableImportsSorting": {
"type": "boolean",
"default": false,
"description": "Defines if sorting is disable during organize imports.",
"scope": "resource"
},
"typescriptHero.imports.disableImportRemovalOnOrganize": {
"type": "boolean",
"default": false,
"description": "Defines if any imports should be removed at all on an organize imports command.",
"scope": "resource"
},
"typescriptHero.imports.ignoredFromRemoval": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true,
"default": [
"react"
],
"description": "Defines imports (libraries, so the 'from' part), which are not removed during 'organize imports'.",
"scope": "resource"
},
"typescriptHero.imports.grouping": {
"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.",
"scope": "resource"
}
}
}
}
}