yew-template/Makefile.toml
2024-10-05 14:57:39 +08:00

30 lines
672 B
TOML

[tasks.default]
alias = "build"
[tasks.run]
dependencies = ["build"]
command = "cargo"
args = ["run", "--features", "server"]
[tasks.build]
dependencies = ["build-frontend"]
args = ["build", "--features", "server"]
[tasks.build-frontend]
condition = { files_modified = { input = [
"./Cargo.toml",
"./Cargo.lock",
"./index.html",
"./style/index.css",
"./src/bin/frontend.rs",
"./src/lib.rs",
"./src/frontend.rs",
"./src/frontend/**/*.rs",
], output = [
"./dist/index.html",
"./dist/*.js",
"./dist/*.css",
"./dist/*.wasm"
] } }
command = "trunk"
args = ["build"]