2022-11-03 01:46:32 +00:00
|
|
|
############
|
|
|
|
# A make file for cargo-make, please install it with:
|
|
|
|
# cargo install --force cargo-make
|
|
|
|
############
|
|
|
|
|
|
|
|
[config]
|
|
|
|
# make tasks run at the workspace root
|
|
|
|
default_to_workspace = false
|
|
|
|
|
2023-03-03 16:50:50 +00:00
|
|
|
[tasks.check]
|
2022-11-03 01:46:32 +00:00
|
|
|
clear = true
|
2023-03-14 02:19:10 +00:00
|
|
|
dependencies = [
|
|
|
|
"check-all",
|
|
|
|
"check-wasm",
|
|
|
|
"check-all-release",
|
|
|
|
"check-wasm-release",
|
|
|
|
]
|
2022-11-03 01:46:32 +00:00
|
|
|
|
2023-03-03 16:50:50 +00:00
|
|
|
[tasks.check-all]
|
2022-11-03 01:46:32 +00:00
|
|
|
command = "cargo"
|
2023-03-03 16:50:50 +00:00
|
|
|
args = ["+nightly", "check-all-features"]
|
2022-11-03 01:46:32 +00:00
|
|
|
install_crate = "cargo-all-features"
|
2023-02-12 23:58:57 +00:00
|
|
|
|
2023-03-03 16:50:50 +00:00
|
|
|
[tasks.check-wasm]
|
2023-02-13 00:39:32 +00:00
|
|
|
clear = true
|
2023-03-03 16:50:50 +00:00
|
|
|
dependencies = [{ name = "check-wasm", path = "leptos" }]
|
2022-11-03 01:46:32 +00:00
|
|
|
|
2023-03-14 02:19:10 +00:00
|
|
|
[tasks.check-all-release]
|
|
|
|
command = "cargo"
|
|
|
|
args = ["+nightly", "check-all-features"]
|
|
|
|
install_crate = "cargo-all-features"
|
|
|
|
|
|
|
|
[tasks.check-wasm-release]
|
|
|
|
clear = true
|
|
|
|
dependencies = [{ name = "check-wasm-release", path = "leptos" }]
|
|
|
|
|
2023-02-02 01:36:37 +00:00
|
|
|
[tasks.check-examples]
|
2023-01-02 18:29:37 +00:00
|
|
|
clear = true
|
|
|
|
dependencies = [
|
2023-02-02 01:36:37 +00:00
|
|
|
{ name = "check", path = "examples/counter" },
|
|
|
|
{ name = "check", path = "examples/counter_isomorphic" },
|
|
|
|
{ name = "check", path = "examples/counters" },
|
2023-02-28 20:33:02 +00:00
|
|
|
{ name = "check", path = "examples/error_boundary" },
|
2023-02-02 01:36:37 +00:00
|
|
|
{ name = "check", path = "examples/errors_axum" },
|
|
|
|
{ name = "check", path = "examples/fetch" },
|
|
|
|
{ name = "check", path = "examples/hackernews" },
|
|
|
|
{ name = "check", path = "examples/hackernews_axum" },
|
2023-06-14 19:16:14 +00:00
|
|
|
{ name = "check", path = "examples/js-framework-benchmark" },
|
|
|
|
{ name = "check", path = "examples/leptos-tailwind-axum" },
|
2023-02-28 20:33:02 +00:00
|
|
|
{ name = "check", path = "examples/login_with_token_csr_only" },
|
2023-02-02 01:36:37 +00:00
|
|
|
{ name = "check", path = "examples/parent_child" },
|
|
|
|
{ name = "check", path = "examples/router" },
|
2023-03-07 02:16:56 +00:00
|
|
|
{ name = "check", path = "examples/session_auth_axum" },
|
2023-04-21 18:36:38 +00:00
|
|
|
{ name = "check", path = "examples/slots" },
|
2023-02-28 20:33:02 +00:00
|
|
|
{ name = "check", path = "examples/ssr_modes" },
|
|
|
|
{ name = "check", path = "examples/ssr_modes_axum" },
|
2023-02-02 01:36:37 +00:00
|
|
|
{ name = "check", path = "examples/tailwind" },
|
2023-03-17 16:45:49 +00:00
|
|
|
{ name = "check", path = "examples/tailwind_csr_trunk" },
|
2023-06-14 19:16:14 +00:00
|
|
|
{ name = "check", path = "examples/timer" },
|
2023-02-02 01:36:37 +00:00
|
|
|
{ name = "check", path = "examples/todo_app_sqlite" },
|
|
|
|
{ name = "check", path = "examples/todo_app_sqlite_axum" },
|
2023-02-21 17:29:15 +00:00
|
|
|
{ name = "check", path = "examples/todo_app_sqlite_viz" },
|
2023-02-02 01:36:37 +00:00
|
|
|
{ name = "check", path = "examples/todomvc" },
|
2023-01-02 18:29:37 +00:00
|
|
|
]
|
|
|
|
|
2023-03-13 11:25:08 +00:00
|
|
|
[tasks.check-stable]
|
|
|
|
clear = true
|
|
|
|
dependencies = [
|
|
|
|
{ name = "check", path = "examples/counter_without_macros" },
|
|
|
|
{ name = "check", path = "examples/counters_stable" },
|
|
|
|
]
|
|
|
|
|
2022-11-03 01:46:32 +00:00
|
|
|
[tasks.test]
|
|
|
|
clear = true
|
2023-05-08 12:35:27 +00:00
|
|
|
dependencies = [
|
|
|
|
"test-all",
|
|
|
|
"test-leptos_macro-example",
|
|
|
|
"doc-leptos_macro-example",
|
|
|
|
]
|
2022-11-03 01:46:32 +00:00
|
|
|
|
|
|
|
[tasks.test-all]
|
|
|
|
command = "cargo"
|
|
|
|
args = ["+nightly", "test-all-features"]
|
|
|
|
install_crate = "cargo-all-features"
|
2023-04-07 13:28:48 +00:00
|
|
|
|
2023-04-27 20:43:38 +00:00
|
|
|
[tasks.test-leptos_macro-example]
|
|
|
|
description = "Tests the leptos_macro/example to check if macro handles doc comments correctly"
|
|
|
|
command = "cargo"
|
|
|
|
args = ["+nightly", "test", "--doc"]
|
|
|
|
cwd = "leptos_macro/example"
|
|
|
|
install_crate = false
|
|
|
|
|
2023-04-28 20:03:04 +00:00
|
|
|
[tasks.doc-leptos_macro-example]
|
|
|
|
description = "Docs the leptos_macro/example to check if macro handles doc comments correctly"
|
|
|
|
command = "cargo"
|
|
|
|
args = ["+nightly", "doc"]
|
|
|
|
cwd = "leptos_macro/example"
|
|
|
|
install_crate = false
|
|
|
|
|
2023-07-10 00:47:10 +00:00
|
|
|
[tasks.ci-examples]
|
2023-04-21 14:33:12 +00:00
|
|
|
cwd = "examples"
|
|
|
|
command = "cargo"
|
2023-07-10 00:47:10 +00:00
|
|
|
args = ["make", "ci-clean"]
|
2023-04-21 14:33:12 +00:00
|
|
|
|
2023-05-08 12:35:27 +00:00
|
|
|
[tasks.clean-examples]
|
|
|
|
cwd = "examples"
|
|
|
|
command = "cargo"
|
2023-07-10 00:47:10 +00:00
|
|
|
args = ["make", "clean"]
|
2023-05-08 12:35:27 +00:00
|
|
|
|
2023-04-07 13:28:48 +00:00
|
|
|
[env]
|
2023-04-21 14:33:12 +00:00
|
|
|
RUSTFLAGS = ""
|
2023-05-08 12:35:27 +00:00
|
|
|
LEPTOS_OUTPUT_NAME = "ci" # allows examples to check/build without cargo-leptos
|
2023-04-07 13:28:48 +00:00
|
|
|
|
|
|
|
[env.github-actions]
|
2023-04-21 14:33:12 +00:00
|
|
|
RUSTFLAGS = "-D warnings"
|