Coder Social home page Coder Social logo

psigen / vue-cordova-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vuejs-templates/webpack

0.0 2.0 0.0 244 KB

A full-featured Webpack + vue-loader setup with hot reload, linting, testing & css extraction.

Shell 0.83% JavaScript 91.49% HTML 0.60% Vue 7.07%

vue-cordova-template's Introduction

vue-cordova-webpack-boilerplate

A full-featured Webpack setup with hot-reload, lint-on-save, unit testing & css extraction.

Documentation

  • For this template: common questions specific to this template are answered and each part is described in greater detail
  • For Vue 2.0: general information about how to work with Vue, not specific to this template
  • For Cordova: mobile apps with HTML, CSS & JS

Target multiple platforms with one code base

Free and open source

Usage

This is a project template for vue-cli. It is recommended to use npm 3+ for a more efficient dependency tree.

$ npm install -g vue-cli
$ npm install -g cordova
$ vue init F-loat/vue-cordova-template vue-cordova
$ cd vue-cordova
$ npm install
$ cordova platform add android
$ npm run dev
$ npm run android

What's Included

  • npm run dev: first-in-class development experience.

    • Webpack + vue-loader for single file Vue components.
    • State preserving hot-reload
    • State preserving compilation error overlay
    • Lint-on-save with ESLint
    • Source maps
  • npm run build: Production ready build.

    • JavaScript minified with UglifyJS.
    • HTML minified with html-minifier.
    • CSS across all components extracted into a single file and minified with cssnano.
    • All static assets compiled with version hashes for efficient long-term caching, and a production index.html is auto-generated with proper URLs to these generated assets.
    • Use npm run build --reportto build with bundle size analytics.
  • npm run build:hybrid: Production ready build for cordova.

  • npm run build:android: npm run build:hybrid & cordova build android

  • npm run android: npm run build:hybrid & cordova run android

  • npm run unit: Unit tests run in PhantomJS with Karma + Mocha + karma-webpack.

    • Supports ES2015 in test files.
    • Supports all webpack loaders.
    • Easy mock injection.
  • npm run e2e: End-to-end tests with Nightwatch.

    • Run tests in multiple browsers in parallel.
    • Works with one command out of the box:
      • Selenium and chromedriver dependencies automatically handled.
      • Automatically spawns the Selenium server.

Tips

  • Need to install JDK and Android SDK before use Cordova, using cordova requirements test your environment configuration.
  • Better way

vue-cordova-template's People

Contributors

anvaka avatar asumaran avatar atesgoral avatar bernhardreiter avatar bhaibel avatar blake-newman avatar chris-r3 avatar chrisvfritz avatar crswll avatar egoist avatar f-loat avatar funkylover avatar grafikart avatar guidobouman avatar hootlex avatar ianwalter avatar jbruni avatar kriswep avatar linusborg avatar markussorg avatar myst729 avatar obingo avatar pespantelis avatar pksunkara avatar posva avatar rascada avatar wayneharris avatar yyx990803 avatar zigomir avatar zzhjerry avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.