generated from urin/.github
-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
package.json
164 lines (164 loc) · 4.38 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
{
"name": "vscode-web-visual-editor",
"displayName": "Web Visual Editor",
"description": "Edit HTML files visually.",
"categories": [
"Visualization"
],
"extensionKind": [
"ui"
],
"icon": "images/icon-logo.png",
"version": "0.1.6",
"engines": {
"vscode": "^1.92.0"
},
"publisher": "Urin",
"author": "Urin",
"repository": {
"type": "git",
"url": "https://github.com/urin/vscode-web-visual-editor.git"
},
"bugs": {
"url": "https://github.com/urin/vscode-web-visual-editor/issues"
},
"sponsor": {
"url": "https://github.com/sponsors/urin"
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "npm run check-types && npm run lint && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "npm run check-types && npm run lint && node esbuild.js --production",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"check-types": "tsc --noEmit",
"lint": "eslint src --ext ts"
},
"dependencies": {
"he": "^1.2.0",
"jsdom": "^24.1.1"
},
"devDependencies": {
"@types/he": "^1.2.3",
"@types/jsdom": "^21.1.7",
"@types/mocha": "^10.0.7",
"@types/node": "20.x",
"@types/vscode": "^1.92.0",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.11.0",
"@vscode/test-cli": "^0.0.9",
"@vscode/test-electron": "^2.4.0",
"esbuild": "^0.21.5",
"eslint": "^8.57.0",
"npm-run-all": "^4.1.5",
"typescript": "^5.4.5"
},
"main": "./dist/extension.js",
"activationEvents": [
"onLanguage:html"
],
"contributes": {
"commands": [
{
"command": "web-visual-editor.open",
"title": "Visual Editor",
"icon": {
"light": "images/icon-light.png",
"dark": "images/icon-dark.png"
}
},
{
"command": "web-visual-editor.openBeside",
"title": "Visual Editor to the Side",
"icon": {
"light": "images/icon-split-light.png",
"dark": "images/icon-split-dark.png"
}
},
{
"command": "web-visual-editor.showSource",
"title": "Show Source",
"icon": "$(go-to-file)"
}
],
"customEditors": [
{
"priority": "option",
"viewType": "web-visual-editor.customEditor",
"displayName": "Visual Editor",
"selector": [
{
"filenamePattern": "*.html"
},
{
"filenamePattern": "*.htm"
},
{
"filenamePattern": "*.xhtml"
},
{
"filenamePattern": "*.shtml"
},
{
"filenamePattern": "*.xht"
},
{
"filenamePattern": "*.mhtml"
},
{
"filenamePattern": "*.mht"
},
{
"filenamePattern": "*.ehtml"
}
]
}
],
"menus": {
"explorer/context": [
{
"command": "web-visual-editor.open",
"when": "resourceLangId == html",
"group": "navigation@5"
}
],
"editor/title": [
{
"command": "web-visual-editor.openBeside",
"when": "resourceLangId == 'html' && activeCustomEditorId != 'web-visual-editor.customEditor'",
"group": "navigation@1"
},
{
"command": "web-visual-editor.open",
"when": "resourceLangId == 'html' && activeCustomEditorId != 'web-visual-editor.customEditor'",
"group": "navigation@2"
},
{
"command": "web-visual-editor.showSource",
"when": "activeCustomEditorId == 'web-visual-editor.customEditor'",
"group": "navigation@3"
}
]
},
"configuration": {
"type": "object",
"title": "Web Visual Editor",
"properties": {
"webVisualEditor.allowScript": {
"type": "boolean",
"default": true,
"description": "Enable JavaScript in preview."
},
"webVisualEditor.enableMovingElements": {
"type": "boolean",
"default": true,
"description": "Enable moving position of elements in preview."
}
}
}
}
}