-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
185 lines (185 loc) · 5.14 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
{
"name": "witch-love-vscode",
"displayName": "Witch Love",
"publisher": "Witch Love",
"icon": "img/icon.png",
"description": "An extension developed by Witch Love to assist the translating process.",
"repository": {
"url": "https://github.com/Witch-Love/witchlove-vscode"
},
"license": "MIT",
"version": "0.4.0",
"engines": {
"vscode": "^1.81.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "witchLove.listen",
"title": "Witch Love: Listen current line's voice"
},
{
"command": "witchLove.translate",
"title": "Witch Love: Translate selected text(s) with DeepL"
}
],
"languages": [
{
"id": "story",
"aliases": [
"Story"
],
"extensions": [
".story"
],
"configuration": "./language/story-configuration.json"
},
{
"id": "umiscript",
"aliases": [
"Umineko Script"
],
"extensions": [
".umiscript"
],
"configuration": "./language/umiscript-configuration.json"
}
],
"grammars": [
{
"language": "story",
"scopeName": "source.story",
"path": "./language/story.tmLanguage.json"
},
{
"language": "umiscript",
"scopeName": "source.umiscript",
"path": "./language/umiscript.tmLanguage.json"
}
],
"keybindings": [
{
"command": "witchLove.listen",
"key": "alt+q"
},
{
"command": "witchLove.translate",
"key": "alt+a"
}
],
"configuration": [
{
"title": "Witch Love",
"properties": {
"witchLove.hoverWidth": {
"type": "integer",
"markdownDescription": "Hovering over the first X character at the beginning of the line shows the character name speaking on that line `(default: 4)`",
"minimum": 0,
"maximum": 100,
"default": 4
},
"witchLove.lineColorOpacity": {
"type": "integer",
"markdownDescription": "Sets the background color intensity for character lines. 0: off, 255: full `(default: 0)`",
"minimum": 0,
"maximum": 255,
"default": 0
}
}
},
{
"title": "Line Listening",
"properties": {
"witchLove.lineListening.higurashiDirectories": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "Directories of __*07th-modded*__ Higurashi Hou folders. **Required for the line listening** \nPress `Alt+Q` to listen current line. \n\nExample: `E:/SteamLibrary/steamapps/common/Higurashi When They Cry`"
},
"witchLove.lineListening.uminekoDirectory": {
"type": "string",
"markdownDescription": "Directory of Umineko Project. **Required for the line listening** \nPress `Alt+Q` to listen current line. \n\nExample: `E:\\Files\\UminekoProject`",
"default": ""
},
"witchLove.lineListening.volume": {
"type": "integer",
"markdownDescription": "Line listening volume `(default: 5)`",
"minimum": 1,
"maximum": 100,
"default": 5
}
}
},
{
"title": "DeepL",
"properties": {
"witchLove.deepl.deeplKey": {
"type": "string",
"markdownDescription": "Your **DeepL API Key** for quick translation through Visual Studio Code. [How to get?](https://www.deepl.com/pro-api) \n\nAfter selecting text(s), press `Alt+A` to translate. Translated text will be copied to clipboard.",
"default": ""
},
"witchLove.deepl.translateNotification": {
"type": "string",
"markdownDescription": "After translation, the translated text is copied to the clipboard. Would you like to receive an additional notification that contains the translated text?",
"default": "No",
"enum": [
"No",
"Yes"
]
}
}
}
]
},
"scripts": {
"version-patch": "npm version patch --no-git-tag-version",
"version-minor": "npm version minor --no-git-tag-version",
"version-major": "npm version major --no-git-tag-version",
"minify": "modclean",
"package": "vsce package",
"vscode:prepublish": "npm run esbuild-base -- --minify",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"test-compile": "tsc -p ./"
},
"devDependencies": {
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/node-fetch": "^2.6.4",
"@types/random-seed": "^0.3.3",
"@types/vscode": "^1.81.0",
"@typescript-eslint/eslint-plugin": "^6.4.1",
"@typescript-eslint/parser": "^6.4.1",
"@vscode/test-electron": "^2.3.4",
"@vscode/vsce": "^2.15.0",
"esbuild": "^0.19.2",
"eslint": "^8.47.0",
"glob": "^10.3.3",
"mocha": "^10.2.0",
"typescript": "^5.1.6"
},
"dependencies": {
"@types/copy-paste": "^1.1.33",
"compare-versions": "^6.1.0",
"copy-paste": "^1.5.3",
"deepl-node": "^1.11.0",
"jimp": "^0.22.10",
"modclean": "^3.0.0-beta.1",
"node-fetch": "^2.7.0",
"random-seed": "^0.3.0"
}
}