-
Notifications
You must be signed in to change notification settings - Fork 31
/
package.json
163 lines (163 loc) · 4.98 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
{
"name": "phpserver",
"displayName": "PHP Server",
"description": "Serve your Project with PHP",
"version": "3.0.2",
"publisher": "brapifra",
"engines": {
"vscode": "^1.32.0"
},
"categories": [
"Other"
],
"keywords": [
"php",
"php server",
"host php",
"html",
"http server"
],
"activationEvents": [
"onCommand:extension.phpServer.serveProject",
"onCommand:extension.phpServer.openFileInBrowser",
"onCommand:extension.phpServer.reloadServer"
],
"main": "./out/extension",
"repository": {
"type": "git",
"url": "https://github.com/brapifra/vscode-phpserver.git"
},
"contributes": {
"commands": [
{
"command": "extension.phpServer.serveProject",
"title": "PHP Server: Serve project",
"icon": {
"light": "./assets/server.svg",
"dark": "./assets/server.svg"
}
},
{
"command": "extension.phpServer.reloadServer",
"title": "PHP Server: Reload server"
},
{
"command": "extension.phpServer.openFileInBrowser",
"title": "PHP Server: Open file in browser"
},
{
"command": "extension.phpServer.stopServer",
"title": "PHP Server: Stop server"
}
],
"configuration": {
"type": "object",
"title": "PHP Server configuration",
"properties": {
"phpserver.port": {
"type": "integer",
"default": 3000,
"description": "Server's port number"
},
"phpserver.relativePath": {
"type": "string",
"default": ".",
"description": "Path relative to project. This is useful when you want to serve a different folder than the one from current workspace."
},
"phpserver.browser": {
"type": "string",
"default": null,
"description": "App used to open the server URL. If empty, it will use the default browser. You can put any browser name here as long as it's installed in your machine (e.g. google-chrome, firefox, chromium-browser...)"
},
"phpserver.ip": {
"type": "string",
"default": "localhost",
"description": "Server's ip/hostname (e.g. localhost, 0.0.0.0...)"
},
"phpserver.router": {
"type": "string",
"default": null,
"description": "Path to custom router that will be used by PHP server."
},
"phpserver.phpPath": {
"type": "string",
"default": null,
"description": "Path to PHP executable. If empty, the extension will try to get the path from the $PATH environment variable."
},
"phpserver.phpConfigPath": {
"type": "string",
"default": null,
"description": "Path to php.ini file. If empty, the extension uses the default path."
},
"phpserver.autoOpenOnReload": {
"type": "boolean",
"default": true,
"description": "Enable/disable automatic opening of server's URL in the browser after server has been reloaded."
}
}
},
"menus": {
"editor/title": [
{
"command": "extension.phpServer.serveProject",
"group": "navigation",
"when": "resourceLangId == php || resourceLangId == html"
}
],
"editor/context": [
{
"command": "extension.phpServer.serveProject",
"group": "2_phpserver@1",
"when": "resourceLangId == php || resourceLangId == html"
},
{
"command": "extension.phpServer.reloadServer",
"group": "2_phpserver@2",
"when": "resourceLangId == php || resourceLangId == html"
},
{
"command": "extension.phpServer.openFileInBrowser",
"group": "2_phpserver@3",
"when": "resourceLangId == php || resourceLangId == html"
},
{
"command": "extension.phpServer.stopServer",
"group": "2_phpserver@4",
"when": "resourceLangId == php || resourceLangId == html"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"test": "yarn unit-test && yarn integration-test",
"unit-test": "yarn jest --config ./jest_unit_tests.config.json --coverage",
"integration-test": "node ./out/__tests__/runTests.js"
},
"devDependencies": {
"@types/commondir": "^1.0.0",
"@types/jest": "^26.0.0",
"@types/node": "^14.0.13",
"@types/open": "^6.2.1",
"@types/vscode": "1.32.0",
"jest": "^26.1.0",
"jest-runner-vscode": "^1.2.0",
"ts-jest": "^26.1.1",
"tslint": "^5.8.0",
"typescript": "^3.9.5",
"vsce": "^1.78.0",
"vscode-test": "^1.4.0"
},
"dependencies": {
"commondir": "^1.0.1",
"open": "^7.0.4"
},
"icon": "assets/server.png",
"__metadata": {
"id": "a8194b6b-5989-4647-a5b8-ac7085201841",
"publisherId": "e6e9800f-ddad-408c-803c-302d6381770b",
"publisherDisplayName": "brapifra"
}
}