diff --git a/.prototools b/.prototools index 29a63fd..81f18ba 100644 --- a/.prototools +++ b/.prototools @@ -33,6 +33,7 @@ task = "3.35.1" traefik = "2.11.0" trufflehog = "3.69.0" uv = "0.1.13" +watchexec = "2.0.0" wizer = "4.0.0" [plugins] @@ -68,6 +69,7 @@ task = "source:task/plugin.toml" traefik = "source:traefik/plugin.toml" trufflehog = "source:trufflehog/plugin.toml" uv = "source:uv/plugin.toml" +watchexec = "source:watchexec/plugin.toml" wizer = "source:wizer/plugin.toml" [settings] diff --git a/README.md b/README.md index 08681dd..935ae20 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ A growing collection of proto TOML plugins. - [Traefik](traefik/README.md) - [TruffleHog](trufflehog/README.md) - [uv](uv/README.md) +- [watchexec](watchexec/README.md) - [Wizer](wizer/README.md) ## See also diff --git a/watchexec/README.md b/watchexec/README.md new file mode 100644 index 0000000..6a46c21 --- /dev/null +++ b/watchexec/README.md @@ -0,0 +1,21 @@ +# watchexec plugin + +[watchexec](https://github.com/watchexec/watchexec) plugin for [proto](https://github.com/moonrepo/proto). + +## Installation + +This is a community plugin and is thus not built-in to proto. In order to use it, first either add it to your global or project-based `.prototools` by running: + +### Global install + +```shell +proto plugin add watchexec "source:https://raw.githubusercontent.com/Phault/proto-toml-plugins/main/watchexec/plugin.toml" --global +proto install watchexec +``` + +### Per-project install + +```shell +proto plugin add watchexec "source:https://raw.githubusercontent.com/Phault/proto-toml-plugins/main/watchexec/plugin.toml" +proto pin watchexec latest --resolve +``` diff --git a/watchexec/plugin.toml b/watchexec/plugin.toml new file mode 100644 index 0000000..8c96968 --- /dev/null +++ b/watchexec/plugin.toml @@ -0,0 +1,20 @@ +name = "watchexec" +type = "cli" + +[resolve] +git-url = "https://github.com/watchexec/watchexec" + +[platform.linux] +archive-prefix = "watchexec-{version}-{arch}-unknown-linux-musl" +download-file = "watchexec-{version}-{arch}-unknown-linux-musl.tar.xz" + +[platform.macos] +archive-prefix = "watchexec-{version}-{arch}-apple-darwin" +download-file = "watchexec-{version}-{arch}-apple-darwin.tar.xz" + +[platform.windows] +archive-prefix = "watchexec-{version}-{arch}-pc-windows-msvc" +download-file = "watchexec-{version}-{arch}-pc-windows-msvc.zip" + +[install] +download-url = "https://github.com/watchexec/watchexec/releases/download/v{version}/{download_file}"