Tiny CLI for running commands on file change. Inspired by nodemon.
Download any of the binaries or :
go get -u get github.com/noelukwa/grape
or
go install github.com/noelukwa/grape
In your working directory, create a grape.json
file.
grape init
Create a namespace or run the default with:
grape run dev
Watch and run commands without a config file:
grape on -e ".*go" -c "go run main.go"
{
"dev": {
"watch": [
".*go"
],
"command": "go run main.go"
},
"build": {
"watch": [
".*go"
],
"command": "go build -o main main.go"
}
}
watch
is an array of regex patterns to match files to watchcommand
is the command to run when a file is changedbuid,dev
are namespaces to run commands and can be any string
🚧 Under development 🚧