-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
264 lines (264 loc) · 7.38 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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
{
"name": "statsig",
"displayName": "Statsig",
"publisher": "statsig-vscode",
"description": "Feature Flags & A/B Tests For Data-Driven Product Building.",
"version": "1.1.3",
"license": "ISC",
"homepage": "https://www.statsig.com",
"repository": {
"type": "git",
"url": "https://github.com/statsig-io/statsig-code.git"
},
"bugs": {
"url": "https://github.com/statsig-io/statsig-code/issues",
"email": "[email protected]"
},
"engines": {
"vscode": "^1.56.0"
},
"categories": [
"Data Science",
"Other"
],
"icon": "media/icon.png",
"galleryBanner": {
"color": "#194B7D",
"theme": "dark"
},
"activationEvents": [
"onFileSystem:file",
"onView:statsig.projects",
"onCommand:statsig.fetchConfigs",
"onCommand:statsig.openConsole",
"onCommand:statsig.signIn",
"onCommand:statsig.signOut",
"onCommand:statsig.openConfigInConsole",
"onCommand:statsig.feelingLucky"
],
"main": "./dist/extension.js",
"contributes": {
"configuration": {
"title": "Statsig",
"properties": {
"statsig.refresh.inBackground": {
"type": "boolean",
"default": true,
"description": "Refresh Statsig projects in the background"
},
"statsig.refresh.interval": {
"type": "number",
"default": 3,
"description": "Duration (in minutes) between each background refresh."
},
"statsig.textEditor.enableHoverTooltips": {
"type": "boolean",
"default": true,
"description": "Whether to display a tooltip when hovering over strings that match a Statsig config."
},
"statsig.textEditor.enableCodeLens": {
"type": "boolean",
"default": false,
"description": "Whether to display CodeLens tooltips."
},
"statsig.textEditor.enableDiagnostics": {
"type": "boolean",
"default": true,
"description": "Whether to display diagnostic info."
},
"statsig.web.tier": {
"type": "string",
"default": "prod",
"markdownDescription": "The tier to use when making `https` api calls and console redirects. `prod` is recommended, any other value might be unstable.",
"enum": [
"prod",
"latest"
],
"enumDescriptions": [
"Automatically chooses a live tier with low latency.",
"Canary, Continuous-Deployment tier. Might be unstable."
]
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "statsig",
"title": "Statsig",
"icon": "media/logo.svg"
}
]
},
"viewsWelcome": [
{
"view": "statsig.projects",
"contents": "Welcome to Statsig! 🙌\nPlease sign in to generate an access token.\n[Sign In](https://console.statsig.com/integrations/vscode)\nThis extension is open-source and [hosted on GitHub](https://github.com/statsig-io/statsig-code). Contributions are welcome--we might even send you a t-shirt!"
}
],
"views": {
"statsig": [
{
"id": "statsig.projects",
"name": "Projects",
"icon": "media/logo.svg"
}
]
},
"commands": [
{
"command": "statsig.fetchConfigs",
"title": "Statsig: Fetch Latest Configs (Refresh)",
"icon": "$(extensions-refresh)"
},
{
"command": "statsig.openConsole",
"title": "Statsig: Open Console (in Browser)",
"icon": "$(ports-open-browser-icon)"
},
{
"command": "statsig.openConfigInConsole",
"title": "Statsig: Open Config in Console"
},
{
"command": "statsig.openTreeViewEntryInBrowser",
"title": "Open in Browser",
"icon": "$(ports-open-browser-icon)"
},
{
"command": "statsig.selectMainProject",
"title": "Select Main Project",
"icon": "$(star)"
},
{
"command": "statsig.selectMainProjectNoop",
"title": "Select Main Project",
"icon": "$(star-full)"
},
{
"command": "statsig.copyToClipboard",
"title": "Copy to Clipboard",
"icon": "$(files)"
},
{
"command": "statsig.signIn",
"title": "Statsig: Sign In with Access Token"
},
{
"command": "statsig.signOut",
"title": "Statsig: Sign Out"
},
{
"command": "statsig.feelingLucky",
"title": "I'm feeling lucky"
},
{
"command": "statsig.cleanupStale",
"title": "Statsig: Cleanup stale gates/configs"
}
],
"menus": {
"view/title": [
{
"command": "statsig.fetchConfigs",
"group": "navigation",
"when": "view == statsig.projects"
},
{
"command": "statsig.openConsole",
"group": "navigation",
"when": "view == statsig.projects"
},
{
"command": "statsig.signOut",
"when": "view == statsig.projects"
},
{
"command": "statsig.feelingLucky",
"when": "view == statsig.projects"
}
],
"view/item/context": [
{
"command": "statsig.copyToClipboard",
"when": "viewItem == statsig_config",
"group": "inline"
},
{
"command": "statsig.openTreeViewEntryInBrowser",
"when": "viewItem == statsig_config",
"group": "inline"
},
{
"command": "statsig.selectMainProject",
"when": "viewItem =~ /project_entry.*/",
"group": "inline"
},
{
"command": "statsig.selectMainProjectNoop",
"when": "viewItem in statsig.mainProject",
"group": "inline"
}
],
"commandPalette": [
{
"command": "statsig.copyToClipboard",
"when": "false"
},
{
"command": "statsig.openTreeViewEntryInBrowser",
"when": "false"
},
{
"command": "statsig.selectMainProject",
"when": "false"
},
{
"command": "statsig.selectMainProjectNoop",
"when": "false"
}
]
},
"keybindings": [
{
"command": "statsig.openConfigInConsole",
"key": "ctrl+alt+g",
"mac": "ctrl+cmd+g"
}
]
},
"scripts": {
"vscode:prepublish": "yarn run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"test-compile": "tsc -p ./",
"test-watch": "tsc -watch -p ./",
"pretest": "yarn run test-compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/mocha": "^8.0.4",
"@types/node": "^12.11.7",
"@types/vscode": "^1.56.0",
"@typescript-eslint/eslint-plugin": "^4.14.1",
"@typescript-eslint/parser": "^4.14.1",
"eslint": "^7.19.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-prettier": "^3.3.1",
"glob": "^7.1.6",
"mocha": "^8.2.1",
"prettier": "^2.2.1",
"ts-loader": "^8.0.14",
"ts-node": "^10.9.1",
"typescript": "^4.1.3",
"vscode-test": "^1.5.0",
"webpack": "^5.94.0",
"webpack-cli": "^4.4.0"
},
"dependencies": {
"axios": "^0.21.1"
}
}