-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
260 lines (260 loc) · 8.42 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
{
"name": "kusion",
"displayName": "Kusion",
"description": "",
"version": "0.0.20",
"publisher": "KusionStack",
"repository": "https://github.com/KusionStack/vscode-kusion",
"engines": {
"vscode": "^1.68.0"
},
"icon": "images/kusion.png",
"categories": [
"Other"
],
"extensionDependencies": [
"kcl.kcl-vscode-extension"
],
"activationEvents": [
"onLanguage:KCL",
"onCommand:kusion.checkInstall"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"title": "Kusion",
"properties": {
"kusion.templates.location": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Specifies the folder paths and the GitHub repositories containing Kusion Templates to use to init Kusion Project."
}
}
},
"walkthroughs": [
{
"id": "kusion.walkthrough",
"title": "Getting started with Kusion",
"description": "Deploy your first application to the cloud with Kusion!",
"steps": [
{
"id": "kusion.walkthrough.install",
"title": "Get your Environment Ready",
"description": "The Kusion Extension requires at least Kusion and KCL environment installed.\n[Install Kusion](command:kusion.checkInstall)",
"media": {
"markdown": "media/walkthroughs/install.md"
}
},
{
"id": "kusion.walkthrough.openKonfig",
"title": "Open a Konfig Workspace Folder",
"description": "Open a Konfig workspace folder which contains basic kusion models.\n[Open Konfig Workspace](command:vscode.openFolder)\n__If there's already a Konfig monorepo in your organization and saved locally, directly open it.__",
"media": {
"markdown": "media/walkthroughs/open-konfig.md"
}
},
{
"id": "kusion.walkthrough.createProject",
"title": "Create a New Kusion Project",
"description": "Create a new kusion project to manage your application.\n[Create Kusion Project](command:kusion.createProject)",
"media": {
"markdown": "media/walkthroughs/create-project.md"
}
},
{
"id": "kusion.walkthrough.exploreProject",
"title": "Explore Your Project and Configurations",
"description": "Open your previously created kusion project and browse the configuration code.",
"media": {
"markdown": "media/walkthroughs/explore-project.md"
}
},
{
"id": "kusion.walkthrough.liveDiff",
"title": "Verify the Resource Changes to be made",
"description": "As all the configurations prepared, before making changes to the runtime, let's preview and check the live diff between the application's realtime status and the spec. You can check the resource changes by right clicking 'Diff with Runtime and Apply' on the stack's configuration file.",
"media": {
"markdown": "media/walkthroughs/live-diff.md"
}
},
{
"id": "kusion.walkthrough.confirmApply",
"title": "Apply the Application Changes",
"description": "If the live diff is as expected, let's apply the changes to the runtime. Click the 'Apply' button to confirm apply.",
"media": {
"markdown": "media/walkthroughs/confirm-apply.md"
}
},
{
"id": "kusion.walkthrough.help",
"title": "Learn More",
"description": "Great job! You've now completed Getting Started with Kusion. But don't stop here! There are plenty of ways to become more proficient managing and delivering applications with Kusion. \nFor example, you can [Set up Prometheus to acquire monitoring and alerting](https://kusionstack.io/docs/user_docs/guides/prometheus/recording-and-alerting), or [manage secret with Vault](https://kusionstack.io/docs/user_docs/guides/sensitive-data-solution/hosting-and-retrieving-secrets). Besides, you could [migrate your existing infra configurations from kubernetes](https://kusionstack.io/docs/user_docs/guides/adopting/). \nCheck out our [website](https://kusionstack.io/) to make the most of the Kusion!\n[Show Kusion Help](command:kusion.help)",
"media": {
"altText": "Explore more Kusion Introduction",
"image": "media/walkthroughs/images/help.png"
}
}
]
}
],
"views": {
"kusionExplorer": [
{
"id": "kusionProjects",
"name": "Projects"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "kusionExplorer",
"title": "Kusion",
"icon": "images/kusion_k.png"
}
]
},
"taskDefinitions": [
{
"type": "kusion",
"required": [
"task"
],
"properties": {
"task": {
"type": "string",
"description": "The Kusion task to customize"
},
"file": {
"type": "string",
"description": "The Kusion file that provides the task. Can be omitted."
}
}
},
{
"type": "custombuildscript",
"required": [
"flavor"
],
"properties": {
"flavor": {
"type": "string",
"description": "The build flavor. Should be either '32' or '64'."
},
"flags": {
"type": "array",
"description": "Additional build flags."
}
}
}
],
"commands": [
{
"command": "kusion.showPreview",
"category": "Kusion",
"title": "Open Data Preview",
"icon": {
"light": "./images/preview-light.svg",
"dark": "./images/preview-dark.svg"
}
},
{
"command": "kusion.showPreviewToSide",
"category": "Kusion",
"title": "Open Data Preview to the Side",
"icon": "$(open-preview)"
},
{
"command": "kusion.compile",
"category": "Kusion",
"title": "Compile"
},
{
"command": "kusion.destroy",
"category": "Kusion",
"title": "Destroy"
},
{
"command": "kusion.apply",
"category": "Kusion",
"title": "Diff with Runtime and Apply"
},
{
"command": "kusion.help",
"category": "Kusion",
"title": "Help"
},
{
"command": "kusion.createProject",
"category": "Kusion",
"title": "Create Kusion Project From Archetype"
},
{
"command": "kusion.confirmApply",
"category": "Kusion",
"title": "Confirm Apply",
"icon": "$(cloud-upload)"
}
],
"menus": {
"editor/title": [
{
"command": "kusion.showPreviewToSide",
"when": "editorLangId == KCL && inKusionStack",
"group": "navigation"
},
{
"command": "kusion.confirmApply",
"when": "inKusionLiveDiff",
"group": "navigation"
}
],
"editor/context": [
{
"command": "kusion.compile",
"group": "Kusion group@1",
"when": "editorLangId == KCL && inKusionStack"
},
{
"command": "kusion.apply",
"group": "Kusion group@2",
"when": "editorLangId == KCL && inKusionStack"
},
{
"command": "kusion.destroy",
"group": "Kusion group@3",
"when": "editorLangId == KCL && inKusionStack"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"lint": "eslint . --ext .ts,.tsx",
"watch": "tsc -watch -p ./"
},
"devDependencies": {
"@types/node": "^17.0.36",
"@types/vscode": "^1.67.0",
"@typescript-eslint/eslint-plugin": "^5.37.0",
"@typescript-eslint/parser": "^5.27.0",
"eslint": "^8.23.1",
"eslint-config-standard-with-typescript": "^23.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-n": "^15.2.5",
"eslint-plugin-promise": "^6.0.1",
"typescript": "^4.8.3"
},
"dependencies": {
"@types/shelljs": "^0.8.11",
"echarts": "^5.4.2",
"shelljs": "^0.8.5",
"shiki": "^0.14.1",
"vscode-uri": "^3.0.3",
"yaml": "^2.2.1"
}
}