-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
212 lines (212 loc) · 6.76 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
{
"name": "tsalignment",
"displayName": "TS-Alignment of vertical tabs",
"description": "TS friendly vertical tab alignment tool",
"version": "0.9.0",
"publisher": "antonkrug",
"engines": {
"vscode": "^1.13.0"
},
"categories": [
"Formatters",
"Languages",
"Other"
],
"activationEvents": [
"onCommand:tsalignment.align",
"onCommand:tsalignment.alignFirstSymbolOnly"
],
"main": "./out/src/extension",
"contributes": {
"commands": [
{
"command": "tsalignment.align",
"title": "TSAlign all chars"
},
{
"command": "tsalignment.alignFirstSymbolOnly",
"title": "TSAlign only the first symbol and ignore rest"
}
],
"keybindings": [
{
"command": "tsalignment.align",
"key": "alt+=",
"when": "editorTextFocus && !editorReadOnly"
},
{
"command": "tsalignment.alignFirst",
"key": "alt+shift+=",
"when": "editorTextFocus && !editorReadOnly"
}
],
"menus": {
"editor/context": [
{
"when": "editorHasSelection",
"command": "tsalignment.align",
"group": "alignment@1"
},
{
"when": "editorHasSelection",
"command": "tsalignment.alignFirstSymbolOnly",
"group": "alignment@2"
}
]
},
"configuration": {
"title": "Alignment configuration",
"type": "object",
"properties": {
"tsalignment.typescript.symbols": {
"description": "TSAlignment symbols to align and their settings",
"type": "array",
"uniqueItems": true,
"minItems": 1,
"items": {
"title": "Symbol settings",
"type": "object",
"properties": {
"symbol": {
"description": "The symbol symbol on which the alignment will be executed",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"leftCount": {
"description": "Number of fixed minimal spaces before the symbol (-1 .. 100). The -1 will cause the symbol alignment to left side without spacing.",
"type": "number",
"default": 1,
"minimum": -1,
"maximum": 100
},
"leftCharacter": {
"description": "What character is used as the space before the symbol (default it's regular space ' ', but '\\t' could be used as well)",
"type": "string",
"required": false,
"default": " ",
"minLength": 1,
"maxLength": 100
},
"rightCount": {
"description": "Number of fixed minimal spaces after the symbol (-1 .. 100). The -1 will cause the symbol alignment to right side without spacing.",
"type": "number",
"default": 1,
"minimum": -1,
"maximum": 100
},
"rightCharacter": {
"description": "What character is used as the space after the symbol (default it's regular space ' ', but '\\t' could be used as well)",
"type": "string",
"required": false,
"default": " ",
"minLength": 1,
"maxLength": 100
},
"enabledRegex": {
"description": "Regex expression when the symbol will be active. (if not defined the symbol is active all the time, if this expression is defined, it will only be active when the expression is evaluated true and it is evaluated on line by line basis)",
"type": "string",
"required": false,
"default": "^.$",
"minLength": 1,
"maxLength": 200
}
}
},
"default": [
{
"symbol": "from",
"leftCount": 1,
"rightCount": 1,
"enabledRegex": "^\\s*import\\s"
},
{
"symbol": ":",
"leftCount": 0,
"rightCount": 1
},
{
"symbol": "::",
"leftCount": 0,
"rightCount": 0
},
{
"symbol": "=",
"leftCount": 1,
"rightCount": 1
},
{
"symbol": "===",
"leftCount": 1,
"rightCount": 1
},
{
"symbol": "==",
"leftCount": 1,
"rightCount": 1
},
{
"symbol": "=>",
"leftCount": 1,
"rightCount": 1
},
{
"symbol": "+=",
"leftCount": 1,
"rightCount": 1
},
{
"symbol": "-=",
"leftCount": 1,
"rightCount": 1
},
{
"symbol": "*=",
"leftCount": 1,
"rightCount": 1
},
{
"symbol": "/=",
"leftCount": 1,
"rightCount": 1
}
]
}
}
}
},
"scripts": {
"build": "gulp cover:disable && npm run compile --loglevel silent",
"coverage": "gulp cover:enable && tsc",
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "node ./node_modules/vscode/bin/test",
"test:coverage": "npm run coverage && npm run test",
"sonar:start-service": "sonar.sh start",
"sonar:analyse": "mkdir -p ./outSonar && find ./outSonar/ -type f -delete && tsc --outDir ./outSonar && sonar-scanner",
"sonar:analyse-cloud": "mkdir -p ./outSonar && find ./outSonar/ -type f -delete && tsc --outDir ./outSonar && sonar-scanner -Dsonar.projectKey=ts-align -Dsonar.organization=truhlikfredy-github -Dsonar.sources=. -Dsonar.host.url=https://sonarcloud.io -Dsonar.sources=./outSonar -Dsonar.language=js -Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info -Dsonar.login=$SONAR_VSALIGN_TOKEN"
},
"devDependencies": {
"@types/mocha": "^2.2.41",
"@types/node": "^6.0.78",
"@types/object-hash": "^0.5.28",
"chai": "^4.1.2",
"coveralls": "^3.0.1",
"decache": "^4.4.0",
"del": "^3.0.0",
"gulp": "^3.9.1",
"gulp-json-editor": "^2.3.0",
"istanbul": "^0.4.5",
"istanbul-coveralls": "^1.0.3",
"mocha": "^2.5.3",
"mocha-lcov-reporter": "^1.3.0",
"nyc": "^11.0.3",
"object-hash": "^1.1.8",
"remap-istanbul": "^0.11.1",
"source-map-support": "^0.5.5",
"typescript": "^2.3.4",
"util": "^0.10.3",
"vscode": "^1.1.1"
}
}