Minimalistic task runner.
To install or update run the following command.
go get -u github.com/grzegorz-zur/loop
Create .loop.json
.
{
"include" : [
"*.go",
"go.mod"
],
"exclude" : [
".*"
],
"execute": [
{
"exec": "gofmt",
"args": [ "-s", "-w", "./..." ]
},
{
"exec": "golint",
"args": [ "-set_exit_status", "./..." ]
},
{
"exec": "go",
"args": [ "vet", "./..." ]
},
{
"exec": "go",
"args": [ "build", "./..." ]
},
{
"exec": "go",
"args": [ "test", "-timeout", "5s", "./..." ]
},
{
"exec": "go",
"args": [ "test", "-timeout", "5s", "-race", "-cover", "./..." ],
"env": {
"CGO_ENABLED": "1"
}
}
],
"run" : {
"exec": "./app",
"args": [ "-addr=:8443" ]
}
}
loop