I’m working on all new
framework7-cli that will be the most recommended way of setting up new Framework7 project from v4 release.
It is a way better than few templates we have as it allows to create project dynamically as it allows:
- to select template: Single View, Tabs, Split View
- to choose framework: F7 Core, F7 Vue, F7 React
- to choose target: Web app, PWA, or Cordova
- to specify custom color theme from the start
- to choose bundler: No bundler, Webpack or Rollup (coming later)
- to generate required icons and splash screen
So it is a pretty powerful tool to start Framework7 app development.
I need you feedback and help with testing this out. Beta is already available.
First of all make sure you have globally installed cordova (may require “sudo”):
$ npm install -g cordova
Then install framework7-cli (may require “sudo”):
$ npm install -g [email protected]
Create Framework7 app
To create Framework7 app, run the following command in the directory where you want to create app:
$ framework7 create
Program will prompt for few questions about framework and template you want to start with.
Create Framework7 app with user interface
Run the following command in the directory where you want to create app:
$ framework7 create --ui
It will launch UI where you will be able to configure the project.
To run cordova related commands run the following command in the project root directory:
$ framework7 cordova [..args]
$ framework7 cordova plugin add cordova-plugin-statusbar $ framework7 cordova plugin add cordova-plugin-splashscreen $ framework7 cordova build ios ...