-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpackage.json
127 lines (127 loc) · 3.01 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
{
"name": "fanyi",
"displayName": "fanyi",
"description": "翻译,划词翻译,滑词翻译,有道翻译,translation,translate",
"version": "1.0.11",
"license": "MIT",
"publisher": "wangrongding",
"icon": "icon.png",
"repository": {
"type": "git",
"url": "https://github.com/wangrongding/fanyi"
},
"main": "./dist/extension.js",
"scripts": {
"vscode:prepublish": "yarn run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "yarn run compile-tests && yarn run compile && yarn run lint",
"test": "node ./out/test/runTest.js",
"lint": "eslint src --ext ts --fix",
"cz": "cz",
"prepare": "husky install"
},
"engines": {
"vscode": "^1.63.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"contributes": {
"commands": [
{
"command": "fanyi-disable",
"title": "关闭划词翻译"
},
{
"command": "fanyi-enable",
"title": "开启划词翻译"
},
{
"command": "editorCommand",
"title": "文本编辑器命令"
},
{
"command": "markdown.showPreview",
"title": "预览markdown"
}
],
"menus": {
"editor/context": [
{
"when": "editorFocus",
"command": "editorCommand",
"group": "navigation"
},
{
"when": "resourceLangId == markdown",
"command": "markdown.showPreview",
"alt": "markdown.showPreviewToSide",
"group": "navigation"
}
]
}
},
"tasks": [
{
"type": "npm",
"script": "build",
"group": "build",
"problemMatcher": [
"$ts-webpack",
"$tslint-webpack"
]
},
{
"type": "npm",
"script": "watch",
"group": "build",
"isBackground": true,
"problemMatcher": [
"$ts-webpack-watch",
"$tslint-webpack-watch"
]
}
],
"lint-staged": {
"*.{ts,js,vue}": [
"eslint",
"echo '冲呀~'"
]
},
"devDependencies": {
"@commitlint/cli": "^16.1.0",
"@commitlint/config-conventional": "^16.0.0",
"@types/glob": "^7.2.0",
"@types/mocha": "^9.0.0",
"@types/node": "14.x",
"@types/vscode": "^1.63.0",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"@vscode/test-electron": "^2.0.3",
"commitizen": "^4.2.4",
"commitlint-config-cz": "^0.13.3",
"cz-conventional-changelog": "3.3.0",
"cz-customizable": "^6.3.0",
"eslint": "^8.6.0",
"glob": "^7.2.0",
"husky": "^9.0.11",
"lint-staged": "^12.3.3",
"mocha": "^9.1.3",
"ts-loader": "^9.2.6",
"typescript": "^4.5.4",
"webpack": "^5.66.0",
"webpack-cli": "^4.9.1"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-customizable"
}
}
}