init mise
This commit is contained in:
parent
2b9e3ccf96
commit
4558aaa66d
3 changed files with 19 additions and 51 deletions
4
Makefile
4
Makefile
|
|
@ -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
|
||||
47
bacon.toml
47
bacon.toml
|
|
@ -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"
|
||||
19
mise.toml
Normal file
19
mise.toml
Normal file
|
|
@ -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"
|
||||
Loading…
Add table
Reference in a new issue