xsheetjs/demos/angular2/Makefile

21 lines
468 B
Makefile
Raw Normal View History

.PHONY: all
all: angular5
2017-06-21 23:10:36 +00:00
.PHONY: angular2 angular4 angular5
angular2 angular4 angular5:
cp package.json-$@ package.json
rm -rf node_modules
npm install
if [ ! -e node_modules ]; then mkdir node_modules; fi
if [ ! -e node_modules/xlsx ]; then cd node_modules; ln -s ../../../ xlsx; cd -; fi
npm run build
.PHONY: ionic
ionic:
bash ./ionic.sh
.PHONY: ios android browser
ios android browser: ionic
cd SheetJSIonic; ionic cordova emulate $@ </dev/null; cd -