-
Notifications
You must be signed in to change notification settings - Fork 0
/
tap.conf.js
56 lines (56 loc) · 1.48 KB
/
tap.conf.js
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
var path = require("path");
var pkg = require(path.join(__dirname, "./package.json"));
module.exports ={
"server": {
"workers": [
{
"command": "tap monitor",
"monitor": "启动monitor成功"
},
{
"command": "wh-cli link mui/[email protected]"
},
{
"command": "wh-cli link",
"options": {
"cwd": "./demo"
}
},
{
"command": "wh-cli server app -v test.tmall.com"
},
{
"command": "tap link"
},
{
"command": "tap assets -p 8000"
},
{
"command": "tap watch"
}
]
},
"monitor": {
"port": 80,
"proxy_pass": [
{
"server_name": "localhost test.tmall.com test.daily.tmall.net",
"rewrite": [
{
"rule": /^(.+)$/,
"target": "http://127.0.0.1:3000/$1"
}
]
},
{
"server_name": "g.tbcdn.cn g.assets.daily.taobao.net g.alicdn.com",
"rewrite": [
{
"rule": /^(.+)$/,
"target": "http://127.0.0.1:8000/$1"
}
]
}
]
}
}