PhoneGap with Vue, Browserify + vueify, hot reload, linting and unit testing.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
hooks First commit May 3, 2016
platforms add 'www/dist' to avoid causing an error at the first run May 12, 2016
plugins First commit May 3, 2016
www add 'www/dist' to avoid causing an error at the first run May 12, 2016
.babelrc First commit May 3, 2016
.eslintrc First commit May 3, 2016
.gitignore - Added 'www/dist' folder to avoid causing an error at the first run May 12, 2016
.npmignore
CONTRIBUTING.md First commit May 3, 2016
LICENSE First commit May 3, 2016
README.md Update README.md Jul 18, 2016
config.xml First commit May 3, 2016
icon.png First commit May 3, 2016
karma.conf.js First commit May 3, 2016
package.json

README.md

PhoneGap Vueify

PhoneGap with Vue, Browserify + vueify, hot reload, linting and unit testing.

Getting Started

Prerequisites

To use this you'll need Node.js v5 or newer.

Installation

via Github

$ git clone https://github.com/leMaur/phonegap-vueify.git MyApp
$ cd MyApp
$ npm install
$ npm run dev

via Phonegap

$ npm install -g phonegap
$ phonegap create MyApp --template phonegap-vueify
$ cd MyApp
$ npm install
$ npm run dev

via Cordova

$ npm install -g cordova
$ cordova create MyApp --template=phonegap-vueify
$ cd MyApp
$ npm install
$ npm run dev

Please, change MyApp with your folder name.
You can then open the app in your browser by visiting localhost:8888

What's included

  • npm run dev: Browserify + vueify with proper config for source map & hot-reload.
  • npm run build: Production build with HTML/CSS/JS minification.
  • npm run lint: Lint JavaScript and *.vue files with ESLint.
  • npm test: Unit tests in PhantomJS with Karma + karma-jasmine + karma-browserify, with support for mocking and ES2015.
  • npm run prepare [ ios | android ]: Set the platform. Example (npm run prepare -- ios).
  • npm run [ ios | android ]: Run in the iOS simulator / Android emulator. (Running in another terminal).
  • npm run compile [ ios | android ]: Build the app for the specified platform. Example (npm run compile -- ios).
  • npm run clean: Clean the platforms/ and dist/ folders.

License

MIT. Copyright (c) 2016 Maurizio Lepora.

Credits