-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
177 lines (177 loc) · 6.31 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
{
"icon": "images/logo.png",
"name": "autometrics",
"author": "Fiberplane",
"publisher": "fiberplane",
"displayName": "Autometrics",
"license": "MIT",
"description": "Show enhanced autometrics information from your code",
"version": "0.5.0",
"repository": {
"type": "git",
"url": "https://github.com/autometrics-dev/vscode-autometrics"
},
"engines": {
"vscode": "^1.76.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:python",
"onLanguage:rust",
"onLanguage:typescript"
],
"main": "./dist/extension.js",
"contributes": {
"typescriptServerPlugins": [
{
"name": "@autometrics/typescript-plugin",
"enableForWorkspaceTypeScriptVersions": true
}
],
"configuration": [
{
"id": "General",
"title": "Autometrics",
"order": 1,
"properties": {
"autometrics.prometheusUrl": {
"type": "string",
"format": "uri",
"description": "Enter the base URL for your prometheus instance, this URL is used to generate links for queries",
"default": "http://localhost:9090"
},
"autometrics.experimentalRustSupport": {
"type": "boolean",
"description": "Enable experimental support for Rust",
"default": false
},
"autometrics.graphPreferences": {
"type": "string",
"markdownDescription": "The extension can (for supported languages) link to: the embedded graphs (default), Prometheus web interface or the Autometrics explorer web interface (see for more information the [Autometrics local development](https://docs.autometrics.dev/local-development) documentation).\n\n **Note:** the Autometrics explorer web interface doesn't support all possible graphs yet so the embedded graphs are used as a fallback in some cases.",
"default": "embedded",
"enum": [
"embedded",
"prometheus",
"explorer"
],
"enumItemLabels": [
"Use the embedded graphs",
"Link out to prometheus",
"Use autometrics explorer"
],
"markdownEnumDescriptions": [
"The extension will show the graphs in the editor",
"The extension will link to the prometheus web interface",
"The extension will link to the autometrics explorer web interface"
]
},
"autometrics.webServerURL": {
"type": "string",
"markdownDescription": "If you use the [autometrics CLI](https://github.com/autometrics-dev/am) you can use the bundled web interface to explore autometrics data. In order to use this you should set `#autometrics.graphPreferences#` to the `Use autometrics explorer` option.\n\n**Note** This URL only needs to be changed if you're running the server on a different port.",
"format": "uri",
"default": "http://localhost:6789"
}
}
}
],
"commands": [
{
"command": "autometrics.refreshFunctions",
"title": "Refresh Autometrics functions",
"icon": {
"light": "images/light/refresh.svg",
"dark": "images/dark/refresh.svg"
}
}
],
"menus": {
"view/title": [
{
"command": "autometrics.refreshFunctions",
"when": "view == functionList",
"group": "navigation"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "autometrics",
"title": "Autometrics",
"icon": "images/icon.svg"
}
]
},
"views": {
"autometrics": [
{
"id": "functionList",
"name": "Functions"
},
{
"id": "metricList",
"name": "Metrics"
}
]
}
},
"scripts": {
"compile": "yarn compile-extension && yarn compile-charts",
"compile-charts": "mkdir -p dist/styles && cp src/charts/styles/* dist/styles && esbuild ./src/charts/chart.tsx --bundle --outfile=dist/chart.js --format=esm --jsx=automatic --platform=browser ",
"compile-extension": "esbuild ./src/extension.ts --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node",
"compile-tests": "tsc -p . --outDir out",
"fmt-check": "rome format .",
"format": "rome format --write .",
"lint": "rome ci .",
"lint-code": "rome check .",
"package": "yarn compile-extension --minify && yarn compile-charts --minify",
"pretest": "yarn compile-tests && yarn compile && yarn lint",
"test": "yarn test:functional && yarn test:e2e",
"test:e2e": "node ./out/test/run-test.js",
"test:functional": "CI=true vitest",
"test:functional-watch": "vitest",
"tsc": "tsc --noEmit",
"vscode:prepublish": "yarn package",
"watch": "mkdir -p dist/styles && cp src/charts/styles/* dist/styles && concurrently \"yarn compile-charts --sourcemap --watch\" \"yarn compile-extension --sourcemap --watch\"",
"watch-tests": "tsc -p . -w --outDir out"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "^16.18.30",
"@types/node-fetch": "^2.6.3",
"@types/react": "^18.2.6",
"@types/react-dom": "^18.2.4",
"@types/react-syntax-highlighter": "^15.5.6",
"@types/styled-components": "^5.1.26",
"@types/vscode": "1.76.0",
"@vscode/test-electron": "^2.3.2",
"@vscode/vsce": "^2.19.0",
"concurrently": "^8.0.1",
"esbuild": "^0.17.19",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"rome": "^12.1.0",
"vitest": "^0.32.0"
},
"dependencies": {
"@autometrics/typescript-plugin": "^0.5.4",
"@floating-ui/core": "^1.2.6",
"@floating-ui/react": "^0.24.2",
"fiberplane-charts": "git+https://[email protected]/fiberplane/fiberplane.git#workspace=fiberplane-charts",
"fiberplane-prometheus-query": "https://[email protected]/fiberplane/fiberplane.git#workspace=fiberplane-prometheus-query",
"framer-motion": "^10.12.16",
"node-fetch": "^2.0.0",
"parse-duration": "^1.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-is": "^18.2.0",
"react-syntax-highlighter": "^15.5.0",
"styled-components": "^5.3.10",
"typescript": "^5.0.0",
"valtio": "^1.10.5"
},
"packageManager": "[email protected]"
}