forked from hediet/vscode-drawio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
254 lines (254 loc) · 6.34 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
{
"name": "vscode-drawio",
"private": true,
"displayName": "Draw.io Integration",
"description": "This unofficial extension integrates Draw.io into VS Code.",
"version": "999.0.0-alpha",
"license": "GPL-3.0",
"publisher": "hediet",
"keywords": [
"drawio",
"diagram",
"visio",
"architecture",
"uml",
"code link"
],
"author": {
"email": "[email protected]",
"name": "Henning Dieterichs"
},
"readme": "./README.md",
"icon": "docs/logo.drawio.png",
"engines": {
"vscode": "^1.46.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCustomEditor:hediet.vscode-drawio",
"onCustomEditor:hediet.vscode-drawio-text"
],
"repository": {
"url": "https://github.com/hediet/vscode-drawio.git"
},
"main": "./dist/extension/index",
"contributes": {
"customEditors": [
{
"viewType": "hediet.vscode-drawio",
"displayName": "Draw.io (Binary)",
"selector": [
{
"filenamePattern": "*.drawio.png"
},
{
"filenamePattern": "*.dio.png"
}
],
"priority": "default"
},
{
"viewType": "hediet.vscode-drawio-text",
"displayName": "Draw.io",
"selector": [
{
"filenamePattern": "*.drawio"
},
{
"filenamePattern": "*.dio"
},
{
"filenamePattern": "*.dio.svg"
},
{
"filenamePattern": "*.drawio.svg"
}
],
"priority": "default"
}
],
"commands": [
{
"command": "hediet.vscode-drawio.convert",
"title": "Draw.io: Convert To..."
},
{
"command": "hediet.vscode-drawio.export",
"title": "Draw.io: Export To..."
},
{
"command": "hediet.vscode-drawio.toggleCodeLinkActivation",
"title": "Draw.io: Toggle Code Link Activation"
},
{
"command": "hediet.vscode-drawio.changeTheme",
"title": "Draw.io: Change Theme"
},
{
"command": "hediet.vscode-drawio.editDiagramAsText",
"title": "Draw.io: Edit Diagram As Text (Experimental)"
},
{
"command": "hediet.vscode-drawio.linkCodeWithSelectedNode",
"title": "Draw.io: Link Code with Selected Node (Experimental)"
}
],
"keybindings": [
{
"command": "hediet.vscode-drawio.linkCodeWithSelectedNode",
"key": "shift+F3",
"when": "hediet.vscode-drawio.experimentalFeaturesEnabled"
}
],
"configuration": {
"title": "Draw.io Integration",
"properties": {
"hediet.vscode-drawio.offline": {
"type": "boolean",
"default": true,
"title": "Use Offline Mode",
"description": "When enabled, the bundled instance of Draw.io is used."
},
"hediet.vscode-drawio.codeLinkActivated": {
"type": "boolean",
"default": false,
"title": "Code Link Enabled",
"description": "When activated, selecting a node will navigate to an associated code section."
},
"hediet.vscode-drawio.local-storage": {
"anyOf": [
{
"type": "object"
},
{
"type": "string"
}
],
"default": {},
"readOnly": true,
"title": "Draw.io Local Storage",
"description": "Only change this property if you know what you are doing. Manual changes to this property are not supported!"
},
"hediet.vscode-drawio.customFonts": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"title": "Custom Fonts",
"description": "Configures the Draw.io editor to use custom fonts."
},
"hediet.vscode-drawio.customLibraries": {
"type": "array",
"items": {
"type": "object",
"properties": {
"entryId": {
"type": "string",
"description": "The id of the entry. A specfic entry can be enabled or deactivated in the editor."
},
"libName": {
"type": "string",
"description": "The name of the library in the shape overview."
}
},
"anyOf": [
{
"type": "object",
"properties": {
"url": {
"type": "string"
}
}
},
{
"type": "object",
"properties": {
"xml": {
"type": "string"
}
}
},
{
"type": "object",
"properties": {
"json": {}
}
},
{
"type": "object",
"properties": {
"file": {
"type": "string",
"description": "The file path to the library. Must be absolute. You can use ${workspaceFolder}."
}
}
}
]
},
"default": [],
"title": "Custom Libraries",
"description": "Configures the Draw.io editor to use custom libraries."
},
"hediet.vscode-drawio.online-url": {
"type": "string",
"default": "https://embed.diagrams.net/",
"title": "Online URL",
"description": "The app to use when offline mode is disabled."
},
"hediet.vscode-drawio.theme": {
"title": "Draw.io Theme",
"type": "string",
"default": "automatic",
"enum": [
"automatic",
"min",
"atlas",
"dark",
"Kennedy"
],
"description": "The theme to use for the Draw.io editor. Use \"automatic\" to automatically choose a Draw.io theme that matches your current VS Code theme."
}
}
}
},
"scripts": {
"run-script": "node ./scripts/run-script",
"lint": "yarn run-script check-version && prettier --check ./src",
"build": "yarn pre-build && vsce package --yarn --out ./vscode-drawio.vsix",
"pre-build": "webpack --mode production && webpack --mode production --config ./drawio-custom-plugins/webpack.config.ts",
"dev": "webpack --mode development --watch",
"dev-drawio-plugins": "webpack --mode development --watch --config ./drawio-custom-plugins/webpack.config.ts"
},
"devDependencies": {
"@types/node": "^13.13.5",
"@types/vscode": "1.46.0",
"@types/xml-formatter": "^1.1.0",
"clean-webpack-plugin": "^3.0.0",
"prettier": "^2.0.5",
"raw-loader": "^4.0.1",
"ts-loader": "^7.0.4",
"ts-node": "^8.10.1",
"tslint": "^6.1.2",
"typescript": "^3.8.3",
"vsce": "1.75.0",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11",
"@hediet/semver": "^0.2.1",
"@actions/exec": "^1.0.4",
"@actions/github": "^2.2.0",
"@types/jsdom": "^16.2.3"
},
"dependencies": {
"@hediet/json-to-dictionary": "^0.2.1",
"@hediet/std": "0.6.0",
"@knuddels/mobx-logger": "^1.1.1",
"jsdom": "^16.2.2",
"mobx": "5.15.4",
"mobx-utils": "5.5.7",
"xml-formatter": "^2.0.1",
"xml-parser-xo": "^3.0.0"
}
}