-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.toml
82 lines (64 loc) · 1.81 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
[config]
default_to_workspace = false
[tasks.unit-tests]
script = [
"cargo test -p vertigo --all-features"
]
# NOTE: WebDriver on localhost:9515 needs to be running
[tasks.automated-tests]
script = [
"cargo test --package fantoccini-tests -- --ignored"
]
[tasks.all-tests]
dependencies = [ "unit-tests", "automated-tests" ]
# Run clippy for wasm32 target
[tasks.clippy-wasm32]
command = "cargo"
args = [
"clippy",
"--all-features",
"--target", "wasm32-unknown-unknown",
"-p", "vertigo",
"-p", "vertigo-macro",
"-p", "vertigo-demo",
"-p", "vertigo-example-counter",
"-p", "vertigo-example-router",
"-p", "vertigo-example-trafficlights"
]
# Demo tasks
[tasks.demo-serve-api]
script = [
"cargo run --bin vertigo-demo-server"
]
[tasks.demo-watch]
script = [
'cargo run --bin vertigo -- watch vertigo-demo --dest-dir=demo_build --wasm-run-source-map --env ws_chat=ws://127.0.0.1:3333/ws'
]
[tasks.demo-start]
script = [
"cargo run --bin vertigo -- build vertigo-demo --dest-dir=demo_build --wasm-run-source-map",
"cargo run --bin vertigo -- serve --dest-dir=demo_build --env ws_chat=ws://127.0.0.1:3333/ws"
]
[tasks.demo]
run_task = { name = ["demo-serve-api", "demo-watch"], parallel = true }
# Examples tasks
[tasks.examples-counter]
script = [
'cargo run --bin vertigo -- watch vertigo-example-counter --dest-dir=examples/build/counter',
]
[tasks.examples-router]
script = [
'cargo run --bin vertigo -- watch vertigo-example-router --dest-dir=examples/build/router',
]
[tasks.examples-trafficlights]
script = [
'cargo run --bin vertigo -- watch vertigo-example-trafficlights --dest-dir=examples/build/trafficlights',
]
# JavaScript dev build
[tasks.build-js]
script = [
"npm install",
"npx rollup -c",
]
[tasks.lint]
script = "cargo run --bin lint-project"