caiobiodere/cordova-template-framework7-vue-webpack
소개
Framework7, Vue, Webpack을 사용하는 Cordova 템플릿으로, Webpack Dev Server와 핫 모듈 교체를 지원합니다.
웹 및 앱 개발What you can do
- npm install Automatically checks node js dependencies.
- package.json Renames name variable if it has a space characters and auto saves. (It needed for npm install)
- www Automatically manages www folder. You don't need to think about www folder. Your target is always src folder.
- static Static assets automatically sync on live reload!
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
Framework7 - Vue - Webpack Cordova Template
You can start your new cordova project perfectly with this template.
This template uses:
Minimum Requirements
- Cordova: 6.0.0
- Node.js: 6.5.0 (Supports ES6)
WARNING (For Linux and Mac OS users):
For live-reload i can't find easy way to do fixed version of this. But you can develop your app with this way:
cordova platform add ios browser(browser needs for development in live-reload mode.)cordova run ios -- --lr(wait till app opens in your ios emulator or phone. it will close console output after publish, so live-reload will not work. don't close the app and go to next step.)cordova run browser -- --lr(you can use live-reload in your phone-emulator and browser at same time. you can edit your files in live-reload mode now.)
Features
Hooks are smart. They can fix some problems for you. Fix list:
npm installAutomatically checks node js dependencies.package.jsonRenamesnamevariable if it has a space characters and auto saves. (It needed for npm install)wwwAutomatically manageswwwfolder. You don't need to think about www folder. Your target is alwayssrcfolder.staticStatic assets automatically sync on live reload!CordovaHtmlOutputPluginAutomatically addscordova.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 yoursrcfolder, our smart hooks automagically copy it towwwfolder!
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 rightcordova.jsfile to page. So you can connect to webpack-dev-server from multiple devices at same time.
Installation
IMPORTANT: Phonegap build tools not supported currently. I suggest to use cordova with this template.
This template need cordova or phonegap, for more information cordova installation or phonegap installation.
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
boom! :boom: you have your brand new cordova / phonegap project with framework7 - vue 2 and webpack 4!

Installation using pre-defined templates
Framework v5 version
cordova create cordova-template com.template DefaultTemplate --template git://github.com/caiobiodere/cordova-template-framework7-vue-webpack.git#master
Framework Single View v5 version
Still under development
Framework Tabbed Views v5 version
Still under development
Framework Split View v5 version
Still under development
Framework v3 version
cordova create cordova-template com.template DefaultTemplate --template git://github.com/caiobiodere/cordova-template-framework7-vue-webpack.git#feature/v3-default-template
Usage
You can use every cordova | phonegap commands.
You just have one more command option: -- --lr. It starts live reload.
Example usage:
cordova run android -- --lr
cordova run browser -- --live-reload
phonegap run ios -- --lr
And :tada: that's all folks!
Using Cordova-Simulate from microsoft
We can use Microsoft Cordova-Simulate using:
You can check:
for more information.
관련 프로젝트 살펴보기
불러오는 중…