diff --git a/README.md b/README.md index fa78138..2f43294 100644 --- a/README.md +++ b/README.md @@ -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 ` or `bacon dev -- ` + ### `cargo-xtask` - `cargo xtask build $PLUGIN` - Build the plugin for the current platform. diff --git a/bacon.toml b/bacon.toml new file mode 100644 index 0000000..1c3d660 --- /dev/null +++ b/bacon.toml @@ -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 \ No newline at end of file diff --git a/justfile b/justfile index e4e48e7..22b5d83 100644 --- a/justfile +++ b/justfile @@ -4,5 +4,8 @@ build PLUGIN: install PLUGIN: cargo xtask install {{PLUGIN}} +dev PLUGIN: + bacon dev -- {{PLUGIN}} + list-plugins: cargo xtask list-plugins \ No newline at end of file