-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
247 lines (244 loc) · 7.96 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
{
"name": "vscode-change-naming-convention",
"displayName": "Change Naming Convention for YAML/JSON files",
"description": "Easily change the naming convention of property keys in YAML and JSON files",
"publisher": "ShipitSmarter",
"author": {
"name": "ShipitSmarter",
"url": "https://github.com/ShipitSmarter"
},
"version": "1.0.1",
"engines": {
"vscode": "^1.78.0"
},
"contributors": [
{
"name": "Michael Stocks",
"url": "https://github.com/Droxx",
"email": "[email protected]"
}
],
"categories": [
"Other"
],
"keywords": [
"converter",
"yaml naming convention",
"json naming convention",
"pascal",
"camel",
"kebab",
"snake"
],
"activationEvents": [
"workspaceContains:**/**.json",
"workspaceContains:**/**.yml",
"workspaceContains:**/**.yaml",
"onLanguage:json",
"onLanguage:yaml"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "vscode-change-naming-convention.rightClickCamel",
"title": "Convert to camelCase",
"enablement": "resourceExtname == .json || resourceExtname == .yml || resourceExtname == .yaml"
},
{
"command": "vscode-change-naming-convention.rightClickPascal",
"title": "Convert to PascalCase",
"enablement": "resourceExtname == .json || resourceExtname == .yml || resourceExtname == .yaml"
},
{
"command": "vscode-change-naming-convention.rightClickKebab",
"title": "Convert to kebab-case",
"enablement": "resourceExtname == .json || resourceExtname == .yml || resourceExtname == .yaml"
},
{
"command": "vscode-change-naming-convention.rightClickSnake",
"title": "Convert to snake_case",
"enablement": "resourceExtname == .json || resourceExtname == .yml || resourceExtname == .yaml"
},
{
"command": "vscode-change-naming-convention.rightClickConstant",
"title": "Convert to CONSTANT_CASE",
"enablement": "resourceExtname == .json || resourceExtname == .yml || resourceExtname == .yaml"
},
{
"command": "vscode-change-naming-convention.cpCamel",
"title": "Change Naming Convention: To camelCase",
"enablement": "resourceExtname == .json || resourceExtname == .yml || resourceExtname == .yaml"
},
{
"command": "vscode-change-naming-convention.cpPascal",
"title": "Change Naming Convention: To PascalCase",
"enablement": "resourceExtname == .json || resourceExtname == .yml || resourceExtname == .yaml"
},
{
"command": "vscode-change-naming-convention.cpKebab",
"title": "Change Naming Convention: To kebab-case",
"enablement": "resourceExtname == .json || resourceExtname == .yml || resourceExtname == .yaml"
},
{
"command": "vscode-change-naming-convention.cpSnake",
"title": "Change Naming Convention: To snake_case",
"enablement": "resourceExtname == .json || resourceExtname == .yml || resourceExtname == .yaml"
},
{
"command": "vscode-change-naming-convention.cpConstant",
"title": "Change Naming Convention: To CONSTANT_CASE",
"enablement": "resourceExtname == .json || resourceExtname == .yml || resourceExtname == .yaml"
}
],
"menus": {
"commandPalette": [
{
"command": "vscode-change-naming-convention.rightClickCamel",
"when": "false"
},
{
"command": "vscode-change-naming-convention.rightClickPascal",
"when": "false"
},
{
"command": "vscode-change-naming-convention.rightClickKebab",
"when": "false"
},
{
"command": "vscode-change-naming-convention.rightClickSnake",
"when": "false"
},
{
"command": "vscode-change-naming-convention.rightClickConstant",
"when": "falsel"
},
{
"command": "vscode-change-naming-convention.cpCamel",
"when": "resourceExtname == .json || resourceExtname == .yml || resourceExtname == .yaml"
},
{
"command": "vscode-change-naming-convention.cpPascal",
"when": "resourceExtname == .json || resourceExtname == .yml || resourceExtname == .yaml"
},
{
"command": "vscode-change-naming-convention.cpKebab",
"when": "resourceExtname == .json || resourceExtname == .yml || resourceExtname == .yaml"
},
{
"command": "vscode-change-naming-convention.cpSnake",
"when": "resourceExtname == .json || resourceExtname == .yml || resourceExtname == .yaml"
},
{
"command": "vscode-change-naming-convention.cpConstant",
"when": "resourceExtname == .json || resourceExtname == .yml || resourceExtname == .yaml"
}
],
"explorer/context": [
{
"group": "2_changecase",
"submenu": "changeconvention.submenu",
"when": "resourceExtname == .json || resourceExtname == .yml || resourceExtname == .yaml"
}
],
"editor/title": [
{
"group": "2_changecase",
"submenu": "changeconvention.submenu",
"when": "resourceExtname == .json || resourceExtname == .yml || resourceExtname == .yaml"
}
],
"editor/title/context": [
{
"group": "2_changecase",
"submenu": "changeconvention.submenu",
"when": "resourceExtname == .json || resourceExtname == .yml || resourceExtname == .yaml"
}
],
"changeconvention.submenu": [
{
"command": "vscode-change-naming-convention.rightClickPascal"
},
{
"command": "vscode-change-naming-convention.rightClickCamel"
},
{
"command": "vscode-change-naming-convention.rightClickSnake"
},
{
"command": "vscode-change-naming-convention.rightClickKebab"
},
{
"command": "vscode-change-naming-convention.rightClickConstant"
}
]
},
"submenus": [
{
"id": "changeconvention.submenu",
"label": "Change Naming Convention"
}
],
"configuration":
{
"title": "Change Naming Convention",
"properties": {
"change-naming-convention":{
"type": "object",
"default": {
"ignoreRegex": []
},
"properties":{
"ignoreRegex": {
"type": "array",
"items": {
"type": "string",
"title": "inner objects"
},
"default": [],
"description": "An array of regexes to ignore when changing naming convention"
}
}
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"deploy": "vsce publish"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/vscode": "^1.78.0",
"@typescript-eslint/eslint-plugin": "^5.59.1",
"@typescript-eslint/parser": "^5.59.1",
"@vscode/test-electron": "^2.3.0",
"@vscode/vsce": "^2.19.0",
"eslint": "^8.39.0",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"ts-loader": "^9.4.2",
"typescript": "^5.0.4",
"webpack": "^5.81.0",
"webpack-cli": "^5.0.2"
},
"dependencies": {
"change-case": "4.1.2",
"yaml": "2.2.2"
},
"repository": {
"type": "git",
"url": "https://github.com/ShipitSmarter/vscode-change-naming-convention"
},
"icon": "img/icon.png"
}