-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
package.json
242 lines (242 loc) · 8.64 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
{
"name": "vscode-mdx-preview",
"displayName": "MDX Preview",
"description": "MDX Preview",
"version": "0.3.1",
"publisher": "xyc",
"repository": "https://github.com/xyc/vscode-mdx-preview",
"engines": {
"vscode": "^1.28.0"
},
"categories": [
"Programming Languages"
],
"keywords": [
"Preview",
"mdx",
"markdown",
"JavaScript",
"React"
],
"icon": "assets/icon.png",
"activationEvents": [
"onLanguage:markdown",
"onLanguage:mdx",
"onCommand:mdx-preview.commands.openPreview",
"onCommand:mdx-preview.commands.refreshPreview",
"onCommand:mdx-preview.commands.toggleUseWhiteBackground",
"onCommand:mdx-preview.commands.changeSecuritySettings"
],
"main": "./build/extension/extension",
"contributes": {
"languages": [
{
"id": "mdx",
"aliases": [
"Markdown React",
"MDX",
"mdx"
],
"extensions": [
"mdx"
]
}
],
"commands": [
{
"command": "mdx-preview.commands.openPreview",
"title": "Open MDX Preview",
"category": "MDX",
"icon": {
"light": "./assets/preview-light.png",
"dark": "./assets/preview-dark.png"
}
},
{
"command": "mdx-preview.commands.refreshPreview",
"title": "Refresh Preview",
"category": "MDX",
"icon": {
"light": "./assets/refresh-light.png",
"dark": "./assets/refresh-dark.png"
}
},
{
"command": "mdx-preview.commands.toggleUseVscodeMarkdownStyles",
"title": "Toggle Using VSCode Markdown Styles",
"category": "MDX"
},
{
"command": "mdx-preview.commands.toggleUseWhiteBackground",
"title": "Toggle Using White Background",
"category": "MDX"
},
{
"command": "mdx-preview.commands.changeSecuritySettings",
"title": "Change Security Settings",
"category": "MDX"
}
],
"menus": {
"editor/title": [
{
"command": "mdx-preview.commands.openPreview",
"when": "editorLangId == markdown",
"group": "navigation"
},
{
"command": "mdx-preview.commands.openPreview",
"when": "editorLangId == mdx",
"group": "navigation"
},
{
"command": "mdx-preview.commands.openPreview",
"when": "editorLangId == javascript",
"group": "navigation"
},
{
"command": "mdx-preview.commands.openPreview",
"when": "editorLangId == typescriptreact",
"group": "navigation"
},
{
"command": "mdx-preview.commands.refreshPreview",
"when": "mdxPreviewFocus",
"group": "navigation"
}
],
"commandPalette": [
{
"command": "mdx-preview.commands.openPreview",
"when": "editorLangId == markdown",
"group": "navigation"
},
{
"command": "mdx-preview.commands.openPreview",
"when": "editorLangId == mdx",
"group": "navigation"
},
{
"command": "mdx-preview.commands.openPreview",
"when": "editorLangId == javascript",
"group": "navigation"
},
{
"command": "mdx-preview.commands.openPreview",
"when": "editorLangId == typescriptreact",
"group": "navigation"
}
]
},
"keybindings": [
{
"command": "mdx-preview.commands.openPreview",
"key": "ctrl+k x",
"mac": "cmd+k x"
}
],
"configuration": {
"type": "object",
"title": "MDX Preview",
"properties": {
"mdx-preview.preview.previewOnChange": {
"type": "boolean",
"default": true,
"description": "If set to true, previews on file change; If set to false, previews on file save",
"scope": "resource"
},
"mdx-preview.preview.security": {
"type": "string",
"description": "Security policy settings",
"default": "strict",
"enum": [
"strict",
"disabled"
],
"enumDescriptions": [
"Do not allow insecure content or eval",
"Allow insecure content (not recommended)"
],
"scope": "resource"
},
"mdx-preview.build.useSucraseTranspiler": {
"type": "boolean",
"default": false,
"description": "Use sucrase as transpiler",
"scope": "resource"
},
"mdx-preview.preview.useVscodeMarkdownStyles": {
"type": "boolean",
"default": true,
"description": "Use VSCode Markdown Stylings",
"scope": "resource"
},
"mdx-preview.preview.useWhiteBackground": {
"type": "boolean",
"default": false,
"description": "Use white background regardless of current theme settings",
"scope": "resource"
},
"mdx-preview.preview.mdx.customLayoutFilePath": {
"type": "string",
"default": "",
"description": "Path of custom layout file to use",
"scope": "resource"
}
}
}
},
"scripts": {
"preinstall": "cd packages/webview-app && yarn install",
"vscode:prepublish": "yarn run build",
"vscode:package": "yarn run test && vsce package",
"build:extension": "tsc -p ./",
"build": "yarn run build:extension && yarn run build:webview-app",
"watch": "tsc -watch -p ./",
"start:webview-app": "cd packages/webview-app && yarn start",
"build:webview-app": "cd packages/webview-app && yarn run build",
"build:polestar": "cd packages/polestar && yarn run build",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "yarn run build && node ./build/extension/test/runTest.js"
},
"devDependencies": {
"@types/jest": "^23.3.14",
"@types/node": "^13.13.4",
"jest": "^23.6.0",
"jest-environment-node": "^23.4.0",
"semver": "^5.6.0",
"ts-jest": "^23.6.0",
"tslint": "^5.8.0",
"vscode": "^1.1.28",
"vscode-test": "^1.3.0"
},
"dependencies": {
"@babel/core": "^7.3.4",
"@babel/plugin-proposal-class-properties": "^7.3.4",
"@babel/plugin-proposal-export-default-from": "^7.2.0",
"@babel/plugin-proposal-export-namespace-from": "^7.2.0",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/preset-env": "^7.3.4",
"@babel/preset-react": "^7.0.0",
"@dxflow/comlink": "^3.1.3",
"@mdx-js/mdx": "^0.20.3",
"@types/sass": "^1.16.0",
"babel-plugin-transform-dynamic-import": "^2.1.0",
"gray-matter": "^4.0.2",
"is-module": "^1.0.0",
"path-is-inside": "^1.0.2",
"precinct": "^6.1.1",
"remark-parse": "^6.0.3",
"remark-squeeze-paragraphs": "^3.0.3",
"resolve-from": "^4.0.0",
"sass": "^1.26.3",
"sucrase": "^3.10.1",
"typescript": "3.8.3",
"unified": "^7.1.0"
},
"extensionPack": [
"silvenon.mdx"
]
}