-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
209 lines (209 loc) · 5.79 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
{
"name": "monokle",
"author": "Kubeshop",
"publisher": "Kubeshop",
"displayName": "Monokle",
"description": "Monokle Visual Studio Code extension for validating Kubernetes configuration.",
"version": "0.10.0",
"preview": true,
"icon": "assets/icon.png",
"repository": {
"type": "https",
"url": "https://github.com/kubeshop/vscode-monokle.git"
},
"bugs": {
"url": "https://github.com/kubeshop/vscode-monokle/issues"
},
"homepage": "https://monokle.io",
"categories": [
"Linters"
],
"keywords": [
"Kubernetes",
"YAML",
"Linter",
"Monokle",
"DevOps",
"GitOps",
"Helm",
"Kustomize",
"Validation",
"CIS",
"NSA",
"PSS"
],
"engines": {
"vscode": "^1.79.0"
},
"activationEvents": [
"onStartupFinished",
"onFileSystem:file"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "monokle.login",
"category": "Monokle",
"title": "Login"
},
{
"command": "monokle.logout",
"category": "Monokle",
"title": "Logout"
},
{
"command": "monokle.validate",
"category": "Monokle",
"title": "Validate"
},
{
"command": "monokle.showPanel",
"category": "Monokle",
"title": "Show validation panel"
},
{
"command": "monokle.showConfiguration",
"category": "Monokle",
"title": "Show configuration"
},
{
"command": "monokle.bootstrapConfiguration",
"category": "Monokle",
"title": "Bootstrap configuration"
},
{
"command": "monokle.synchronize",
"category": "Monokle",
"title": "Synchronize"
}
],
"configuration": {
"title": "Monokle",
"properties": {
"monokle.configurationPath": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to configuration file. If not set it will be searched in the workspace root."
},
"monokle.origin": {
"type": [
"string",
"null"
],
"default": null,
"description": "Overwrite Monokle Cloud URL which is used to authenticate and fetch policies from. Useful when running Monokle Enterprise."
},
"monokle.telemetryEnabled": {
"type": "boolean",
"default": true,
"description": "Whenever anonymous telemetry is enabled. It will be also disabled automatically when VSC telemetry is disabled globally."
},
"monokle.enabled": {
"type": "boolean",
"default": true,
"description": "Whenever extension is enabled."
},
"monokle.verbose": {
"type": "boolean",
"default": false,
"description": "Log runtime info to Developer Console."
},
"monokle.project": {
"type": [
"string",
"null"
],
"default": null,
"description": "Project which policy will be used for validation. If not set it will deducted based on git repository URL."
},
"monokle.run": {
"type": "string",
"enum": [
"onSave",
"onType"
],
"default": "onType",
"description": "Run validation on save (onSave) or on type (onType)"
},
"monokle.automaticallyOpenPanel": {
"type": "string",
"enum": [
"never",
"onProjectOpen"
],
"default": "never",
"description": "Show 'Violations' panel automatically on project open (`onProjectOpen`) or `never` (default, requires user action to show panel)."
}
}
}
},
"extensionDependencies": [
"kubeshop.monokle-sarif"
],
"scripts": {
"vscode:prepublish": "rimraf out && npm run esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"compile": "rimraf out && tsc -p ./",
"watch": "rimraf out && tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "concurrently -s command-1 -k \"npm run test:server\" \"node ./out/test/run-test.js\"",
"test:cc": "concurrently -s command-1 -k \"npm run test:server\" \"c8 node ./out/test/run-test.js\"",
"test:server": "node ./out/test/run-server.js",
"test:ensure-coverage": "npx c8 check-coverage --lines 68 --functions 76 --branches 82 --statements 68"
},
"devDependencies": {
"@graphql-tools/mock": "^9.0.0",
"@types/diff": "^5.0.9",
"@types/express": "^4.17.17",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "20.2.5",
"@types/node-fetch": "2.6.4",
"@types/sarif": "^2.1.7",
"@types/sinon": "^10.0.15",
"@types/vscode": "^1.79.0",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"@vscode/test-electron": "^2.3.8",
"c8": "^8.0.0",
"concurrently": "^8.2.0",
"esbuild": "^0.18.11",
"eslint": "^8.41.0",
"express": "^4.18.2",
"glob": "^8.1.0",
"graphql-tools": "^9.0.0",
"mocha": "^10.2.0",
"rimraf": "^5.0.1",
"sinon": "^15.2.0",
"typescript": "^5.1.3"
},
"dependencies": {
"@monokle/parser": "^0.3.2",
"@monokle/synchronizer": "^0.14.2",
"@monokle/validation": "^0.33.0",
"@segment/analytics-node": "^1.1.0",
"diff": "^5.1.0",
"normalize-url": "^4.5.1",
"p-debounce": "^2.1.0",
"p-retry": "^4.6.2",
"uuid": "^9.0.0",
"yaml": "^2.3.4"
},
"c8": {
"reporter": [
"lcov",
"text"
],
"exclude": [
"out/test/**"
],
"include": [
"out/**"
]
}
}