-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
276 lines (276 loc) · 7.36 KB
/
package.json
File metadata and controls
276 lines (276 loc) · 7.36 KB
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
{
"name": "workspace-wiki",
"displayName": "Workspace Wiki",
"description": "Workspace Wiki",
"version": "1.1.0",
"publisher": "alexjsully",
"engines": {
"vscode": "^1.99.3"
},
"homepage": "https://github.com/AlexJSully/workspace-wiki",
"categories": [
"Other"
],
"contributors": [
{
"name": "Alexander Sullivan",
"email": "alexjsully.connect@outlook.com",
"url": "https://alexjsully.me/"
}
],
"activationEvents": [],
"main": "./dist/extension.js",
"icon": "media/icon.png",
"galleryBanner": {
"color": "#2B5797",
"theme": "dark"
},
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "workspaceWiki",
"title": "Workspace Wiki",
"icon": "media/icon.svg"
}
]
},
"commands": [
{
"command": "workspace-wiki.openPreview",
"title": "Open in Preview",
"icon": "$(open-preview)"
},
{
"command": "workspace-wiki.openEditor",
"title": "Edit",
"icon": "$(edit)"
},
{
"command": "workspace-wiki.refresh",
"title": "Refresh",
"icon": "$(refresh)"
}
],
"views": {
"explorer": [
{
"id": "workspaceWiki",
"name": "Workspace Wiki",
"icon": "media/icon.svg"
}
]
},
"menus": {
"view/item/context": [
{
"command": "workspace-wiki.openPreview",
"when": "view == workspaceWiki && viewItem == file",
"group": "navigation@1"
},
{
"command": "workspace-wiki.openEditor",
"when": "view == workspaceWiki && viewItem == file",
"group": "navigation@2"
}
],
"view/item/inline": [
{
"command": "workspace-wiki.openPreview",
"when": "view == workspaceWiki && viewItem == file",
"group": "inline@1"
},
{
"command": "workspace-wiki.openEditor",
"when": "view == workspaceWiki && viewItem == file",
"group": "inline@2"
}
],
"view/title": [
{
"command": "workspace-wiki.refresh",
"when": "view == workspaceWiki",
"group": "navigation"
}
]
},
"configuration": {
"title": "Workspace Wiki",
"properties": {
"workspaceWiki.supportedExtensions": {
"type": "array",
"default": [
"md",
"markdown",
"txt"
],
"description": "List of file extensions to include in the workspace wiki",
"items": {
"type": "string"
}
},
"workspaceWiki.defaultOpenMode": {
"type": "string",
"enum": [
"preview",
"editor"
],
"default": "preview",
"description": "Default mode for opening files (preview or editor)"
},
"workspaceWiki.openWith": {
"type": "object",
"default": {
"md": "markdown.showPreview",
"markdown": "markdown.showPreview",
"txt": "vscode.open"
},
"description": "Commands to use for opening different file types",
"patternProperties": {
".*": {
"type": "string",
"description": "Command to execute for this file extension"
}
}
},
"workspaceWiki.directorySort": {
"type": "string",
"enum": [
"files-first",
"folders-first",
"alphabetical"
],
"default": "files-first",
"description": "How to sort files and folders within directories"
},
"workspaceWiki.excludeGlobs": {
"type": "array",
"default": [
"**/node_modules/**",
"**/.git/**"
],
"description": "Glob patterns for files to exclude from the workspace wiki",
"items": {
"type": "string"
}
},
"workspaceWiki.maxSearchDepth": {
"type": "number",
"default": 10,
"description": "Maximum directory depth to search for documentation files"
},
"workspaceWiki.acronymCasing": {
"type": "array",
"default": [
"HTML",
"CSS",
"JS",
"TS",
"API",
"URL",
"JSON",
"XML",
"HTTP",
"HTTPS",
"REST",
"SQL",
"CSV",
"FHIR"
],
"description": "List of acronyms to preserve proper casing in file titles (e.g., 'html' becomes 'HTML')",
"items": {
"type": "string"
}
},
"workspaceWiki.showIgnoredFiles": {
"type": "boolean",
"default": false,
"description": "Show files and folders that are listed in .gitignore and excludeGlobs in the Workspace Wiki tree. Default is false (ignored/hidden)."
},
"workspaceWiki.showHiddenFiles": {
"type": "boolean",
"default": false,
"description": "Show hidden files and folders (those starting with a dot, e.g. .github, .env) in the Workspace Wiki tree, unless excluded by .gitignore or excludeGlobs. Default is false (hidden files are not shown)."
},
"workspaceWiki.autoReveal": {
"type": "boolean",
"default": true,
"description": "Automatically reveal the active file in the Workspace Wiki tree when the editor changes."
},
"workspaceWiki.autoRevealDelay": {
"type": "number",
"default": 500,
"description": "Delay in milliseconds before revealing the active file in the tree. Set to 0 for real-time reveal."
}
}
}
},
"scripts": {
"audit:fix": "npm i && npm audit fix",
"check-types": "tsc --noEmit",
"compile": "npm run check-types && node esbuild.js",
"compile:tests": "rm -rf out && npm run compile && mkdir -p out/test/suite && npx tsc src/extension.e2e.test.ts --outDir out --module commonjs --target ES2020 --moduleResolution node --esModuleInterop true --types vscode,node,mocha && mv out/extension.e2e.test.js out/test/suite/",
"lint": "eslint src",
"lint:markdown": "markdownlint \"**/*.md\"",
"package": "node esbuild.js --production",
"package:vsix": "npm run compile && vsce package",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"prettier": "prettier --write ./",
"prettier:check": "prettier --check ./",
"regen-package-lock": "rm -rf node_modules package-lock.json && npm run audit:fix",
"test:extension": "npm run compile:tests && vscode-test",
"test:jest": "jest src/",
"test:jest:coverage": "jest --coverage src/",
"validate": "npm run compile && npm run prettier && npm run lint && npm run lint:markdown && npm run test:jest && npm run test:extension",
"vscode:prepublish": "npm run package",
"watch": "npm-run-all -p watch:*",
"watch-tests": "tsc -p . -w --outDir out",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json"
},
"dependencies": {
"gray-matter": "^4.0.3"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.9.1",
"@trivago/prettier-plugin-sort-imports": "^6.0.2",
"@types/jest": "^30.0.0",
"@types/mocha": "^10.0.10",
"@types/node": "^25.5.0",
"@types/vscode": "^1.99.3",
"@typescript-eslint/eslint-plugin": "^8.57.2",
"@typescript-eslint/parser": "^8.57.2",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.7.1",
"esbuild": "^0.27.4",
"eslint": "^10.1.0",
"jest": "^30.3.0",
"jest-environment-jsdom": "^30.3.0",
"markdownlint-cli": "^0.48.0",
"mocha": "^11.7.5",
"npm-run-all": "^4.1.5",
"prettier": "^3.8.1",
"ts-jest": "^29.4.6",
"typescript": "^5.9.3"
},
"bugs": "https://github.com/AlexJSully/workspace-wiki/issues",
"repository": {
"type": "git",
"url": "https://github.com/AlexJSully/workspace-wiki.git"
},
"keywords": [
"documentation",
"wiki",
"markdown",
"notes",
"tree view",
"workspace",
"preview",
"editor",
"readme",
"index",
"local",
"vscode-extension"
]
}