-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
342 lines (342 loc) · 13.8 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
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
{
"name": "file-tree-to-text-generator",
"displayName": "File Tree to Text Generator",
"description": "Print the selected directory within it's files and subdirectories as text (multiple formats available)",
"version": "1.4.0",
"publisher": "d-koppenhagen",
"homepage": "https://github.com/d-koppenhagen/vscode-file-tree-to-text-generator",
"bugs": {
"url": "https://github.com/d-koppenhagen/vscode-file-tree-to-text-generator/issues",
"email": "mail@d-koppenhagen.de"
},
"repository": {
"type": "git",
"url": "https://github.com/d-koppenhagen/vscode-file-tree-to-text-generator.git"
},
"author": {
"name": "Danny Koppenhagen",
"email": "mail@d-koppenhagen.de",
"url": "http://d-koppenhagen.de"
},
"license": "SEE LICENSE IN LICENSE",
"engines": {
"vscode": "^1.48.0"
},
"icon": "images/icon.png",
"galleryBanner": {
"color": "beige",
"theme": "light"
},
"categories": [
"Other"
],
"keywords": [
"markdown",
"ascii",
"asciitree",
"latex",
"tex",
"dirtree",
"tree",
"filetree",
"dirtree"
],
"activationEvents": [
"*"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "extension.fileTreeToText",
"title": "Generate Filetree..."
}
],
"menus": {
"explorer/context": [
{
"when": "explorerResourceIsFolder",
"command": "extension.fileTreeToText",
"group": "cmdGroup@1"
}
]
},
"configuration": {
"id": "tree-generator",
"type": "object",
"title": "File Tree To Text Generator",
"properties": {
"tree-generator.defaultDepth": {
"type": "integer",
"default": 5,
"title": "Depth",
"description": "Set the default max depth of the generated tree"
},
"tree-generator.maxFilesInSubtree": {
"type": "integer",
"default": 0,
"title": "Max. files per in tree / subtree",
"description": "Set a max. value for the amount of files in a tree or subtree. Set this to 0 equals no limitation"
},
"tree-generator.maxDirsInSubtree": {
"type": "integer",
"default": 0,
"title": "Max. directories per in tree / subtree",
"description": "Set a max. value for the amount of directories in a tree or subtree. Set this to 0 equals no limitation"
},
"tree-generator.exclude": {
"type": "object",
"default": {
"**/some-example/**": false
},
"description": "Configure glob patterns of file paths to exclude from the result. Patterns must match on absolute paths (i.e. prefix with ** or the full path to match properly). Changing this setting requires a restart."
},
"tree-generator.defaultTarget": {
"type": "string",
"enum": [
"ASCII",
"LaTeX",
"Markdown"
],
"default": "ASCII",
"title": "Default Target",
"description": "Set your default output target. It is just respected if prompt is disabled."
},
"tree-generator.prompt": {
"type": "boolean",
"default": true,
"title": "Prompt",
"description": "Choose if the user will be promt or if the default settings will be applied"
},
"tree-generator.dirsOnly": {
"type": "boolean",
"default": false,
"title": "Only directories",
"description": "Define if only directories will be part of the result"
},
"tree-generator.targets": {
"type": "array",
"title": "Customize target formats",
"description": "Configure the output targets and adjust the configuration for tree items",
"items": {
"type": "object",
"title": "Format",
"description": "Define the format for the generated tree",
"properties": {
"picker": {
"type": "object",
"title": "Prompt configuration",
"description": "Configure the prompt for the user",
"properties": {
"label": {
"type": "string",
"title": "Prompt label for the target format",
"description": "The short label for the target format"
},
"description": {
"type": "string",
"title": "Prompt description for the target format",
"description": "A description for the target format that will be displayed to the user"
}
}
},
"beforeTree": {
"type": "string",
"title": "Text before the tree",
"description": "Define a text (HTML) which will be added before the tree items"
},
"afterTree": {
"type": "string",
"title": "Text after the tree",
"description": "Define a text (HTML) which will be added after the tree items"
},
"indent": {
"type": "string",
"title": "Indentation",
"description": "Set a string for indent per level of the tree"
},
"indentParentDirIsLast": {
"type": "string",
"title": "Indentation for parent elements without next items",
"description": "Set a string for indent which is used prefered if set and if the parent element is the last in it's subtree (not further siblings)"
},
"masks": {
"type": "object",
"title": "Masks configuration",
"description": "Configure the masks for tree items",
"properties": {
"root": {
"type": "string",
"title": "The mask for the first (root) item",
"description": "Use the placeholders #0, #1 amd #2 which will be replaces as with the following content:\r\n #0 : Insert the tree level number\r\n #1 : Insert the name of the file or directory\r\n #2 : Insert the relative path to the file or directory starting from the selected directory\r\n Example: '#0: [#1](.#2)' becomes '1: [file1.txt](./path/to/file/file1.txt)'"
},
"file": {
"type": "object",
"title": "Masks for file tree items",
"description": "Configure the masks for file tree items",
"properties": {
"default": {
"type": "string",
"title": "Set the default mask for files in the tree or subtree",
"description": "Use the placeholders #0, #1 amd #2 which will be replaces as with the following content:\r\n #0 : Insert the tree level number\r\n #1 : Insert the name of the file or directory\r\n #2 : Insert the relative path to the file or directory starting from the selected directory\r\n Example: '#0: [#1](.#2)' becomes '1: [file1.txt](./path/to/file/file1.txt)'"
},
"first": {
"type": "string",
"title": "Set the mask for the first file in the tree or subtree",
"description": "Use the placeholders #0, #1 amd #2 which will be replaces as with the following content:\r\n #0 : Insert the tree level number\r\n #1 : Insert the name of the file or directory\r\n #2 : Insert the relative path to the file or directory starting from the selected directory\r\n Example: '#0: [#1](.#2)' becomes '1: [file1.txt](./path/to/file/file1.txt)'"
},
"last": {
"type": "string",
"title": "Set the mask for the last file in the tree or subtree",
"description": "Use the placeholders #0, #1 amd #2 which will be replaces as with the following content:\r\n #0 : Insert the tree level number\r\n #1 : Insert the name of the file or directory\r\n #2 : Insert the relative path to the file or directory starting from the selected directory\r\n Example: '#0: [#1](.#2)' becomes '1: [file1.txt](./path/to/file/file1.txt)'"
}
}
},
"directory": {
"type": "object",
"title": "Masks for directory tree items",
"description": "Configure the masks for directory tree items",
"properties": {
"default": {
"type": "string",
"title": "Set the default mask for directories in the tree or subtree",
"description": "Use the placeholders #0, #1 amd #2 which will be replaces as with the following content:\r\n #0 : Insert the tree level number\r\n #1 : Insert the name of the file or directory\r\n #2 : Insert the relative path to the file or directory starting from the selected directory\r\n Example: '#0: [#1](.#2)' becomes '1: [file1.txt](./path/to/file/file1.txt)'"
},
"first": {
"type": "string",
"title": "Set the mask for the first directory in the tree or subtree",
"description": "Use the placeholders #0, #1 amd #2 which will be replaces as with the following content:\r\n #0 : Insert the tree level number\r\n #1 : Insert the name of the file or directory\r\n #2 : Insert the relative path to the file or directory starting from the selected directory\r\n Example: '#0: [#1](.#2)' becomes '1: [file1.txt](./path/to/file/file1.txt)'"
},
"last": {
"type": "string",
"title": "Set the mask for the last directory in the tree or subtree",
"description": "Use the placeholders #0, #1 amd #2 which will be replaces as with the following content:\r\n #0 : Insert the tree level number\r\n #1 : Insert the name of the file or directory\r\n #2 : Insert the relative path to the file or directory starting from the selected directory\r\n Example: '#0: [#1](.#2)' becomes '1: [file1.txt](./path/to/file/file1.txt)'"
}
}
}
}
}
}
},
"default": [
{
"picker": {
"label": "ASCII",
"description": "Convert to ASCII Tree"
},
"beforeTree": "",
"afterTree": "",
"indent": "┃ ",
"indentParentDirIsLast": " ",
"masks": {
"root": "#1/",
"file": {
"default": "┣ #1",
"last": "┗ #1"
},
"directory": {
"default": "┣ #1/",
"last": "┗ #1/"
}
}
},
{
"picker": {
"label": "LaTeX",
"description": "Convert to LaTeX (DirTree)"
},
"beforeTree": "\\dirtree{%<br/>",
"afterTree": "}",
"indent": "",
"masks": {
"root": " . #0 #1/ .",
"file": {
"default": " . #0 #1 ."
},
"directory": {
"default": " . #0 #1/ ."
}
},
"levelOffset": 1
},
{
"picker": {
"label": "Markdown",
"description": "Convert to Markdown"
},
"beforeTree": "",
"afterTree": "<br/>",
"indent": " ",
"masks": {
"root": "# #1<br/>",
"file": {
"default": "* [#1](.#2)"
},
"directory": {
"default": "* [#1/](.#2)"
}
}
}
]
}
}
}
},
"scripts": {
"vscode:prepublish": "webpack --mode production",
"webpack": "webpack --mode development",
"webpack:dev": "webpack --mode development --watch",
"test-compile": "tsc -p ./",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"test": "node ./out/test/runTest.js",
"release": "standard-version",
"publish": "vsce package && vsce publish"
},
"devDependencies": {
"@commitlint/cli": "^9.1.2",
"@commitlint/config-conventional": "^9.1.2",
"@types/fs-extra": "^9.0.1",
"@types/glob": "^7.1.3",
"@types/micromatch": "^4.0.1",
"@types/mocha": "^8.0.3",
"@types/node": "^14.6.0",
"@types/vscode": "^1.48.0",
"@typescript-eslint/eslint-plugin": "^3.9.1",
"@typescript-eslint/parser": "^3.9.1",
"commitizen": "^4.1.2",
"copy-webpack-plugin": "^6.0.3",
"cz-conventional-changelog": "^3.2.0",
"eslint": "^7.7.0",
"eslint-config-prettier": "^6.11.0",
"glob": "^7.1.6",
"husky": "^4.2.5",
"mocha": "^8.1.1",
"prettier": "^2.0.5",
"pretty-quick": "^2.0.1",
"standard-version": "^9.0.0",
"ts-loader": "^8.0.2",
"typescript": "^3.9.7",
"vsce": "latest",
"vscode-test": "^1.4.0",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12"
},
"dependencies": {
"fs-extra": "^9.0.1",
"micromatch": "^4.0.2"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}