[docs] Add notes on cordova, different browser targets

This commit is contained in:
Ferdinand Thiessen 2021-11-23 15:59:16 +01:00
parent ade6d06eb6
commit 664def40fc
2 changed files with 25 additions and 13 deletions

View File

@ -8,9 +8,9 @@ Modular student club administration system, licensed under the MIT license.
``` ```
"engines": { "engines": {
"node": ">= 12.22.1", "node": ">= 14.18.1",
"npm": ">= 6.14.12", "npm": ">= 6.14.12",
"yarn": ">= 1.21.1" "yarn": ">= 1.22.0"
} }
``` ```
@ -18,9 +18,9 @@ So on debian (buster and bullseye) you will need to install node.js and yarn bes
```bash ```bash
pushd ~/opt pushd ~/opt
wget https://nodejs.org/dist/v16.2.0/node-v16.2.0-linux-x64.tar.xz wget https://nodejs.org/dist/latest-v16.x/node-v16.13.0-linux-x64.tar.xz
tar -xJf node-v16.2.0-linux-x64.tar.xz tar -xJf node-v16.13.0-linux-x64.tar.xz
export PATH="$(pwd)/node-v16.2.0-linux-x64/bin":"$PATH" export PATH="$(pwd)/node-v16.13.0-linux-x64/bin":"$PATH"
npm i -g yarn npm i -g yarn
npm i -g @quasar/cli npm i -g @quasar/cli
popd popd
@ -74,6 +74,13 @@ This access needs to be configured in `src/config.ts'->config.baseURL
yarn quasar build yarn quasar build
``` ```
### Notes on mobile apps (Cordova)
For mobile applications older web engines should or must be supported,
as manufaturer often do not update their phones, so for building cordova apps set the `BROWSERSLIST_ENV` environment variable to
`BROWSERSLIST_ENV=cordova`.
This will produce ECDMAscript compatible with iOS 13+ and Android Webview 76 (relased October 2019).
## Development ## Development
Please refer to out [development wiki](https://flaschengeist.dev/Flaschengeist/flaschengeist/wiki/Development). Please refer to our [development wiki](https://flaschengeist.dev/Flaschengeist/flaschengeist/wiki/Development).

View File

@ -46,16 +46,21 @@
"printWidth": 100, "printWidth": 100,
"arrowParens": "always" "arrowParens": "always"
}, },
"browserslist": [ "browserslist": {
"last 10 Chrome versions", "defaults": [
"last 10 Firefox versions", "Firefox esr",
"last 6 Chrome versions",
"last 4 Firefox versions",
"last 4 Edge versions", "last 4 Edge versions",
"last 4 Safari versions", "last 4 Safari versions",
"last 8 Android versions", "last 4 ChromeAndroid versions",
"last 1 ChromeAndroid versions", "last 1 FirefoxAndroid versions"
"last 1 FirefoxAndroid versions",
"last 6 iOS versions"
], ],
"cordova": [
"iOS >= 13.0",
"Android >= 76"
]
},
"engines": { "engines": {
"node": ">= 14.18.1", "node": ">= 14.18.1",
"npm": ">= 6.14.12", "npm": ">= 6.14.12",