-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzwooc.config.json
111 lines (111 loc) · 2.07 KB
/
zwooc.config.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
{
"$schema": "./zwooc.schema.json",
"example__": {
"$dir": "example",
"$adapter": "vite-yarn",
"$fragments": {
"foo": {
"$default": "echo $PWD && sleep 7",
"dev": "echo 'BAR'"
},
"test:a": {
"$default": "echo 'default' && sleep 3",
"dev": "echo 'test:a'",
"build:dev": "echo 'correct'"
},
"print": {
"$default": "echo $PWD && sleep 7",
"$pre": {
"fragments": ["print2"],
"command": "echo 'pre'"
},
"$post": {
"fragments": ["test:a"]
}
},
"fail": "exit 1"
},
"dev": {
"mode": "test",
"build": {
"$pre": {
"fragments": ["print", "print2", "test:a"]
},
"env": ["VITE_APP_TEST=build1"],
"args": {
"outDir": "dist"
},
"$post": {
"command": "sleep 5"
}
},
"watch": {
"$pre": {
"fragments": ["print", "print2"]
},
"includeFragments": ["print3", "recurse"],
"$post": {
"command": "sleep 5"
}
}
},
"dev2": {
"args": {
"port": "6000"
},
"$pre": {
"fragments": ["print"]
},
"build": {
"$pre": {
"fragments": ["print2"]
},
"args": {
"outDir": "dist2"
}
}
},
"$default": {
"build": {
"base": "dev"
},
"watch": false
}
},
"example2": {
"$adapter": "dotnet",
"test": {
"project": "a.b"
}
},
"ex3": {
"$adapter": "custom",
"$dir": ".",
"ex3": {
"run": {
"command": "echo 'build'"
},
"build": "echo 'run'"
}
},
"$fragments": {
"print2": "echo $PWD && sleep 3",
"print3": "git status",
"recurse": {
"$pre": {
"profiles": {
"dev": "build"
}
},
"$default": "echo 'recurse'"
}
},
"$compounds": {
"test": {
"profiles": {
"dev": "watch",
"dev2": "watch"
}
}
}
}