-
Notifications
You must be signed in to change notification settings - Fork 48
/
Makefile.toml
50 lines (40 loc) · 1.46 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
[config]
skip_core_tasks = true
default_to_workspace = false
[tasks.watch-front]
script = "cargo watch -i frontend -x 'install --path crates/aquascope_front --offline'"
[tasks.watch-front-debug]
script = "cargo watch -i frontend -x 'install --path crates/aquascope_front --offline --debug'"
[tasks.watch-mdbook]
script = "cargo watch -w crates/mdbook-aquascope/src -w frontend/packages/aquascope-embed/dist --no-vcs-ignores -x 'install --path crates/mdbook-aquascope --debug --offline'"
[tasks.watch-server]
script = "cargo run --features=no-docker"
[tasks.watch.run_task]
name = ["watch-front", "watch-server", "watch-mdbook"]
parallel = true
[tasks.init-bindings]
script = """
cargo run --bin export-ts --locked
cargo test -p aquascope -p mdbook-aquascope --lib export_bindings --locked
mkdir -p frontend/packages/aquascope-editor/src/bindings
cp crates/**/bindings/* frontend/packages/aquascope-editor/src/bindings
"""
[tasks.install-aquascope]
dependencies = ["init-bindings"]
script = """
cd frontend && depot build && cd ..
cargo miri setup
cargo install --path crates/aquascope_front --locked
"""
[tasks.install-mdbook]
dependencies = ["install-aquascope"]
script = "cargo install --path crates/mdbook-aquascope --locked"
[tasks.playground-front]
script = """
export MIRI_SYSROOT=$(cargo miri setup --print-sysroot)
cd frontend && depot build -w
"""
[tasks.playground.run_task]
dependencies = ["install-aquascope"]
name = ["watch-server", "playground-front"]
parallel = true