diff options
| author | Fuwn <[email protected]> | 2021-05-12 23:48:04 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-12 23:48:04 -0700 |
| commit | c7a282bd3f96c0e3cc0807aabd5b7104df6effc9 (patch) | |
| tree | 64818c0add5762ba1ae83c8d9e7aa7bdb605f6f2 /Makefile.toml | |
| download | lime-main.tar.xz lime-main.zip | |
Diffstat (limited to 'Makefile.toml')
| -rw-r--r-- | Makefile.toml | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/Makefile.toml b/Makefile.toml new file mode 100644 index 0000000..5f7f762 --- /dev/null +++ b/Makefile.toml @@ -0,0 +1,72 @@ +# ------------ +# | Wrappers | +# ------------ +[tasks.fmt] +command = "cargo" +args = ["fmt"] +private = true + +[tasks.check] +command = "cargo" +args = ["check"] +private = true + +[tasks.clippy] +command = "cargo" +args = ["clippy"] +private = true + +# ------------- +# | Executors | +# ------------- +[tasks.checkf] +dependencies = ["fmt", "check"] + +[tasks.checkfc] +dependencies = ["fmt", "check", "clippy"] + +[tasks.run] +dependencies = ["checkf"] +command = "cargo" +args = ["run"] + +[tasks.runw] +dependencies = ["checkf"] +command = "cargo" +args = ["run"] +watch = true + +[tasks.docker-build] +command = "nix-build" +args = ["docker.nix"] + +[tasks.docker-load] +script_runner = "@shell" +script = ''' +docker load < result +''' + +[tasks.docker-run] +command = "docker" +args = [ + "run", + "--name", "lime", + # API + "-p", "8000:8000", + "fuwn/lime" +] + +[tasks.docker-run-i] +command = "docker" +args = [ + "run", + "-it", + "--name", "lime", + # API + "-p", "8000:8000", + "fuwn/lime" +] + +# Build 'n' load +[tasks.bnl] +dependencies = ["docker-build", "docker-load"] |