mirror of
https://github.com/Xevion/dynamic-preauth.git
synced 2025-12-16 00:11:37 -06:00
- Add bacon.toml for Rust development watching with keybindings - Update Justfile to use bacon for dev watching - Configure frontend to build to ./public for backend serving - Improve Justfile organization with comments and better task separation - Add dev-backend and dev-frontend tasks for separate workflows - Minor formatting fix in backend/src/state.rs
37 lines
960 B
TOML
37 lines
960 B
TOML
# Bacon configuration for dynamic-preauth
|
|
|
|
default_job = "check"
|
|
|
|
[jobs.check]
|
|
command = ["cargo", "check", "--workspace", "--all-targets", "--all-features", "--color", "always"]
|
|
need_stdout = false
|
|
|
|
[jobs.clippy]
|
|
command = ["cargo", "clippy", "--workspace", "--all-targets", "--all-features", "--color", "always", "--", "-D", "warnings"]
|
|
need_stdout = false
|
|
|
|
[jobs.test]
|
|
command = ["cargo", "test", "--workspace", "--color", "always"]
|
|
need_stdout = true
|
|
|
|
[jobs.run]
|
|
command = ["cargo", "run", "--bin", "dynamic-preauth", "--color", "always"]
|
|
need_stdout = true
|
|
on_success = "back"
|
|
|
|
[jobs.doc]
|
|
command = ["cargo", "doc", "--workspace", "--all-features", "--no-deps", "--color", "always"]
|
|
need_stdout = false
|
|
|
|
[keybindings]
|
|
# Use 'c' to switch to check job
|
|
c = "job:check"
|
|
# Use 'l' to switch to clippy job
|
|
l = "job:clippy"
|
|
# Use 't' to switch to test job
|
|
t = "job:test"
|
|
# Use 'r' to switch to run job
|
|
r = "job:run"
|
|
# Use 'd' to switch to doc job
|
|
d = "job:doc"
|