This cli tool watches all changes from a file and executes a provide command.
go get github.com/tatthien/wacp
For non-Go users
curl -sf https://gobinaries.com/tatthien/wacp | sh
Usage: wacp -src <source path> -dest <destination path>
-src extension entrypoint source (optional). Default: ./dist/index.js
-onChange command to be executed after file changed
# Copy index.js to a new path after its content has been modified.
$ wacp -src index.js -onChange "cp index.js /new/path/index.js"
Copyright (c) 2022-present, Thien Nguyen