diff --git a/Makefile b/Makefile deleted file mode 100644 index ff9f3bb..0000000 --- a/Makefile +++ /dev/null @@ -1,4 +0,0 @@ -.PHONY: run-postgres - -run-postgres: - docker run --rm -it -e POSTGRES_PASSWORD=guest -v "./pgdata:/var/lib/postgresql/data" -p 127.0.0.1:5432:5432 postgres:17 diff --git a/bacon.toml b/bacon.toml deleted file mode 100644 index 058cff5..0000000 --- a/bacon.toml +++ /dev/null @@ -1,47 +0,0 @@ -default_job = "check" -env.CARGO_TERM_COLOR = "always" - -[jobs.clippy] -command = ["cargo", "clippy"] -need_stdout = false -watch = ["interim-*"] - -[jobs.check] -command = ["cargo", "check"] -need_stdout = false - -[jobs.run-worker] -command = [ - "cargo", "run", "worker", -] -need_stdout = true -allow_warnings = true -background = true -default_watch = false - -[jobs.run-server] -command = ["cargo", "run", "serve"] -need_stdout = true -allow_warnings = true -background = false -on_change_strategy = "kill_then_restart" -kill = ["kill", "-s", "INT"] -watch = ["interim-*", "components/src"] - -[jobs.watch-components] -command = ["deno", "task", "--cwd=components", "build"] -default_watch = false -watch = ["components/src"] -need_stdout = true -allow_warnings = true -background = false - -# You may define here keybindings that would be specific to -# a project, for example a shortcut to launch a specific job. -# Shortcuts to internal functions (scrolling, toggling, etc.) -# should go in your personal global prefs.toml file instead. -[keybindings] -b = "job:watch-components" -c = "job:clippy" -r = "job:run-server" -w = "job:run-worker" diff --git a/mise.toml b/mise.toml new file mode 100644 index 0000000..b452af1 --- /dev/null +++ b/mise.toml @@ -0,0 +1,19 @@ +[tools] +jujutsu = "latest" +rust = { version = "1.88.0", components = "rust-analyzer,clippy" } +watchexec = "latest" + +[tasks.postgres] +run = "docker run --rm -it -e POSTGRES_PASSWORD=guest -v './pgdata:/var/lib/postgresql/data' -p 127.0.0.1:5432:5432 postgres:17" + +[tasks.server] +run = "cargo run serve" +sources = ["./**/src/**/*.rs", "./**/Cargo.toml", "./**/templates/**/*.html", "./components/src/**/*.tsx?"] + +[tasks.vite] +run = "deno task build" +dir = "./components" + +[env] +RUST_LOG = "debug" +RUST_BACKTRACE = "1"