-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
409 lines (409 loc) · 13.3 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
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
{
"name": "noveler",
"displayName": "Noveler",
"description": "一个在 vscode 上辅助码中文小说的插件",
"version": "1.4.10",
"author": "zerozawa",
"publisher": "zerozawa",
"license": "GPL-3.0",
"scripts": {
"vscode:prepublish": "./scripts/rm-out && npm run compile-prod",
"prepare": "husky install",
"package": "vsce package --no-dependencies",
"publish": "vsce publish --no-dependencies -p",
"compile-prod": "concurrently npm:compile-prod:*",
"compile-prod:webview": "cd ./packages/webview && npm run compile-prod",
"compile-prod:extension": "cd ./packages/extension && npm run compile-prod",
"compile": "concurrently npm:compile:*",
"compile:webview": "cd ./packages/webview && npm run compile",
"compile:extension": "cd ./packages/extension && npm run compile",
"watch": "concurrently npm:watch:*",
"watch:webview": "cd ./packages/webview && npm run watch",
"watch:extension": "cd ./packages/extension && npm run watch",
"pretest": "npm run compile && npm run lint",
"test": "node ./out/test/runTest.js",
"lint": "eslint src --ext ts",
"prettier": "prettier --write \"**/*.{ts,tsx,js,jsx,json,css,scss}\"",
"lint-staged": "lint-staged",
"commit": "cz",
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"devDependencies": {
"@commitlint/cli": "^17.4.2",
"@commitlint/config-conventional": "^17.4.2",
"@faker-js/faker": "^7.6.0",
"@types/node": "^16.11.7",
"@types/prettier": "^2.7.1",
"@types/vscode": "^1.77.0",
"@typescript-eslint/eslint-plugin": "^5.30.0",
"@typescript-eslint/parser": "^5.30.0",
"@vscode/vsce": "^2.18.0",
"commitizen": "^4.3.0",
"concurrently": "^7.6.0",
"conventional-changelog-cli": "^2.2.2",
"css-loader": "^6.7.1",
"css-minimizer-webpack-plugin": "^5.0.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.13.0",
"husky": "^8.0.3",
"lint-staged": "^13.1.1",
"prettier": "^2.7.1",
"speed-measure-webpack-plugin": "^1.5.0",
"style-loader": "^3.3.1",
"ts-loader": "^9.4.1",
"typescript": "^4.9.5",
"uglifyjs-webpack-plugin": "^2.2.0",
"webpack": "^5.74.0",
"webpack-bundle-analyzer": "^4.8.0",
"webpack-cli": "^4.10.0"
},
"engines": {
"vscode": "^1.77.0"
},
"repository": {
"type": "git",
"url": "https://github.com/lz37/noveler"
},
"extensionKind": [
"workspace"
],
"qna": "marketplace",
"categories": [
"Other"
],
"keywords": [
"novel",
"小说",
"小説",
"plaintext",
"markdown"
],
"activationEvents": [
"onLanguage:plaintext",
"onLanguage:markdown"
],
"main": "./out/extension.js",
"contributes": {
"viewsContainers": {
"panel": [
{
"id": "noveler-panel",
"title": "Noveler",
"icon": "$(notebook-edit)"
}
]
},
"views": {
"noveler-panel": [
{
"type": "webview",
"id": "noveler-outline",
"name": "大纲",
"icon": "$(notebook-edit)"
}
]
},
"commands": [
{
"command": "noveler.preview",
"title": "preview",
"category": "noveler"
},
{
"command": "noveler.reloadCSV",
"title": "reload CSV",
"category": "noveler",
"shortTitle": "刷新 CSV 配置文件"
},
{
"command": "noveler.exportTXT",
"title": "export TXT",
"category": "noveler",
"shortTitle": "导出txt到单独文件"
}
],
"keybindings": [
{
"command": "noveler.preview",
"key": "alt+\\",
"mac": "alt+\\",
"when": "editorTextFocus && editorLangId == 'plaintext'"
},
{
"command": "noveler.reloadCSV",
"key": "alt+f",
"mac": "alt+f",
"when": "editorTextFocus"
},
{
"command": "noveler.exportTXT",
"key": "ctrl+alt+e",
"mac": "ctrl+alt+e",
"when": "editorTextFocus"
}
],
"colors": [
{
"id": "number",
"description": "数字的颜色",
"defaults": {
"dark": "#6cd8e6",
"light": "#3c8dbc"
}
}
],
"configuration": {
"title": "Noveler",
"properties": {
"noveler.showApplyRecommendPlaintextConf": {
"type": "boolean",
"default": true,
"items": {
"type": "boolean"
},
"markdownDescription": "是否显示 *应用推荐的 `plaintext` 配置* 的提示",
"scope": "resource"
},
"noveler.autoIndent": {
"type": "boolean",
"default": true,
"markdownDescription": "是否在回车后自动插入缩进、空行",
"scope": "resource"
},
"noveler.autoIndentLines": {
"type": "number",
"default": 0,
"markdownDescription": "回车后自动插入的行数, `noveler.autoIndent` 关闭时,此功能也会作为格式化属性读取",
"scope": "resource"
},
"noveler.autoIndentSpaces": {
"type": "number",
"default": 4,
"markdownDescription": "回车后自动插入的空格数, `noveler.autoIndent` 关闭时,此功能也会作为格式化属性读取",
"scope": "resource"
},
"noveler.usePangu": {
"type": "boolean",
"default": true,
"markdownDescription": "格式化时是否中在英文之间添加空格(不再使用第三方盘古包,改为插件内置实现)",
"scope": "resource"
},
"noveler.previewFontSize": {
"type": "number",
"default": 16,
"markdownDescription": "预览窗口的字体大小",
"scope": "resource"
},
"noveler.previewIndentionLength": {
"type": "number",
"default": 4,
"markdownDescription": "预览窗口的缩进长度",
"scope": "resource"
},
"noveler.previewSpaceLines": {
"type": "number",
"default": 1,
"markdownDescription": "预览窗口的段落间距",
"scope": "resource"
},
"noveler.statusShow": {
"type": "boolean",
"default": true,
"markdownDescription": "是否显示状态栏",
"scope": "resource"
},
"noveler.statusIncludingSpace": {
"type": "boolean",
"default": false,
"markdownDescription": "状态栏字数统计是否包含空格",
"scope": "resource"
},
"noveler.statusWordReset": {
"type": "boolean",
"default": false,
"markdownDescription": "切换文件时是否重置字数统计",
"scope": "resource"
},
"noveler.statusTimeUnit": {
"type": "number",
"default": 10,
"markdownDescription": "状态栏计数器的时间单位",
"scope": "resource"
},
"noveler.statusItems": {
"type": "array",
"markdownDescription": "状态栏显示的项目",
"items": {
"type": "string",
"enum": [
"Speed",
"Time",
"InputWordCount",
"TextWordCount"
],
"minItems": 1,
"uniqueItems": true
},
"default": [
"Speed",
"Time",
"InputWordCount",
"TextWordCount"
],
"scope": "resource"
},
"noveler.customHighlight": {
"type": "object",
"markdownDescription": "自定义高亮,键为正则表达式,值为渲染选项,值的结构参照 [DecorationRenderOptions](https://code.visualstudio.com/api/references/vscode-api#DecorationRenderOptions)",
"scope": "resource"
},
"noveler.completionChar": {
"type": "string",
"default": "@",
"markdownDescription": "补全时的触发字符, *注*:请尽量使用英文标点作为触发字符, 默认为@",
"scope": "resource"
},
"noveler.outlinesDir": {
"type": "string",
"default": ".noveler/outlines",
"markdownDescription": "大纲文本保存的目录,不支持绝对路径,请使用相对于文件夹的路径",
"scope": "resource"
},
"noveler.confCSVFiles": {
"type": "array",
"markdownDescription": "高亮与补全的文件配置",
"scope": "resource",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string",
"markdownDescription": "配置文件的路径,可以是绝对路径,也可以是相对于根目录的路径(暂不支持工作区),支持文件路径与文件夹路径(若为文件夹,则将配置应用于其下所有.csv文件)"
},
"key": {
"type": "string",
"markdownDescription": "指定配置文件中的主键名",
"default": "name"
},
"hoverKey": {
"type": "string",
"markdownDescription": "指定配置文件中的键名,用于鼠标悬停时显示的内容"
},
"decorationRenderOptions": {
"type": "object",
"markdownDescription": "高亮配置,根据配置高亮对应的主键名属性,结构参照 [DecorationRenderOptions](https://code.visualstudio.com/api/references/vscode-api#DecorationRenderOptions)"
},
"suggestPrefix": {
"type": "string",
"markdownDescription": "补全的前缀,若不为空,则补全时会在补全项前添加此前缀",
"default": ""
},
"suggestKind": {
"type": "string",
"enum": [
"Text",
"Method",
"Function",
"Constructor",
"Field",
"Variable",
"Class",
"Interface",
"Module",
"Property",
"Unit",
"Value",
"Enum",
"Keyword",
"Snippet",
"Color",
"Reference",
"File",
"Folder",
"EnumMember",
"Constant",
"Struct",
"Event",
"Operator",
"TypeParameter",
"User",
"Issue"
],
"markdownDescription": "补全的类型,,不同类型会有不同的图标"
}
}
}
},
"noveler.confTXTFiles": {
"type": "array",
"markdownDescription": "敏感词配置文件",
"scope": "resource",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string",
"markdownDescription": "配置文件的路径,可以是绝对路径,也可以是相对于根目录的路径(暂不支持工作区),支持文件路径与文件夹路径(若为文件夹,则将配置应用于其下所有.txt文件)"
},
"message": {
"type": "string",
"markdownDescription": "敏感词提示信息",
"default": "敏感词"
},
"diagnosticSeverity": {
"type": "string",
"enum": [
"Error",
"Hint",
"Information",
"Warning"
],
"markdownDescription": "敏感词提示信息的等级",
"default": "Error"
}
}
}
},
"noveler.exportOutPath": {
"type": "string",
"markdownDescription": "导出文本的路径,可以是绝对路径,也可以是相对于根目录的路径(暂不支持工作区)",
"default": "out/out.txt",
"scope": "resource"
},
"noveler.exportFilePath": {
"type": "array",
"markdownDescription": "要导出为txt的文本目录,支持通配符",
"minItems": 1,
"uniqueItems": true,
"default": [
"*.txt",
"*.text"
]
},
"noveler.exportFormat": {
"type": "string",
"markdownDescription": "导出文件格式(当前仅支持txt)",
"default": "txt",
"scope": "resource"
},
"noveler.exportEncoding": {
"type": "string",
"markdownDescription": "导出文件编码,默认utf-8",
"default": "utf-8",
"scope": "resource"
},
"noveler.typingRecord": {
"type": "boolean",
"default": false,
"markdownDescription": "是否开启输入记录(若开启将输入记录保存到.noveler/record) 默认关闭",
"scope": "resource"
}
}
}
}
}