Skip to content

Commit

Permalink
chore: add bacon for file watching during dev (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosofo authored Nov 4, 2024
1 parent 5149329 commit 417d4de
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ into a C++ plugin that can be loaded in TouchDesigner.

`cargo-xtask` is used for the build framework. A [`justfile`](./justfile) is also provided.

### Dev/Watch Command

You can use [bacon](https://dystroy.org/bacon) to watch for changes and build + install for you.

1. `cargo install bacon`
2. `just dev <name>` or `bacon dev -- <name>`

### `cargo-xtask`

- `cargo xtask build $PLUGIN` - Build the plugin for the current platform.
Expand Down
16 changes: 16 additions & 0 deletions bacon.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[jobs.dev]
command = [
"cargo", "xtask",
"build",
]
need_stdout = true
background = false
on_success = "job:install"

[jobs.install]
command = [
"cargo", "xtask",
"install",
]
need_stdout = true
background = false
3 changes: 3 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ build PLUGIN:
install PLUGIN:
cargo xtask install {{PLUGIN}}

dev PLUGIN:
bacon dev -- {{PLUGIN}}

list-plugins:
cargo xtask list-plugins

0 comments on commit 417d4de

Please sign in to comment.