2018-02-21 07:01:34 +00:00
|
|
|
.PHONY: all
|
|
|
|
all: angular5
|
2017-06-21 23:10:36 +00:00
|
|
|
|
2018-02-21 07:01:34 +00:00
|
|
|
.PHONY: angular2 angular4 angular5
|
|
|
|
angular2 angular4 angular5:
|
|
|
|
cp package.json-$@ package.json
|
2018-02-03 20:46:32 +00:00
|
|
|
rm -rf node_modules
|
2017-11-05 19:18:35 +00:00
|
|
|
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
|
2018-02-03 20:46:32 +00:00
|
|
|
npm run build
|
2017-11-05 19:18:35 +00:00
|
|
|
|
2018-01-09 07:36:02 +00:00
|
|
|
.PHONY: ionic
|
|
|
|
ionic:
|
|
|
|
bash ./ionic.sh
|
|
|
|
|
|
|
|
.PHONY: ios android browser
|
|
|
|
ios android browser: ionic
|
|
|
|
cd SheetJSIonic; ionic cordova emulate $@ </dev/null; cd -
|
|
|
|
|
2018-03-29 04:31:36 +00:00
|
|
|
.PHONY: nativescript
|
|
|
|
nativescript:
|
|
|
|
bash ./nscript.sh
|
|
|
|
|
|
|
|
.PHONY: ns-ios ns-android
|
|
|
|
ns-ios: nativescript
|
|
|
|
cd SheetJSNS; tns run ios; cd -
|
|
|
|
ns-android: nativescript
|
|
|
|
cd SheetJSNS; tns run android; cd -
|
|
|
|
|