-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
321 lines (321 loc) · 10.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
{
"name": "dotenvx-decrypt-vscode",
"displayName": "Dotenvx Unofficial",
"description": "Conveniently decrypt files managed by dotenvx when permissable",
"author": "vinnymac",
"publisher": "vinnymac",
"icon": "./images/dotenv.webp",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/vinnymac/dotenvx-decrypt-vscode"
},
"version": "0.0.15",
"type": "module",
"engines": {
"vscode": "^1.90.0"
},
"galleryBanner": {
"color": "#f7df1e",
"theme": "highContrast"
},
"categories": [
"Other"
],
"activationEvents": [],
"main": "./dist/extension.cjs",
"contributes": {
"submenus": [
{
"id": "dotenvx.secrets",
"label": "Dotenv"
}
],
"menus": {
"dotenvx.secrets": [
{
"command": "dotenvx.copySecretOnLine",
"group": "navigation@1",
"when": "config.dotenvx.displayContextMenuCopySecretOnLine"
},
{
"command": "dotenvx.decryptSecretOnLine",
"group": "navigation@2",
"when": "config.dotenvx.displayContextMenuDecryptSecretOnLine && !config.dotenvx.enableAutoReveal"
},
{
"command": "dotenvx.encryptSecretOnLine",
"group": "navigation@3",
"when": "config.dotenvx.displayContextMenuEncryptSecretOnLine && !config.dotenvx.enableAutoReveal"
}
],
"editor/context": [
{
"submenu": "dotenvx.secrets",
"group": "0_main@1",
"when": "editorTextFocus && isFileSystemResource && resourceLangId == dotenv && resourceFilename =~ /^.env(.(?!(keys|vault)$).*)?$/"
}
],
"editor/title": [
{
"command": "dotenvx.hideSecrets",
"group": "navigation@1",
"when": "isFileSystemResource && resourceLangId == dotenv && config.dotenvx.displayAutoRevealNavigationButton && config.dotenvx.enableAutoReveal && resourceFilename =~ /^.env(.(?!(keys|vault)$).*)?$/"
},
{
"command": "dotenvx.showSecrets",
"group": "navigation@1",
"when": "isFileSystemResource && resourceLangId == dotenv && config.dotenvx.displayAutoRevealNavigationButton && !config.dotenvx.enableAutoReveal && resourceFilename =~ /^.env(.(?!(keys|vault)$).*)?$/"
},
{
"command": "dotenvx.setSecretForKey",
"group": "navigation@2",
"when": "isFileSystemResource && resourceLangId == dotenv && config.dotenvx.displaySetSecretButton && resourceFilename =~ /^.env(.(?!(keys|vault)$).*)?$/"
},
{
"command": "dotenvx.copySecretForKey",
"group": "navigation@3",
"when": "isFileSystemResource && resourceLangId == dotenv && config.dotenvx.displayCopyToClipboardButton && resourceFilename =~ /^.env(.(?!(keys|vault)$).*)?$/"
}
],
"touchBar": [
{
"command": "dotenvx.toggleSecretVisibilityTouchbar",
"group": "navigation@1",
"when": "isFileSystemResource && resourceLangId == dotenv && config.dotenvx.displayAutoRevealNavigationButton && resourceFilename =~ /^.env(.(?!(keys|vault)$).*)?$/"
},
{
"command": "dotenvx.setSecretForKey",
"group": "navigation@2",
"when": "isFileSystemResource && resourceLangId == dotenv && config.dotenvx.displaySetSecretButton && resourceFilename =~ /^.env(.(?!(keys|vault)$).*)?$/"
},
{
"command": "dotenvx.copySecretForKey",
"group": "navigation@3",
"when": "isFileSystemResource && resourceLangId == dotenv && config.dotenvx.displayCopyToClipboardButton && resourceFilename =~ /^.env(.(?!(keys|vault)$).*)?$/"
}
]
},
"configuration": {
"type": "object",
"title": "Dotenvx Decrypt",
"properties": {
"dotenvx.enableAutoReveal": {
"type": "boolean",
"default": true,
"description": "Enable quick reveal of secrets in your .env files"
},
"dotenvx.displayAutoRevealCodeLens": {
"type": "boolean",
"default": false,
"description": "Enable the code lens for auto reveal"
},
"dotenvx.displayAutoRevealNavigationButton": {
"type": "boolean",
"default": true,
"description": "Enable the navigation button for auto reveal"
},
"dotenvx.displayCopyToClipboardButton": {
"type": "boolean",
"default": true,
"description": "Enable the navigation button for copying secrets to clipboard"
},
"dotenvx.displaySetSecretButton": {
"type": "boolean",
"default": true,
"description": "Enable the navigation button for setting secrets"
},
"dotenvx.displayContextMenuCopySecretOnLine": {
"type": "boolean",
"default": true,
"description": "Enable the context menu for copying secrets"
},
"dotenvx.autoSearchForLocalDotenvxBinary": {
"type": "boolean",
"default": false,
"description": "Enable searching for a locally installed version of dotenvx"
},
"dotenvx.displayContextMenuEncryptSecretOnLine": {
"type": "boolean",
"default": true,
"description": "Enable the context menu for encrypting secrets"
},
"dotenvx.displayContextMenuDecryptSecretOnLine": {
"type": "boolean",
"default": true,
"description": "Enable the context menu for decrypting secrets"
}
}
},
"commands": [
{
"command": "dotenvx.showDecryptedDotenv",
"category": "Dotenvx",
"title": "Decrypt Dotenv in New Tab"
},
{
"command": "dotenvx.checkVersion",
"category": "Dotenvx",
"title": "Check Version",
"enablement": "config.dotenvx.autoSearchForLocalDotenvxBinary"
},
{
"command": "dotenvx.toggleSecretVisibility",
"category": "Dotenvx",
"title": "Toggle Secret Visibility",
"shortTitle": "Toggle Secret"
},
{
"command": "dotenvx.hideSecrets",
"category": "Dotenvx",
"title": "Hide Secrets",
"shortTitle": "Hide",
"icon": {
"light": "./images/lock-open-outline.svg",
"dark": "./images/lock-open-outline-light.svg"
}
},
{
"command": "dotenvx.showSecrets",
"category": "Dotenvx",
"title": "Show Secrets",
"shortTitle": "Show",
"icon": {
"light": "./images/lock-closed.svg",
"dark": "./images/lock-closed-light.svg"
}
},
{
"command": "dotenvx.toggleSecretVisibilityTouchbar",
"category": "Dotenvx",
"title": "Toggle Secret Visibility",
"shortTitle": "Toggle Secret",
"enablement": "config.dotenvx.displayAutoRevealNavigationButton",
"icon": {
"light": "./images/icon.png",
"dark": "./images/icon.png"
}
},
{
"command": "dotenvx.encryptDotenv",
"category": "Dotenvx",
"title": "Encrypt active file"
},
{
"command": "dotenvx.setSecretForKey",
"category": "Dotenvx",
"title": "Set Secret",
"icon": {
"light": "./images/key-outline.svg",
"dark": "./images/key-outline-light.svg"
}
},
{
"command": "dotenvx.copySecretForKey",
"category": "Dotenvx",
"title": "Copy Secret",
"icon": {
"light": "./images/clipboard-outline.svg",
"dark": "./images/clipboard-outline-light.svg"
}
},
{
"command": "dotenvx.copySecretOnLine",
"category": "Dotenvx",
"title": "Copy Secret on Current Line"
},
{
"command": "dotenvx.decryptSecretOnLine",
"category": "Dotenvx",
"title": "Decrypt Secret on Current Line"
},
{
"command": "dotenvx.encryptSecretOnLine",
"category": "Dotenvx",
"title": "Encrypt Secret on Current Line"
}
],
"resourceLabelFormatters": [
{
"scheme": "dotenvx",
"authority": "*",
"formatting": {
"label": "${path} (decrypted)",
"separator": "/",
"workspaceSuffix": "Dotenvx"
}
}
],
"languages": [
{
"id": "dotenv",
"aliases": [
".env",
"env",
"environment variables",
"secret",
"vault",
"encrypt",
"password",
"api",
"key",
"dotenvx"
],
"filenames": [
".env"
],
"filenamePatterns": [
".env.*"
],
"configuration": "./src/syntax/language-configuration.json"
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "npm run type:check && node scripts/build.mjs",
"type:check": "tsc --noEmit -p ./",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node scripts/build.mjs --watch",
"watch:tsc": "tsc --noEmit -w -p ./",
"package": "npm run type:check && node scripts/build.mjs --production",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "vscode-test",
"vsix": "vsce package",
"pub": "vsce publish",
"pre:vsix": "vsce package --pre-release",
"pre:pub": "vsce publish --pre-release",
"prepare": "husky",
"format": "prettier --write ."
},
"devDependencies": {
"@types/diff": "^5.2.1",
"@types/mocha": "^10.0.7",
"@types/node": "20.x",
"@types/vscode": "^1.90.0",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.11.0",
"@vscode/test-cli": "^0.0.9",
"@vscode/test-electron": "^2.4.0",
"@vscode/vsce": "^2.29.0",
"esbuild": "^0.23.0",
"eslint": "^8.57.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
"npm-run-all": "^4.1.5",
"prettier": "^3.3.2",
"typescript": "^5.4.5"
},
"dependencies": {
"@dotenvx/dotenvx": "^1.5.0",
"find-up": "^7.0.0"
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"prettier --write"
],
"*.{mjs,md,json,yml}": "prettier --write"
}
}