sheetjs_sheetjs/demos/react/Makefile

28 lines
682 B
Makefile
Raw Normal View History

.PHONY: react
react: ## Simple server for react and clones
python -mSimpleHTTPServer
.PHONY: next
2017-09-24 23:40:09 +00:00
next: init ## next.js demo
mkdir -p pages
2017-09-24 23:40:09 +00:00
cat nexthdr.js sheetjs.jsx > pages/sheetjs.js
next
.PHONY: native
native: ## Build react-native project
bash ./native.sh
.PHONY: ios
ios: native ## react-native ios sim
cd SheetJS; react-native run-ios; cd -
.PHONY: android
android: native ## react-native android sim
cd SheetJS; react-native run-android; cd -
2017-09-24 23:40:09 +00:00
.PHONY: init
init: ## set up node_modules and symlink
mkdir -p node_modules
cd node_modules; if [ ! -e xlsx ]; then ln -s ../../../ xlsx; fi; cd -
if [ ! -e node_modules/file-saver ]; then npm install file-saver; fi