mirror of
https://github.com/Xevion/dynamic-preauth.git
synced 2025-12-18 06:11:45 -06:00
chore: add bacon config and improve dev workflow
- 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
This commit is contained in:
36
bacon.toml
Normal file
36
bacon.toml
Normal file
@@ -0,0 +1,36 @@
|
||||
# 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"
|
||||
Reference in New Issue
Block a user