forked from pyrsia/pyrsia-vscode-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
174 lines (174 loc) · 5.44 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
{
"name": "pyrsia-extension",
"displayName": "Pyrsia",
"description": "Pyrsia VS Code Extension",
"version": "0.1.0",
"repository": {
"type": "git",
"url": "https://github.com/pyrsia/pyrsia-vscode-extension"
},
"engines": {
"vscode": "^1.74.0"
},
"categories": [
"Other"
],
"activationEvents": [
"*"
],
"main": "./out/extension.js",
"contributes": {
"viewsWelcome": [
{
"view": "pyrsia.node-status",
"contents": "Thank you for installing the Pyrsia extension! \nIf you already have a Pyrsia node [installed and running](https://pyrsia.io/docs/tutorials/quick-installation), please connect it to VS Code:\n[Connect to Pyrsia](command:pyrsia.node-config.update-url)\n👋 Don't have a Pyrsia installed? [Download it here!](https://pyrsia.io/docs/tutorials/quick-installation)",
"when": "!pyrsia.connection.configured"
},
{
"view": "pyrsia.node-status",
"contents": "👋 Is Pyrsia node offline? \nIf you already have a Pyrsia node [installed and running](https://pyrsia.io/docs/tutorials/quick-installation), please connect it to VS Code:\n[Connect to Pyrsia](command:pyrsia.node-config.update-url)\nDon't have a Pyrsia node installed? [Download it here!](https://pyrsia.io/docs/tutorials/quick-installation)",
"when": "pyrsia.connection.configured && pyrsia.connection.status == false"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "pyrsia",
"title": "Pyrsia",
"icon": "resources/images/pyrsia_white.svg"
}
]
},
"views": {
"pyrsia": [
{
"id": "pyrsia.node-status",
"name": "Connect to Pyrsia",
"when": "!pyrsia.connection.status"
},
{
"id": "pyrsia.node-integrations",
"name": "Integrations"
},
{
"id": "pyrsia.help",
"name": "Help and Feedback"
}
]
},
"commands": [
{
"command": "pyrsia.docker.replace-images",
"title": "Reload Docker Images with Pyrsia",
"shortTitle": "Replace images",
"icon": "$(refresh)"
},
{
"command": "pyrsia.node-config.update-url",
"title": "Update Pyrsia Node URL",
"shortTitle": "Update Pyrsia node URL",
"icon": "$(gear)"
},
{
"command": "pyrsia.docker.update-config",
"title": "Open Docker Configuration",
"shortTitle": "Open and Update Docker Configuration",
"icon": "$(gear)"
},
{
"command": "pyrsia.docker.request-build",
"title": "Add Image to Pyrsia",
"shortTitle": "Add selected image to Pyrsia",
"icon": "$(server-environment)"
},
{
"command": "pyrsia.docker.open-trans-log",
"title": "Open Pyrsia Transparency Log",
"shortTitle": "Open Pyrsia Transparency Log",
"icon": "$(file-code)"
},
{
"command": "pyrsia.integrations.update",
"title": "Refresh",
"shortTitle": "Refresh",
"icon": "$(refresh)"
},
{
"command": "pyrsia.node-config.update-view",
"title": "Refresh",
"shortTitle": "Refresh",
"icon": "$(refresh)"
}
],
"menus": {
"view/title": [
{
"command": "pyrsia.integrations.update",
"when": "view == pyrsia.node-integrations",
"group": "navigation"
},
{
"command": "pyrsia.node-config.update-view",
"when": "view == pyrsia.node-config",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "pyrsia.docker.replace-images",
"when": "view == pyrsia.node-integrations && viewItem == pyrsia.docker",
"group": "pyrsia-integration"
},
{
"command": "pyrsia.node-config.update-url",
"when": "view == pyrsia.node-config",
"group": "pyrsia-config"
},
{
"command": "pyrsia.docker.update-config",
"when": "view == pyrsia.node-integrations && viewItem == pyrsia.docker.config-file",
"group": "pyrsia-integration"
},
{
"command": "pyrsia.docker.request-build",
"when": "view == pyrsia.node-integrations && viewItem == pyrsia.docker.not-pyrsia",
"group": "pyrsia-integration"
},
{
"command": "pyrsia.docker.open-trans-log",
"when": "view == pyrsia.node-integrations && viewItem == pyrsia.docker.is-pyrsia",
"group": "pyrsia-integration"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/dockerode": "^3.3.14",
"@types/glob": "^8.0.0",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/vscode": "^1.73.1",
"@typescript-eslint/eslint-plugin": "^5.47.0",
"@typescript-eslint/parser": "^5.47.0",
"@vscode/test-electron": "^2.2.0",
"eslint": "^8.30.0",
"glob": "^8.0.3",
"mocha": "^10.1.0",
"typescript": "^4.9.4"
},
"dependencies": {
"@vscode/webview-ui-toolkit": "^1.2.0",
"axios": "^1.2.1",
"dockerode": "3.3.4",
"fs": "^0.0.1-security",
"os": "^0.1.2"
}
}