-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.toml
53 lines (42 loc) · 1.1 KB
/
Makefile.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
[config]
skip_core_tasks = true
[tasks.default]
alias = "build"
[tasks.dev]
category = "Dev"
dependencies = ["setup-stdlib"]
run_task = { name = ["dev-css", "dev-trunk"], fork = true, parallel = true }
[tasks.dev-trunk]
category = "Dev"
install_crate = "trunk"
command = "trunk"
args = ["serve", "--open"]
[tasks.dev-css]
category = "Dev"
command = "npx"
args = ["tailwindcss", "-i", "./styles.css", "-o", "./output.css", "--watch"]
[tasks.build]
clear = true
category = "Build"
install_crate = "trunk"
command = "trunk"
args = ["build", "--release"]
dependencies = ["setup-stdlib", "build-css"]
[tasks.build-css]
category = "Build"
command = "npx"
args = ["tailwindcss", "-i", "styles.css", "-o", "output.css", "--minify"]
[tasks.setup-stdlib]
category = "Setup"
script_runner = "@shell"
script = '''
[ -d "stdlib" ] && echo "stdlib already setup." && exit 0
mkdir stdlib
curl -L \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/aiken-lang/stdlib/tarball/main \
-o stdlib.tar
tar -xvf stdlib.tar --strip-components 1 -C stdlib
rm stdlib.tar
'''