-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.mise.toml
52 lines (41 loc) · 1.21 KB
/
.mise.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
[env]
RUST_LOG = "off"
[tools]
node = "lts"
"cargo:cargo-binstall" = "latest"
"cargo:wasm-pack" = "latest"
"cargo:dioxus-cli" = "0.5"
"cargo:cargo-watch" = "latest"
[settings]
experimental = true
cargo_binstall = true
# Tasks
[tasks.clean]
description = 'Clean dir'
run = "rm -rf node_modules/ dist/ rust-wc/{target,pkg} dioxus-wc/{target,pkg, dist}"
[tasks."build:dx"]
description = 'Build the dioxus-wc project for <dx-counter>'
run = "wasm-pack build --release --no-pack --target web"
dir = "./dioxus-wc"
sources = ['Cargo.toml', 'src/**/*.*', 'Dioxus.toml']
outputs = ['pkg/**/*.*']
# [tasks."dev:dx"]
# description = 'Serve the dioxus-wc application'
# run = "dx serve"
# dir = "./dioxus-wc"
[tasks."build:rs"]
description = 'Build the rust-wc project for <rs-counter>'
run = "wasm-pack build --release --no-pack --target web"
dir = "./rust-wc"
sources = ['Cargo.toml', 'src/**/*.*']
outputs = ['pkg/**/*.*']
[tasks.build]
description = 'Build everything <js-counter>, <rs-counter>, and <dx-counter>'
run = "npm run build"
depends = ["build:*"]
sources = ['tsconfig.json', 'public/**/*.*', 'src/**/*.*']
outputs = ['dist/**/*.*']
[tasks.dev]
description = 'dev'
run = "npm run watch & npm run dev"
depends = ["build:*"]