-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
package.json
executable file
·169 lines (169 loc) · 4.33 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
{
"name": "vite",
"preview": true,
"displayName": "Vite",
"description": "VS Code for Vite",
"version": "0.2.5",
"publisher": "antfu",
"license": "MIT",
"icon": "res/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/antfu/vscode-vite"
},
"engines": {
"vscode": "^1.52.0"
},
"categories": [
"Other"
],
"activationEvents": [
"*",
"onFileSystem:vite.config.js",
"onFileSystem:vite.config.ts"
],
"main": "./dist/extension.js",
"extensionPack": [
"antfu.browse-lite"
],
"contributes": {
"commands": [
{
"command": "vite.stop",
"category": "Vite",
"title": "Stop Vite Server"
},
{
"command": "vite.restart",
"category": "Vite",
"title": "Start Vite Server"
},
{
"command": "vite.open",
"category": "Vite",
"title": "Open Vite app"
},
{
"command": "vite.showCommands",
"category": "Vite",
"title": "Show commands",
"icon": "$(symbol-event)"
}
],
"menus": {
"editor/title": [
{
"when": "resourceScheme == webview-panel && browse-lite-active",
"command": "vite.showCommands",
"group": "navigation"
}
]
},
"configuration": {
"type": "object",
"title": "Vite",
"properties": {
"vite.autoStart": {
"type": "boolean",
"default": true,
"description": "Start Vite server with VS Code"
},
"vite.browserType": {
"type": "string",
"enum": [
"embedded",
"system"
],
"default": "embedded",
"description": "Browser to open Vite app"
},
"vite.port": {
"type": "number",
"default": 4000,
"description": "Port for Vite server"
},
"vite.host": {
"type": "string",
"default": "localhost",
"description": "Host for Vite server"
},
"vite.base": {
"type": "string",
"default": "",
"description": "Base path for open the app"
},
"vite.https": {
"type": "boolean",
"default": false,
"description": "Enable https"
},
"vite.pingInterval": {
"type": "number",
"default": 200,
"description": "Interval in mileseconds to try on pinging for server to start"
},
"vite.maximumTimeout": {
"type": "number",
"default": 30000,
"description": "Maximum timeout in mileseconds waiting for server to start"
},
"vite.showTerminal": {
"type": "boolean",
"default": false,
"description": "Force on terminal when server starts"
},
"vite.notifyOnStarted": {
"type": "boolean",
"default": true,
"description": "Send notification when server starts"
},
"vite.devCommand": {
"type": "string",
"description": "Command for dev"
},
"vite.buildCommand": {
"type": "string",
"default": "npm run build",
"description": "Command for build"
},
"vite.vitepress": {
"type": "boolean",
"default": true,
"description": "Use vitepress if available"
},
"vite.vitepressBase": {
"type": "string",
"default": "",
"description": "Base path for Vitepress"
},
"vite.vitepressAutoRouting": {
"type": "boolean",
"default": false,
"description": "Navigate to the page you are working on"
},
"vite.open": {
"type": "boolean",
"default": true,
"description": "Open app on server ready"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run build",
"build": "tsup src/extension.ts --dts --external=vscode",
"dev": "npm run build -- --watch",
"release": "npx bumpp --commit --tag --push"
},
"devDependencies": {
"@antfu/eslint-config": "^0.6.2",
"@types/node": "^14.14.37",
"@types/vscode": "^1.52.0",
"eslint": "^7.23.0",
"pkg-up": "^3.1.0",
"tsup": "^4.8.21",
"types-package-json": "^2.0.31",
"typescript": "^4.2.3",
"vite": "^2.1.5"
}
}