-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
249 lines (249 loc) · 7.32 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
{
"name": "mdc",
"packageManager": "[email protected]",
"displayName": "MDC - Markdown Components",
"description": "Provides syntax highlighting and colon matching for MDC (Markdown Components) files for Nuxt Content.",
"version": "0.2.4",
"publisher": "Nuxt",
"icon": "images/icon.png",
"repository": {
"url": "https://github.com/nuxtlabs/vscode-mdc",
"type": "git"
},
"homepage": "https://github.com/nuxtlabs/vscode-mdc/blob/main/README.md",
"license": "MIT",
"engines": {
"vscode": "^1.75.0"
},
"categories": [
"Programming Languages",
"Formatters",
"Snippets"
],
"main": "./out/extension.js",
"contributes": {
"languages": [
{
"id": "mdc",
"aliases": [
"Markdown Components",
"MDC",
"mdc",
"Nuxt Content",
"Nuxt MDC",
"Nuxt Markdown Components"
],
"filenamePatterns": [
"*.md",
"*.mdc"
],
"icon": {
"dark": "./images/mdc.png",
"light": "./images/mdc.png"
},
"configuration": "./language-configuration.json",
"extensions": [
".mdc"
]
}
],
"grammars": [
{
"language": "mdc",
"scopeName": "text.markdown.mdc.standalone",
"path": "./syntaxes/mdc.standalone.tmLanguage.json"
},
{
"scopeName": "text.markdown.mdc",
"path": "./syntaxes/mdc.tmLanguage.json",
"injectTo": [
"text.html.markdown",
"text.html.markdown.jsx"
]
}
],
"menus": {
"editor/title": [
{
"command": "markdown.showPreviewToSide",
"when": "editorLangId == mdc && !notebookEditorFocused && !hasCustomMarkdownPreview",
"alt": "markdown.showPreview",
"group": "navigation"
}
],
"explorer/context": [
{
"command": "markdown.showPreview",
"when": "resourceLangId == mdc && !hasCustomMarkdownPreview",
"group": "navigation"
},
{
"command": "markdown.findAllFileReferences",
"when": "resourceLangId == mdc",
"group": "4_search"
}
],
"editor/title/context": [
{
"command": "markdown.showPreview",
"when": "resourceLangId == mdc && !hasCustomMarkdownPreview",
"group": "1_open"
},
{
"command": "markdown.findAllFileReferences",
"when": "resourceLangId == mdc"
}
],
"commandPalette": [
{
"command": "markdown.showPreview",
"when": "editorLangId == mdc && !notebookEditorFocused",
"group": "navigation"
},
{
"command": "markdown.showPreviewToSide",
"when": "editorLangId == mdc && !notebookEditorFocused",
"group": "navigation"
},
{
"command": "markdown.showLockedPreviewToSide",
"when": "editorLangId == mdc && !notebookEditorFocused",
"group": "navigation"
},
{
"command": "markdown.showPreviewSecuritySelector",
"when": "editorLangId == mdc && !notebookEditorFocused"
},
{
"command": "markdown.preview.refresh",
"when": "editorLangId == mdc && !notebookEditorFocused"
},
{
"command": "markdown.findAllFileReferences",
"when": "editorLangId == mdc"
}
]
},
"keybindings": [
{
"command": "markdown.showPreview",
"key": "shift+ctrl+v",
"mac": "shift+cmd+v",
"when": "editorLangId == mdc && !notebookEditorFocused"
},
{
"command": "markdown.showPreviewToSide",
"key": "ctrl+k v",
"mac": "cmd+k v",
"when": "editorLangId == mdc && !notebookEditorFocused"
}
],
"snippets": [
{
"language": "mdc",
"path": "./snippets/markdown.code-snippets"
}
],
"configuration": {
"title": "MDC - Markdown Components",
"properties": {
"mdc.enableFormatting": {
"type": "boolean",
"default": false,
"description": "Enable MDC document formatting."
},
"mdc.enableComponentMetadataCompletions": {
"type": "boolean",
"default": false,
"description": "Enable MDC component name and prop auto-completions."
},
"mdc.componentMetadataLocalFilePattern": {
"type": "string",
"default": "**/.nuxt/component-meta.mjs",
"description": "A glob pattern to the local MDC component metadata. Defaults to: `**/.nuxt/component-meta.mjs`"
},
"mdc.componentMetadataLocalExcludePattern": {
"type": "string",
"default": "{**/node_modules/**,**/dist/**,**/.output/**,**/.cache/**,**/.playground/**}",
"description": "A glob pattern to exclude directories from the local MDC component metadata search. Defaults to: `{**/node_modules/**,**/dist/**,**/.output/**,**/.cache/**,**/.playground/**}`"
},
"mdc.componentMetadataURL": {
"type": "string",
"default": "",
"description": "A remote or localhost URL from which to fetch the MDC completion metadata. The endpoint must return valid JSON that matches one of the documented response interfaces. When set, will take precedence over the `mdc.componentMetadataLocalFilePattern` configuration."
},
"mdc.componentMetadataCacheTTL": {
"type": "number",
"default": 30,
"description": "The number of minutes to cache the MDC metadata. Defaults to 30 minutes."
},
"mdc.debug": {
"type": "boolean",
"default": false,
"description": "Enable extension debug logging."
}
}
},
"commands": [
{
"command": "mdc.showOutput",
"title": "Show extension output",
"category": "MDC"
},
{
"command": "mdc.refreshMetadata",
"title": "Refresh component metadata",
"category": "MDC"
}
],
"configurationDefaults": {
"[mdc]": {
"editor.folding": true
}
}
},
"scripts": {
"vscode:prepublish": "npm run build",
"build": "tsc -p ./ && esno scripts/build.ts",
"dev": "tsc -p ./ && esno watch scripts/build.ts",
"lint": "eslint src --ext ts",
"test": "vitest",
"release": "release-it",
"generate": "vsce package",
"publish": "vsce publish"
},
"devDependencies": {
"@nuxt/schema": "^3.15.4",
"@nuxtjs/eslint-config-typescript": "^12.1.0",
"@types/node": "^18.19.70",
"@types/vscode": "1.42.0",
"@vscode/vsce": "^2.32.0",
"eslint": "^8.57.1",
"esno": "^0.17.0",
"release-it": "^18.1.2",
"typescript": "5.2.2",
"vscode": "^1.1.37",
"vscode-textmate": "^9.2.0",
"vue-component-meta": "^2.2.4"
},
"dependencies": {
"@nuxtlabs/monarch-mdc": "^0.5.0",
"scule": "^1.3.0",
"vscode-textmate": "^9.2.0"
},
"release-it": {
"git": {
"commitMessage": "chore(release): release v${version}"
},
"github": {
"release": true,
"releaseName": "v${version}"
},
"npm": {
"publish": false
},
"hooks": {
"after:bump": "npx changelogen@latest --no-commit --no-tag --output --r $(node -p \"require('./package.json').version\")"
}
}
}