-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.toml
85 lines (69 loc) · 1.77 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
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
[config]
skip_core_tasks = true
default_to_workspace = false
# #################### #
# Binding initializers #
# #################### #
[tasks.init-bindings-lib]
command = "cargo"
args = [
"test", "-p", "argus-lib", "--lib", "export_bindings", "--locked"
]
[tasks.init-bindings-ser]
command = "cargo"
args = ["test", "-p", "argus-ser", "--locked"]
[tasks.init-bindings]
command = "./scripts/ts-rs.scm"
dependences = ["tasks.init-bindings-lib", "tasks.init-bindings-ser"]
[tasks.evaluation-node]
command = "node"
args = ["ide/packages/evaluation/dist/evaluation.cjs", "-s", "./data", "${@}"]
# #################### #
# Builders #
# #################### #
[tasks.build-back]
command = "cargo"
args = [
"install", "--path", "crates/argus-cli", "--locked",
]
# TODO: is there a way to set a command specific environment variable?
# The below will make the configuration global...
# [env]
# CARGO_MAKE_WORKING_DIRECTORY = "ide"
[tasks.build-ide]
script = """
cd ide && depot build
"""
[tasks.build.run_task]
name = ["build-back", "build-ide"]
parallel = true
[tasks.watch-back]
command = "cargo"
args = [
"watch",
"-i",
"frontend",
"-x",
"'install", "--path", "crates/argus-cli", "${@}", "'",
]
[tasks.watch.run_task]
name = ["watch-back"]
parallel = true
# ############### #
# Evaluation Crap #
# ############### #
[tasks.eval]
command = "node"
args = ["ide/packages/evaluation/dist/evaluation.cjs", "-h", "${@}"]
dependencies = ["build"]
[tasks.eval-init]
command = "node"
args = ["ide/packages/evaluation/dist/evaluation.cjs", "-s", "./data", "${@}"]
dependencies = ["build"]
[tasks.eval-serve]
script = """
python3 -m webbrowser http://localhost:8080/eval
./scripts/evaluation.scm
"""
[tasks.evaluation]
dependencies = ["evaluation-init", "evaluation-serve"]