2017-09-12 20:02:06 +00:00
|
|
|
.PHONY: react
|
2020-06-11 23:20:51 +00:00
|
|
|
react: init ## Simple server for react and clones
|
2017-09-12 20:02:06 +00:00
|
|
|
python -mSimpleHTTPServer
|
|
|
|
|
|
|
|
.PHONY: next
|
2017-09-24 23:40:09 +00:00
|
|
|
next: init ## next.js demo
|
2018-02-03 20:46:32 +00:00
|
|
|
mkdir -p pages static
|
2021-03-30 22:28:10 +00:00
|
|
|
cat nexthdr.js sheetjs.js > pages/sheetjs.js
|
2018-02-03 20:46:32 +00:00
|
|
|
cp ../../shim.js static/shim.js
|
2017-09-12 20:02:06 +00:00
|
|
|
next
|
|
|
|
|
|
|
|
.PHONY: native
|
|
|
|
native: ## Build react-native project
|
|
|
|
bash ./native.sh
|
|
|
|
|
|
|
|
.PHONY: ios
|
|
|
|
ios: native ## react-native ios sim
|
2021-03-30 22:28:10 +00:00
|
|
|
cd SheetJS; cd ios; pod install; cd -; react-native run-ios --simulator="iPhone X"; cd -
|
2017-09-12 20:02:06 +00:00
|
|
|
|
|
|
|
.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 -
|