Precompile JSX, build with make

This commit is contained in:
2015-02-08 21:21:25 +07:00
parent 54b1aa9c56
commit 6563736fae
3 changed files with 22 additions and 4 deletions
+17
View File
@@ -0,0 +1,17 @@
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
cleanup:
find . -name '.DS_Store' | xargs rm -f
embed:
rice -i ./server embed-go
build:
go build