/
package.json
135 lines (135 loc) · 3.26 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
{
"private": true,
"name": "vscode-vue-preview",
"version": "1.0.24",
"repository": {
"type": "git",
"url": "https://github.com/johnsoncodehk/volar.git",
"directory": "packages/vscode-vue-preview"
},
"sponsor": {
"url": "https://github.com/sponsors/johnsoncodehk"
},
"displayName": "Vue and Nuxt Preview (from Volar)",
"description": "Component and App Preview For Vue and Nuxt",
"author": "johnsoncodehk",
"publisher": "johnsoncodehk",
"engines": {
"vscode": "^1.67.0"
},
"activationEvents": [
"onLanguage:vue",
"onWebviewPanel:preview"
],
"main": "./dist/extension.js",
"contributes": {
"views": {
"explorer": [
{
"id": "vueComponentPreview",
"name": "Vue Component Preview",
"type": "webview",
"when": "volar.foundViteDir || volar.foundNuxtDir"
}
]
},
"languages": [
{
"id": "vue",
"extensions": [
".vue"
]
}
],
"configuration": {
"type": "object",
"title": "Volar",
"properties": {
"volar.preview.script.vite": {
"type": "string",
"default": "node {VITE_BIN} --port={PORT}"
},
"volar.preview.script.nuxi": {
"type": "string",
"default": "node {NUXI_BIN} dev --port {PORT}"
},
"volar.preview.port": {
"type": "number",
"default": 3333,
"description": "Default port for component preview server."
},
"volar.preview.root": {
"type": "string",
"default": ".",
"description": "Component preview root directory. (For Nuxt, it should be \"./src\" by default.)"
},
"volar.preview.backgroundColor": {
"type": "string",
"default": "#fff",
"description": "Component preview background color."
},
"volar.preview.transparentGrid": {
"type": "boolean",
"default": false,
"description": "Component preview background style."
}
}
},
"commands": [
{
"command": "volar.action.vite",
"title": "Experimental Features for Vite",
"category": "Volar",
"icon": "images/vite-logo.svg"
},
{
"command": "volar.action.nuxt",
"title": "Experimental Features for Nuxt",
"category": "Volar",
"icon": "images/nuxt-logo.svg"
}
],
"menus": {
"commandPalette": [
{
"command": "volar.action.vite",
"when": "editorLangId == vue"
},
{
"command": "volar.action.nuxt",
"when": "editorLangId == vue"
}
],
"editor/title": [
{
"command": "volar.action.vite",
"when": "editorLangId == vue && config.volar.icon.preview && volar.foundViteDir",
"group": "navigation"
},
{
"command": "volar.action.nuxt",
"when": "editorLangId == vue && config.volar.icon.preview && volar.foundNuxtDir",
"group": "navigation"
}
]
}
},
"scripts": {
"prebuild": "cd ../.. && npm run build",
"build": "node scripts/build",
"watch": "npm run build -- --watch",
"prepack": "npm run prebuild && npm run build -- --minify",
"pack": "npm run prepack && vsce package",
"release": "npm run prepack && vsce publish"
},
"devDependencies": {
"@types/vscode": "1.67.0",
"@volar/preview": "1.0.24",
"@volar/vscode-language-client": "1.2.0-alpha.9",
"esbuild": "0.15.18",
"esbuild-plugin-copy": "latest",
"typesafe-path": "^0.2.2",
"vscode-html-languageservice": "^5.0.4",
"vsce": "latest"
}
}