-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
218 lines (218 loc) · 6.97 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
{
"name": "vext",
"displayName": "vext",
"icon": "resources/vext-icon.png",
"publisher": "FourOrFive",
"description": "A utility for toggling features of text snippets",
"repository": {
"type": "git",
"url": "https://github.com/adamhamlin/vext.git"
},
"version": "1.0.1",
"engines": {
"vscode": "^1.74.0"
},
"license": "MIT",
"categories": [
"Other"
],
"keywords": [
"quote",
"comment",
"casing",
"newlines",
"json",
"yaml",
"text",
"vscode",
"extension"
],
"main": "./out/entry-point.js",
"scripts": {
"_lint": "eslint --fix",
"_lint:check": "eslint",
"_format": " prettier --write --ignore-unknown",
"_format:check": "prettier --check --ignore-unknown",
"fix": "npm run _lint . && npm run _format .",
"check": "npm run _lint:check . && npm run _format:check .",
"compile": "tsc -p ./",
"watch": "npm run compile -- -watch",
"prepare": "husky",
"pretest": "npm run compile",
"test": "node ./out/test/runTest.js",
"coverage": "c8 --check-coverage npm run test",
"pretest:ci": "npm run check",
"test:ci": "npm run coverage -- --lines 100 --functions 100 --branches 100 --statements 100",
"vscode:prepublish": "npm run compile",
"deploy": "vsce publish"
},
"lint-staged": {
"*.ts": "npm run _lint -- --cache",
"**/*": "npm run _format"
},
"c8": {
"all": true,
"include": [
"out/**"
],
"exclude": [
"**/node_modules/**",
"out/test/",
"out/types/",
"out/entry-point.*",
"out/commands/index.*"
]
},
"activationEvents": [],
"contributes": {
"commands": [
{
"command": "vext.toggleCommentType",
"title": "Toggle Comment Type"
},
{
"command": "vext.toggleQuotes",
"title": "Toggle Quote Characters"
},
{
"command": "vext.toggleCase",
"title": "Toggle Text Casing"
},
{
"command": "vext.toggleVariableNamingFormat",
"title": "Toggle Variable Naming Format"
},
{
"command": "vext.toggleJsonToJsToYaml",
"title": "Toggle JSON to Javascript to YAML"
},
{
"command": "vext.toggleNewlineChars",
"title": "Toggle Newlines To Literal Newline Characters"
}
],
"keybindings": [
{
"command": "vext.toggleCommentType",
"key": "ctrl+alt+t",
"mac": "cmd+alt+t"
},
{
"command": "vext.toggleQuotes",
"key": "ctrl+alt+'",
"mac": "cmd+alt+'"
},
{
"command": "vext.toggleCase",
"key": "ctrl+alt+a",
"mac": "cmd+alt+a"
},
{
"command": "vext.toggleVariableNamingFormat",
"key": "ctrl+alt+v",
"mac": "cmd+alt+v"
},
{
"command": "vext.toggleJsonToJsToYaml",
"key": "ctrl+alt+j",
"mac": "cmd+alt+j"
},
{
"command": "vext.toggleNewlineChars",
"key": "ctrl+alt+n",
"mac": "cmd+alt+n"
}
],
"configuration": {
"title": "Vext",
"properties": {
"vext.autoFormatOnToggleCommentType": {
"type": "boolean",
"default": false,
"description": "When enabled, automatically format the selection when toggling comment type. NOTE: Requires the `Rewrap` extension to be installed."
},
"vext.quoteChars": {
"type": "array",
"default": [
"\"",
"'",
"`"
],
"description": "The quote characters to toggle between."
},
"vext.caseExtraWordChars": {
"type": "array",
"default": [
"-",
"+",
".",
"/",
":",
"\"",
"'",
",",
"|",
"@",
"$",
"?",
"=",
"&",
"#"
],
"description": "Additional characters that will be considered a part of \\w when parsing words to toggle case. For example, if '-' is specified, then 'super-secret' would be considered a single word."
},
"vext.variableNamingFormats": {
"type": "array",
"default": [
"camel",
"pascal",
"snake",
"snakeUpper",
"kebab"
],
"description": "Variable naming formats to toggle between. 'kebabUpper' is also available."
},
"vext.useDoubleQuotesForOutputStrings": {
"type": "boolean",
"default": false,
"description": "When enabled, Javascript or YAML results will use double quotes (instead of single quotes) for string values and keys as required."
}
}
}
},
"dependencies": {
"comment-json": "^4.2.4",
"json5": "github:adamhamlin/json5#v2.3.0",
"lodash": "^4.17.21",
"ts-pattern": "^5.2.0",
"yaml": "^2.5.0"
},
"devDependencies": {
"@adamhamlin/eslint-config": "^1.4.1",
"@types/chai": "^4.3.17",
"@types/chai-as-promised": "^7.1.8",
"@types/dedent": "^0.7.2",
"@types/glob": "^8.1.0",
"@types/lodash": "^4.17.7",
"@types/mocha": "^10.0.7",
"@types/node": "^22.x",
"@types/sinon": "^17.0.3",
"@types/sinon-chai": "^3.2.12",
"@types/vscode": "^1.74.0",
"@vscode/test-electron": "^2.4.1",
"@vscode/vsce": "^2.31.1",
"c8": "^10.1.2",
"chai": "^4.5.0",
"chai-as-promised": "^7.1.1",
"dedent": "^1.5.3",
"glob": "^8.0.3",
"glob-promise": "^6.0.7",
"husky": "^9.1.4",
"lint-staged": "^15.2.8",
"madge": "^8.0.0",
"mocha": "^10.7.0",
"sinon": "^18.0.0",
"sinon-chai": "^3.7.0",
"typescript": "^5.5.4"
}
}