Framework7 app created with following options:
{
"cwd": "/mnt/g/THISISLAPTOP2N1/Documents/University/8 - Fall 2022/NMED 3630/Exercises/Exercise 4/fraim",
"type": [
"cordova"
],
"name": "Fraim",
"framework": "core",
"template": "tabs",
"bundler": "vite",
"cssPreProcessor": "scss",
"theming": {
"customColor": true,
"color": "#f59529",
"darkTheme": false,
"iconFonts": true,
"fillBars": false
},
"customBuild": false,
"pkg": "io.framework7.fraim",
"cordova": {
"folder": "cordova",
"platforms": [
"ios",
"android"
],
"plugins": [
"cordova-plugin-statusbar",
"cordova-plugin-keyboard",
"cordova-plugin-splashscreen",
"cordova-plugin-device",
"cordova-plugin-inappbrowser",
"cordova-plugin-file",
"cordova-plugin-media"
]
}
}
First of all we need to install dependencies, run in terminal
npm install
- ๐ฅ
start
- run development server - ๐ง
dev
- run development server - ๐ง
build
- build web app for production - ๐ฑ
build-cordova
- build cordova app - ๐ฑ
build-cordova-ios
- build cordova iOS app - ๐ฑ
cordova-ios
- run dev build cordova iOS app - ๐ฑ
build-cordova-android
- build cordova Android app - ๐ฑ
cordova-android
- run dev build cordova Android app
npm install # 1. install dependencies
npm run cordova-add-android # 2. add android platform to cordova
npm run cordova-android # 3. run cordova android app
There is a Vite bundler setup. It compiles and bundles all "front-end" resources. You should work only with files located in /src
folder. Vite config located in vite.config.js
.
Cordova project located in cordova
folder. You shouldn't modify content of cordova/www
folder. Its content will be correctly generated when you call npm run cordova-build-prod
.
Assets (icons, splash screens) source images located in assets-src
folder. To generate your own icons and splash screen images, you will need to replace all assets in this directory with your own images (pay attention to image size and format), and run the following command in the project directory:
framework7 assets
Or launch UI where you will be able to change icons and splash screens:
framework7 assets --ui
Love Framework7? Support project by donating or pledging on:
- Patreon: https://patreon.com/framework7
- OpenCollective: https://opencollective.com/framework7