2015-02-08 14:21:25 +00:00
|
|
|
all: jsx cleanup embed build
|
|
|
|
|
|
|
|
check-react:
|
|
|
|
@type jsx >/dev/null 2>&1 || (echo "Please install React.js toolkit:\nnpm install -g react-tools\n" && exit 1)
|
|
|
|
|
|
|
|
jsx: check-react
|
|
|
|
jsx --extension jsx server/static/ server/static/
|
|
|
|
rm -rf server/static/.module-cache
|
|
|
|
|
2015-02-08 14:40:05 +00:00
|
|
|
watch:
|
|
|
|
jsx --watch --extension jsx server/static/ server/static/
|
|
|
|
|
2015-02-08 14:21:25 +00:00
|
|
|
cleanup:
|
|
|
|
find . -name '.DS_Store' | xargs rm -f
|
|
|
|
|
|
|
|
embed:
|
|
|
|
rice -i ./server embed-go
|
|
|
|
|
|
|
|
build:
|
|
|
|
go build
|