build 352 B

123456789101112131415161718
  1. #!/bin/bash -e
  2. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  3. cd ${DIR}
  4. git clean -x -f dist
  5. npm install
  6. bower install
  7. grunt build
  8. go get github.com/jteeuwen/go-bindata/...
  9. dirs=
  10. for i in `find dist -type d`; do
  11. dirs="${dirs} ${i}"
  12. done
  13. ${GOPATH}/bin/go-bindata -nomemcopy -pkg "resources" -o resources/resources.go -prefix dist ${dirs}