Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.
/ with-cordova Public archive

A simple Brunch skeleton for Cordova

Notifications You must be signed in to change notification settings

brunch/with-cordova

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cordova + Brunch + Babel/ES6

This is a modern JS skeleton for Brunch, targeting hybrid applications with Cordova.

Installation

Clone this repo manually or use brunch new dir -s brunch/with-cordova

Getting started

  • Install (if you don't have them):
    • Node.js: brew install node on OS X
    • Brunch: npm install -g brunch
    • Cordova: npm install -g cordova@6.0.0
    • Brunch plugins and app dependencies: npm install
    • ruby mobile.rb init — to initialize a cordova project from config.xml
  • Run:
    • npm start — watches the project with continuous rebuild. This will also launch HTTP server with pushState.
    • npm run build — builds minified project for production
    • ruby mobile.rb run/emulate/build ios
  • Learn:
    • cordova/www/ dir is fully auto-generated. Write your code in app/ dir.
    • Place static files you want to be copied from app/assets/ to cordova/www/.
    • Brunch site, Getting started guide

On Cordova

The Cordova directory is kept out of source control, as it's a good practice. The core piece of Cordova setup, a config, is kept in the repo.

Feel free to modify config.xml to suit your needs. You can also declare the plugins you need right in the config.

The skeleton provides a helper script to bootstrap the cordova app:

ruby mobile.rb init

And run it:

ruby mobile.rb run ios # (or `emulate`/`build` instead of run)

About

A simple Brunch skeleton for Cordova

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published