mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 14:54:16 +00:00
c53fc67d38
* Add task for cargo leptos w/ precompression * Update makefile * Update deps * Serve precompressed assets Code was taken from https://github.com/leptos-rs/cargo-leptos/pull/165#issuecomment-1647843037 Co-authored-by: Sebastian Dobe <sebastiandobe@mailbox.org> * Dynamically compress html * Update README * Refactor: Format for ci * Refactor: Replace use of format! * Chore: Remove old build file * Feat: Hash files This will prevent users from using an old cached file after updates are made * Fix: Prevent chicken & egg problem with target/site * Refactor: Use normal cargo-leptos --------- Co-authored-by: Sebastian Dobe <sebastiandobe@mailbox.org>
44 lines
No EOL
990 B
TOML
44 lines
No EOL
990 B
TOML
extend = [
|
|
{ path = "./lint.toml" }
|
|
]
|
|
|
|
[tasks.make-target-site-dir]
|
|
command = "mkdir"
|
|
args = ["-p", "target/site"]
|
|
|
|
[tasks.install-cargo-leptos]
|
|
install_crate = { crate_name = "cargo-leptos", binary = "cargo-leptos", test_arg = "--help" }
|
|
|
|
[tasks.cargo-leptos-e2e]
|
|
command = "cargo"
|
|
args = ["leptos", "end-to-end"]
|
|
|
|
[tasks.build]
|
|
clear = true
|
|
command = "cargo"
|
|
dependencies = ["make-target-site-dir"]
|
|
args = ["leptos", "build", "--release", "-P"]
|
|
|
|
[tasks.check]
|
|
clear = true
|
|
dependencies = ["check-debug", "check-release"]
|
|
|
|
[tasks.check-debug]
|
|
toolchain = "stable"
|
|
command = "cargo"
|
|
args = ["check-all-features"]
|
|
install_crate = "cargo-all-features"
|
|
|
|
[tasks.check-release]
|
|
toolchain = "stable"
|
|
command = "cargo"
|
|
args = ["check-all-features", "--release"]
|
|
install_crate = "cargo-all-features"
|
|
|
|
[tasks.lint]
|
|
dependencies = ["make-target-site-dir", "check-style"]
|
|
|
|
[tasks.start-client]
|
|
dependencies = ["install-cargo-leptos"]
|
|
command = "cargo"
|
|
args = ["leptos", "watch", "--release", "-P"] |