-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
196 lines (196 loc) · 6.21 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
{
"name": "grafana-vscode",
"author": "Grafana Labs",
"displayName": "Grafana",
"description": "Grafana Editor",
"icon": "public/grafana_icon.png",
"version": "0.0.20",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/grafana/grafana-vs-code-extension"
},
"engines": {
"vscode": "^1.76.0"
},
"publisher": "Grafana",
"categories": [
"Visualization",
"Snippets"
],
"keywords": [
"Grafana",
"dashboards"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"contributes": {
"customEditors": [
{
"viewType": "grafana.dashboard",
"displayName": "Grafana",
"selector": [
{
"filenamePattern": "*.grafana"
}
]
}
],
"commands": [
{
"command": "grafana-vscode.openUrl",
"title": "Grafana: Edit in Grafana"
}
],
"menus": {
"commandPalette": [
{
"command": "grafana-vscode.openUrl",
"when": "resourceExtname == .json || resourceExtname == .yaml || resourceExtname == .yml"
}
],
"explorer/context": [
{
"command": "grafana-vscode.openUrl",
"when": "resourceExtname == .json || resourceExtname == .yaml || resourceExtname == .yml"
}
]
},
"snippets": [
{
"language": "json",
"path": "./snippets.json"
}
],
"iconThemes": [
{
"id": "grafana",
"label": "Grafana",
"path": "./public/icon-theme.json"
}
],
"configuration": {
"title": "Grafana",
"properties": {
"grafana-vscode.URL": {
"type": "string",
"default": "http://localhost:3000",
"description": "Grafana instance URL",
"order": 1
},
"grafana-vscode.service-account-token": {
"type": "boolean",
"default": true,
"markdownDescription": "A service account token for your Grafana instance. Click the link below to add this to secure storage.\n\n[Set your token, securely](command:grafana-vscode.setPassword)",
"order": 2
},
"grafana-vscode.theme": {
"type": "string",
"default": "inherit",
"enum": [
"inherit",
"fixed",
"dark",
"light"
],
"enumDescriptions": [
"Inherit Grafana theme from VSCode",
"Use Grafana's own default theme",
"Use dark Grafana theme",
"Use light Grafana theme"
]
},
"grafana-vscode.telemetry": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable basic telemetry. All data is anonymous and only used to help with feature prioritization/gloating/etc.",
"order": 3
}
}
},
"walkthroughs": [
{
"id": "intro",
"title": "Getting started with VS Code for Grafana",
"description": "Just a few more steps before some Grafana magic in your editor!",
"steps": [
{
"id": "grafana_url_setting",
"title": "Provide the URL of your Grafana instance",
"description": "This extension uses data held by your Grafana instance to enable local previews of dashboards. **This access is purely read-only**, nothing will ever be written to the istance.\nIf you are using a local Grafana instance, the default value is ``http://localhost:3000``.\n[Configure Grafana instance URL](command:grafana-vscode.setGrafanaURL)",
"media": {
"image": "media/grafana_logo.png",
"altText": "Grafana logo"
},
"completionEvents": ["onSettingChanged:grafana-vscode.URL"]
},
{
"id": "grafana_service_account_token_setting",
"title": "Provide a service account token used to authenticate to Grafana",
"description": "The steps required to create a service account and an associated token can be found in [Grafana's documentation](https://grafana.com/docs/grafana/latest/administration/service-accounts/#create-a-service-account-in-grafana).\n[Configure Grafana service account token](command:grafana-vscode.setPassword)",
"media": {
"image": "media/grafana_logo.png",
"altText": "Grafana logo"
},
"completionEvents": ["onSettingChanged:grafana-vscode.service-account-token"]
},
{
"id": "preview_dashboards",
"title": "Preview dashboards",
"description": "Dashboards can be previewed locally, by right-clicking on a file or by calling the \"Edit in Grafana\" command.",
"media": {
"image": "media/preview_commands.png",
"altText": "Preview commands"
}
}
]
}
]
},
"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",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/cors": "^2.8.13",
"@types/express": "^4.17.17",
"@types/glob": "^8.1.0",
"@types/http-proxy": "^1.17.10",
"@types/mocha": "^10.0.1",
"@types/node": "18.x",
"@types/source-map-support": "^0.5.8",
"@types/uuid": "^9.0.6",
"@types/vscode": "^1.76.0",
"@typescript-eslint/eslint-plugin": "^5.53.0",
"@typescript-eslint/parser": "^5.53.0",
"@vscode/test-electron": "^2.2.3",
"eslint": "^8.34.0",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"prettier": "3.0.2",
"ts-loader": "^9.4.2",
"typescript": "^4.9.5",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1"
},
"dependencies": {
"cors": "^2.8.5",
"express": "^4.21.2",
"http-proxy": "^1.18.1",
"http-proxy-middleware": "^2.0.6",
"open": "^8.4.2",
"source-map-support": "^0.5.21",
"transformer-proxy": "^0.3.5",
"uuid": "^9.0.1",
"yaml": "^2.7.0"
}
}