forked from Daniel-Knights/vscode-mjml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
220 lines (220 loc) · 5.9 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
{
"name": "vscode-mjml",
"displayName": "MJML (unofficial fork)",
"description": "MJML preview, lint, compile for Visual Studio Code.",
"version": "2.4.10",
"publisher": "DanielKnights",
"license": "MIT",
"readme": "README.md",
"icon": "images/icon.png",
"author": {
"name": "Daniel Knights",
"email": "danknights95@gmail.com"
},
"homepage": "https://github.com/Daniel-Knights/vscode-mjml#readme",
"repository": {
"type": "git",
"url": "https://github.com/Daniel-Knights/vscode-mjml"
},
"bugs": {
"url": "https://github.com/Daniel-Knights/vscode-mjml/issues"
},
"galleryBanner": {
"color": "#f45e43",
"theme": "dark"
},
"categories": [
"Other",
"Linters",
"Snippets",
"Formatters",
"Programming Languages"
],
"keywords": [
"vscode",
"mjml",
"preview",
"lint",
"syntax"
],
"engines": {
"vscode": "^1.60.0"
},
"activationEvents": [
"onLanguage:mjml"
],
"main": "./out/extension",
"contributes": {
"configuration": {
"title": "MJML",
"properties": {
"mjml.beautify": {
"default": {
"indent_size": 2,
"wrap_attributes_indent_size": 2
},
"description": "Beautify options.",
"type": "object"
},
"mjml.beautifyHtmlOutput": {
"default": false,
"description": "Beautify HTML output. (Works when `mjml.minifyHtmlOutput` isn't enabled.)",
"type": "boolean"
},
"mjml.exportType": {
"default": ".html",
"description": "Specifies the file type of the output file.",
"type": "string"
},
"mjml.lintEnable": {
"default": true,
"description": "Enable/disable MJML linter (requires restart).",
"type": "boolean"
},
"mjml.lintWhenTyping": {
"default": true,
"description": "Whether the linter is run on type or on save.",
"type": "boolean"
},
"mjml.minifyHtmlOutput": {
"default": true,
"description": "Minify HTML output.",
"type": "boolean"
},
"mjml.preserveFocus": {
"default": true,
"description": "Preserve focus of Text Editor after preview open.",
"type": "boolean"
},
"mjml.autoPreview": {
"default": false,
"description": "Automatically update preview when switching between MJML documents.",
"type": "boolean"
},
"mjml.previewBackgroundColor": {
"default": "",
"description": "Preview background color.",
"type": "string"
},
"mjml.autoClosePreview": {
"default": true,
"description": "Automatically close preview when all open MJML documents have been closed.",
"type": "boolean"
},
"mjml.updateWhenTyping": {
"default": true,
"description": "Update preview when typing.",
"type": "boolean"
},
"mjml.showSaveDialog": {
"default": false,
"description": "Show the save as dialog instead of input box.",
"type": "boolean"
},
"mjml.switchOnSeparateFileChange": {
"default": true,
"description": "Automatically switch preview when editing a different file.",
"type": "boolean"
},
"mjml.snippetsInsideComments": {
"default": true,
"description": "Determines whether snippets/completion items are triggered inside HTML and CSS comments.",
"type": "boolean"
}
}
},
"commands": [
{
"command": "mjml.previewToSide",
"title": "Open Preview to the Side",
"category": "MJML",
"icon": {
"light": "./resources/icons/preview_icon_light.svg",
"dark": "./resources/icons/preview_icon_dark.svg"
}
},
{
"command": "mjml.exportHTML",
"title": "Export HTML",
"category": "MJML"
},
{
"command": "mjml.copyHTML",
"title": "Copy HTML",
"category": "MJML"
},
{
"command": "mjml.beautify",
"title": "Beautify",
"category": "MJML"
},
{
"command": "mjml.version",
"title": "Version",
"category": "MJML"
}
],
"languages": [
{
"id": "mjml",
"extensions": [
".mjml"
],
"aliases": [
"MJML",
"mjml"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "mjml",
"scopeName": "text.mjml.basic",
"path": "./syntaxes/MJML.tmLanguage"
}
],
"menus": {
"editor/title": [
{
"when": "editorLangId == mjml",
"command": "mjml.previewToSide",
"group": "navigation"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run build",
"build": "node esbuild.js",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "npx eslint . --ext .js,.ts",
"checks": "npm run lint && npm run compile",
"pub": "npm run checks && vsce publish patch",
"pub-minor": "npm run checks && vsce publish minor",
"pub-major": "npm run checks && vsce publish major"
},
"devDependencies": {
"@types/copy-paste": "^1.1.30",
"@types/html-minifier": "^4.0.1",
"@types/js-beautify": "^1.13.2",
"@types/mime": "^2.0.3",
"@types/mjml": "^4.7.0",
"@types/node": "^16.9.1",
"@types/vscode": "^1.60.0",
"@typescript-eslint/eslint-plugin": "^4.31.0",
"@typescript-eslint/parser": "^4.31.0",
"esbuild": "^0.12.26",
"eslint": "^7.32.0",
"prettier": "^2.4.0",
"typescript": "^4.4.2"
},
"dependencies": {
"copy-paste": "^1.3.0",
"html-minifier": "^4.0.0",
"js-beautify": "^1.14.0",
"mime": "^2.5.2",
"mjml": "^4.10.3"
}
}