Skip to content

Instantly share code, notes, and snippets.

@wader
Created September 6, 2017 15:38
Show Gist options
  • Save wader/de8bf72cc6adaa1b2a6ee07b790e6451 to your computer and use it in GitHub Desktop.
Save wader/de8bf72cc6adaa1b2a6ee07b790e6451 to your computer and use it in GitHub Desktop.
{
daemon: cd app && webpack -w
}
cmd/**/*.go store/**/*.go handler/**/*.go templates/**/*.html {
prep: go install
daemon: app
# tell devd to reload browser (uses sleep to make it a "daemon" and be restarted when prep:s are done)
daemon: sleep 0.3s; pkill -HUP devd; exec sleep inf
}
app/dist/bundle.js {
# localhost:8080 is the go web server
daemon: devd -qml -w ./app/static -A 0.0.0.0 -p 8081 http://localhost:8080
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment