-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
150 lines (150 loc) · 4.46 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
{
"name": "kanban-bar",
"displayName": "状态栏看板",
"description": "一个大杂烩看板",
"version": "0.2.5",
"engines": {
"vscode": "^1.70.0"
},
"publisher": "Satrong",
"categories": [
"Other"
],
"main": "./dist/extension.js",
"repository": {
"type": "git",
"url": "https://github.com/satrong/kanban-bar.git"
},
"activationEvents": [
"onStartupFinished"
],
"contributes": {
"configuration": {
"title": "状态栏看板",
"properties": {
"kanban-bar.interval": {
"type": "number",
"default": 7000,
"description": "数据更新时间间隔,单位 ms,默认 `7000` 毫秒。最小值 `5000`"
},
"kanban-bar.stocks": {
"type": "array",
"default": [],
"description": "股票代码列表,建议不要超过4个"
},
"kanban-bar.stock-map": {
"type": "object",
"description": "股票代码映射简称,如`{ \"sz300712\": \"YF\" }`"
},
"kanban-bar.stock-tpl": {
"type": "string",
"default": "{price} {change} {percent}",
"description": "状态栏模板,可用占位符: 最新价`{price}`, 涨跌幅金额`{change}`, 涨跌百分比`{percent}`"
},
"kanban-bar.stock-separator": {
"type": "string",
"default": "$(debug-stackframe-dot)",
"description": "股票代码之间的分隔符"
},
"kanban-bar.gitlab-merge-tpl": {
"type": "string",
"default": "$(merge) {count}",
"description": "GitLab 合并数量显示模板,占位符:数量`{count}`"
},
"kanban-bar.gitlab-merge": {
"type": "array",
"default": [],
"description": "GitLab 配置",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "GitLab 服务器的 URL"
},
"id": {
"type": "string",
"description": "GitLab 项目的 ID 或 使用 `namespace/project` 格式的完整路径"
},
"token": {
"type": "string",
"description": "访问 GitLab API 所需的访问令牌"
}
},
"required": [
"url",
"id",
"token"
]
}
},
"kanban-bar.zentao-tpl": {
"type": "string",
"default": "$(tasklist) {wait} / {doing}",
"description": "禅道 问题数量显示模板,占位符:未开始`{wait}`, 进行中`{doing}`"
},
"kanban-bar.zentao-url": {
"type": "string",
"default": "",
"description": "禅道服务器的地址,如 `http://zentao.com`"
},
"kanban-bar.zentao": {
"type": "object",
"default": null,
"description": "禅道配置",
"properties": {
"account": {
"type": "string",
"description": "禅道账号"
},
"password": {
"type": "string",
"description": "禅道密码"
}
}
}
}
},
"commands": [
{
"command": "kanban-bar.open-gitlab",
"title": "打开GitLab链接"
},
{
"command": "kanban-bar.open-zentao",
"title": "打开禅道链接"
}
]
},
"scripts": {
"build": "npm run package && npx @vscode/vsce package -o ./",
"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": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "~16.11.0",
"@types/vscode": "^1.70.0",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"@vscode/test-electron": "^2.3.2",
"eslint": "^8.41.0",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"ts-loader": "^9.4.3",
"typescript": "^5.1.3",
"webpack": "^5.85.0",
"webpack-cli": "^5.1.1"
},
"dependencies": {
"axios": "^1.4.0",
"iconv-lite": "^0.6.3"
}
}