2022-02-01 19:07:03 +00:00
|
|
|
.PHONY: ng2 ng4 ng5 ng6 ng7 ng8 ng9 ng10 ng11 ng12 ng13
|
|
|
|
ng2 ng4 ng5 ng6 ng7 ng8 ng9 ng10 ng11 ng12 ng13:
|
2021-10-03 01:41:36 +00:00
|
|
|
rm -f angular.json tsconfig.app.json src/polyfills.ts
|
|
|
|
cp versions/package.json-$@ package.json
|
|
|
|
if [ -e versions/angular.json-$@ ]; then cp versions/angular.json-$@ angular.json; fi
|
|
|
|
if [ -e versions/tsconfig.app.json-$@ ]; then cp versions/tsconfig.app.json-$@ tsconfig.app.json; fi
|
|
|
|
if [ -e versions/polyfills.ts-$@ ]; then cp versions/polyfills.ts-$@ src/polyfills.ts; fi
|
2018-02-03 20:46:32 +00:00
|
|
|
rm -rf node_modules
|
2017-11-05 19:18:35 +00:00
|
|
|
if [ ! -e node_modules ]; then mkdir node_modules; fi
|
2022-02-14 01:28:13 +00:00
|
|
|
npm install
|
2017-11-05 19:18:35 +00:00
|
|
|
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
|
|
|
|
2022-02-14 01:28:13 +00:00
|
|
|
.PHONY: refresh
|
|
|
|
refresh: ## refresh the `xlsx` symlink to force angular to rebuild
|
2022-03-12 14:05:57 +00:00
|
|
|
rm -rf .angular/
|
2022-02-14 01:28:13 +00:00
|
|
|
rm -f node_modules/xlsx
|
|
|
|
cd node_modules; ln -s ../../../ xlsx; cd -
|
|
|
|
touch node_modules/xlsx
|
|
|
|
|
2021-10-03 01:41:36 +00:00
|
|
|
.PHONY: all
|
|
|
|
all:
|
2022-02-01 19:07:03 +00:00
|
|
|
for i in 2 4 5 6 7 8 9 10 11 12 13; do make ng$$i; done
|
2021-10-03 01:41:36 +00:00
|
|
|
|
2018-01-09 07:36:02 +00:00
|
|
|
.PHONY: ionic
|
|
|
|
ionic:
|
|
|
|
bash ./ionic.sh
|
|
|
|
|
|
|
|
.PHONY: ios android browser
|
2021-10-03 01:41:36 +00:00
|
|
|
ios browser: ionic
|
2018-01-09 07:36:02 +00:00
|
|
|
cd SheetJSIonic; ionic cordova emulate $@ </dev/null; cd -
|
2021-10-03 01:41:36 +00:00
|
|
|
android: ionic
|
|
|
|
cd SheetJSIonic; ionic cordova prepare $@ </dev/null; ionic cordova emulate $@ </dev/null; cd -
|
|
|
|
|
2018-01-09 07:36:02 +00:00
|
|
|
|
2018-03-29 04:31:36 +00:00
|
|
|
.PHONY: nativescript
|
|
|
|
nativescript:
|
|
|
|
bash ./nscript.sh
|
|
|
|
|
|
|
|
.PHONY: ns-ios ns-android
|
|
|
|
ns-ios: nativescript
|
2021-10-03 01:41:36 +00:00
|
|
|
cd SheetJSNS; ns run ios; cd -
|
2018-03-29 04:31:36 +00:00
|
|
|
ns-android: nativescript
|
2021-10-03 01:41:36 +00:00
|
|
|
cd SheetJSNS; ns run android; cd -
|
2018-03-29 04:31:36 +00:00
|
|
|
|