forked from mqycn/huile8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
145 lines (145 loc) · 3.22 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
{
"name": "huile8",
"publisher": "mqycn",
"displayName": "会了吧",
"description": "打开源码可以自动分析所有包含的英语单词,并显示解释结果,先学单词再看代码。用了会了吧,统统都会啦!",
"version": "1.0.0",
"engines": {
"vscode": "^1.23.0"
},
"icon": "resources/icon.png",
"categories": [
"Other"
],
"activationEvents": [
"*"
],
"main": "./extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "huile8-explorer",
"title": "会了吧",
"icon": "resources/icon.png"
}
]
},
"views": {
"explorer": [
{
"id": "huile8-will-mastering-main",
"name": "陌生单词"
}
],
"huile8-explorer": [
{
"id": "huile8-will-mastering",
"name": "陌生单词"
},
{
"id": "huile8-mastered",
"name": "已掌握单词"
}
]
},
"commands": [
{
"command": "huile8.refresh",
"title": "重新刷新文件",
"icon": {
"light": "resources/light/refresh.svg",
"dark": "resources/dark/refresh.svg"
}
},
{
"command": "huile8.willMastering",
"title": "添加到 陌生单词",
"icon": {
"light": "resources/light/will-mastering.svg",
"dark": "resources/dark/will-mastering.svg"
}
},
{
"command": "huile8.didMastered",
"title": "添加到 已掌握单词",
"icon": {
"light": "resources/light/did-mastered.svg",
"dark": "resources/dark/did-mastered.svg"
}
},
{
"command": "huile8.read",
"title": "朗读"
},
{
"command": "huile8.text.selection",
"title": "分析选中文本中的单词"
}
],
"menus": {
"view/title": [
{
"command": "huile8.refresh",
"group": "navigation",
"when": "view =~ /huile8-will-mastering|huile8-mastered/"
}
],
"view/item/context": [
{
"command": "huile8.didMastered",
"when": "view == huile8-will-mastering && viewItem == word",
"group": "inline"
},
{
"command": "huile8.willMastering",
"when": "view == huile8-mastered && viewItem == word",
"group": "inline"
}
],
"editor/context": [
{
"when": "editorHasSelection",
"command": "huile8.text.selection",
"group": "navigation"
}
]
},
"configuration": [
{
"title": "会了吧",
"properties": {
"huile8.autoRefresh": {
"type": "boolean",
"default": true,
"description": "是否开启打开文件自动提取单词的功能"
}
}
}
]
},
"repository": {
"type": "git",
"url": "https://github.com/mqycn/huile8"
},
"scripts": {
"lint": "eslint .",
"dict.init": "git clone https://gitee.com/mqycn/huile8-ecdict.git ../huile8-ecdict",
"dict.init-github": "git clone https://github.com/mqycn/huile8-ecdict.git ../huile8-ecdict",
"dict.update": "cd ../huile8-ecdict && git pull && npm install && npm run make",
"publish": "vsce package",
"pretest": "npm run lint",
"test": "node ./test/runTest.js"
},
"devDependencies": {
"@types/vscode": "^1.23.0",
"@types/glob": "^7.1.3",
"@types/mocha": "^8.0.0",
"@types/node": "^14.0.27",
"eslint": "^7.6.0",
"glob": "^7.1.6",
"mocha": "^8.0.1",
"typescript": "^3.8.3",
"vscode-test": "^1.4.0"
}
}