-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathchompfile.toml
107 lines (87 loc) · 2.1 KB
/
chompfile.toml
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
version = 0.1
extensions = [
'[email protected]:swc',
'./packages/chomp-extensions/dts.js',
'./packages/chomp-extensions/pkg.js',
'./packages/chomp-extensions/postcss.js',
'./packages/chomp-extensions/inline-css.js',
]
[env]
PACKAGE_MANAGER = 'pnpm'
[[task]]
name = "clean"
deps = ["clean:src", "clean:dist"]
[[task]]
name = "clean:dist"
run = "rm -rf packages/@*/*/dist"
[[task]]
name = "clean:src"
engine = "node"
run = """
import glob from 'fast-glob';
import { rmSync } from 'node:fs';
const files = glob.sync('packages/@*/*/src/**/*.css.ts');
for (const file of files) {
rmSync(file);
}
"""
[[task]]
name = "build"
serial = true
deps = [
"vue-jsx-runtime",
"mdit",
"tagged-templates",
"utils",
"fenced-container",
"snippets",
"custom-block",
"theme",
]
[[task]]
name = "build:pre"
deps = ["snippets:postcss", "custom-block:postcss", "theme:postcss"]
[[task]]
name = "mdit"
template = "pkg"
template-options = { root = "packages/@jsergo/mdit" }
[[task]]
name = "tagged-templates"
template = "pkg"
template-options = { root = "packages/@jsergo/tagged-templates" }
[[task]]
name = "utils"
template = "pkg"
template-options = { root = "packages/@wycatsjs/utils" }
[[task]]
name = "fenced-container"
template = "pkg"
template-options = { root = "packages/@starbeam-docs/fenced-container" }
[[task]]
name = "custom-block"
template = "pkg"
template-options = { root = "packages/@starbeam-docs/custom-block" }
[[task]]
name = "custom-block:postcss"
template = "postcss"
template-options = { root = "packages/@starbeam-docs/custom-block" }
[[task]]
name = "vue-jsx-runtime"
template = "pkg"
template-options = { root = "packages/@starbeam-docs/vue-jsx-runtime" }
[[task]]
name = "snippets"
template = "pkg"
template-options = { root = "packages/@starbeam-docs/snippets" }
[[task]]
name = "snippets:postcss"
template = "postcss"
template-options = { root = "packages/@starbeam-docs/snippets" }
[[task]]
name = "theme"
template = "pkg"
template-options = { root = "packages/@starbeam-docs/theme" }
[[task]]
name = "theme:postcss"
template = "postcss"
template-options = { root = "packages/@starbeam-docs/theme" }