Framework7 - Vue - Webpack Cordova Template
You can start your new cordova project perfectly with this template.
This template uses:
- Cordova: 6.0.0
- Node.js: 6.5.0 (Supports ES6)
Hooks are smart. They can fix some problems for you. Fix list:
npm installAutomatically checks node js dependencies.
namevariable if it has a space characters and auto saves. (It needed for npm install)
wwwfolder. You don't need to think about www folder. Your target is always
cordova.jsto html. You don't need to add to your file manually. It's helpful for webpack.
manifest.jsonSome cordova plugins needs manifest.json in root folder. If you add manifest.json file to your
srcfolder, our smart hooks automagically copy it to
Live Reload Related
config.xmlLive reload needs
<allow-navigation href="*"/>in development mode. So our smart hooks manages this too. You don't need to think about it.
live-reloadManages live-reload dependencies automatically. Just write your code, and don't think about dependencies.
device_router.htmlSmart router in live-reload mode. It searches for best available ip for connect server. if it can't find, you can write ip:port manually.
CordovaDeviceRouter.jsIn live-reload mode, you can connect to server from multiple devices. This file inject right
cordova.jsfile to page. So you can connect to webpack-dev-server from multiple devices at same time.
Our Magic words:
cordova create <project_create_dir> [com.example.projectname] [ProjectClassName] --template cordova-template-framework7-vue-webpack phonegap create <project_create_dir> [com.example.projectname] [ProjectClassName] --template cordova-template-framework7-vue-webpack
You can use every cordova | phonegap commands.
You just have one more command option:
-- --lr. It starts live reload.
cordova run android -- --lr cordova run browser -- --live-reload phonegap run ios -- --lr
You can check:
for more information.