-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
228 lines (228 loc) · 7.54 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
{
"name": "openjdk-devel",
"version": "2.0.3",
"displayName": "OpenJDK Development",
"description": "Support for OpenJDK developers",
"publisher": "magicus",
"author": {
"name": "magicus"
},
"license": "SEE LICENSE IN LICENSE.txt",
"keywords": [
"jdk",
"openjdk",
"github",
"jbs",
"development"
],
"categories": [
"Other"
],
"icon": "media/duke-logo.png",
"homepage": "https://github.com/magicus/vscode-openjdk-devel",
"repository": {
"type": "git",
"url": "https://github.com/magicus/vscode-openjdk-devel.git"
},
"bugs": {
"url": "https://github.com/magicus/vscode-openjdk-devel/issues"
},
"main": "./dist/extension.js",
"engines": {
"vscode": "^1.61.0"
},
"extensionKind": [
"ui",
"workspace"
],
"activationEvents": [
"onView:gitHubIntegration",
"onView:jbsIntegration",
"onCommand:openjdkDevel.gitHubIntegration.refresh",
"onCommand:openjdkDevel.setGithubToken",
"onCommand:openjdkDevel.setGithubUsername",
"onCommand:openjdkDevel.jbsIntegration.refresh",
"onCommand:openjdkDevel.setJbsToken",
"onCommand:openjdkDevel.setJbsUsername"
],
"contributes": {
"configuration": {
"title": "OpenJDK Development",
"properties": {
"openjdkDevel.github.username": {
"type": "string",
"default": "",
"description": "Your GitHub user name"
},
"openjdkDevel.github.apiToken": {
"type": "string",
"default": "",
"markdownDescription": "Your GitHub API access token. Create a new token [at GitHub](https://github.com/settings/tokens) with `notifications` scope, and paste it here."
},
"openjdkDevel.jbs.username": {
"type": "string",
"default": "",
"markdownDescription": "Your JBS user name. You can look it up [at your user profile](https://bugs.openjdk.org/secure/ViewProfile.jspa)."
},
"openjdkDevel.jbs.apiToken": {
"type": "string",
"default": "",
"markdownDescription": "Your JBS API access token. Create a new token [at JBS](https://bugs.openjdk.org/secure/ViewProfile.jspa?selectedTab=com.atlassian.pats.pats-plugin:jira-user-personal-access-tokens) and paste it here."
},
"openjdkDevel.jbs.filters": {
"type": "string",
"default": "",
"markdownDescription": "Comma-separated list of JBS filter IDs to show. Check [your filter list](https://bugs.openjdk.org/secure/ManageFilters.jspa?filterView=my). The filter ID is shown as e.g. `?filter=4711` at the end of the URL."
},
"openjdkDevel.labelFilter": {
"type": "string",
"default": "",
"description": "Comma-separated list of labels to show Pull Requests for"
},
"openjdkDevel.repoFilter": {
"type": "string",
"default": "",
"description": "Comma-separated list of OpenJDK repos to show Pull Requests for"
},
"openjdkDevel.locale": {
"type": "string",
"default": "",
"description": "Locale descriptor to override default (e.g. 'sv-SE')"
}
}
},
"commands": [
{
"command": "openjdkDevel.gitHubIntegration.refresh",
"title": "Refresh GitHub Integration",
"category": "OpenJDK Development",
"icon": "$(refresh)"
},
{
"command": "openjdkDevel.setGithubToken",
"title": "Setup GitHub API Token",
"category": "OpenJDK Development"
},
{
"command": "openjdkDevel.setGithubUsername",
"title": "Setup GitHub username",
"category": "OpenJDK Development"
},
{
"command": "openjdkDevel.jbsIntegration.refresh",
"title": "Refresh JBS Integration",
"category": "OpenJDK Development",
"icon": "$(refresh)"
},
{
"command": "openjdkDevel.setJbsToken",
"title": "Setup JBS API Token",
"category": "OpenJDK Development"
},
{
"command": "openjdkDevel.setJbsUsername",
"title": "Setup JBS username",
"category": "OpenJDK Development"
},
{
"command": "openjdkDevel.setFilter",
"title": "Setup PR filter",
"category": "OpenJDK Development"
}
],
"menus": {
"view/title": [
{
"command": "openjdkDevel.gitHubIntegration.refresh",
"when": "view == gitHubIntegration",
"group": "navigation@10"
},
{
"command": "openjdkDevel.jbsIntegration.refresh",
"when": "view == jbsIntegration",
"group": "navigation@10"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "openjdk-devel",
"title": "OpenJDK Development",
"icon": "media/duke-icon.svg"
}
]
},
"views": {
"openjdk-devel": [
{
"id": "gitHubIntegration",
"name": "GitHub Integration",
"icon": "media/github-logo.svg"
},
{
"id": "jbsIntegration",
"name": "JBS Integration",
"icon": "media/jbs-bug.svg"
}
]
},
"viewsWelcome": [
{
"view": "gitHubIntegration",
"contents": "In order to use the GitHub integration, you need to specify a GitHub API token.\n[Setup GitHub token](command:openjdkDevel.setGithubToken)",
"when": "config.openjdkDevel.github.apiToken == ''"
},
{
"view": "gitHubIntegration",
"contents": "In order to use the GitHub integration, you need to specify a GitHub user name.\n[Setup GitHub user name](command:openjdkDevel.setGithubUsername)",
"when": "config.openjdkDevel.github.username == ''"
},
{
"view": "gitHubIntegration",
"contents": "In order to use the GitHub integration, you need to setup PR filters for labels and/or repos.\n[Setup PR filters](command:openjdkDevel.setFilter)",
"when": "config.openjdkDevel.labelFilter == '' && config.openjdkDevel.repoFilter == ''"
},
{
"view": "jbsIntegration",
"contents": "In order to use the JBS integration, you need to specify a JBS user name.\n\nIt is also recommended that you add a list of JBS filter IDs.\n[Setup JBS user name](command:openjdkDevel.setJbsUsername)",
"when": "config.openjdkDevel.jbs.username == ''"
},
{
"view": "jbsIntegration",
"contents": "In order to use the JBS integration, you need to specify a JBS API token.\n[Setup JBS token](command:openjdkDevel.setJbsToken)",
"when": "config.openjdkDevel.jbs.apiToken == ''"
}
]
},
"scripts": {
"vscode:prepublish": "npm 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": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"dependencies": {
"node-fetch": ">=2.6.1"
},
"devDependencies": {
"@types/vscode": "^1.61.0",
"@types/glob": "^7.1.4",
"@types/mocha": "^9.0.0",
"@types/node": "14.x",
"@typescript-eslint/eslint-plugin": "^4.31.1",
"@typescript-eslint/parser": "^4.31.1",
"eslint": "^7.32.0",
"glob": "^7.1.7",
"mocha": "^9.1.1",
"typescript": "^4.4.3",
"ts-loader": "^9.2.5",
"webpack": "^5.52.1",
"webpack-cli": "^4.8.0",
"@vscode/test-electron": "^1.6.2"
}
}