cordova-sync

v1.0.0
Respond to file changes and build Cordova application
cordova livereload live-reload development build tools

Cordova Sync

Respond to file changes and build Cordova application

Installation

npm install cordova-sync -g

Setup

Web Project

Must specify a csync script inside of package.json

npm run csync

cordova-sync expects that this script will compile any source code from the ./src directory into the ./dist directory

Cordova Project

This project has the plugins and platform set in a config the web project is responsible for the UI

Dependencies

xcode-select --install

Usage

cordova-sync [path_to_app] [options]

Options

Option Description Default
[path_to_app] The relative path to the Cordova Project (Required)
-w, --watch If present the package will watch src directory and rebuild on file change false
-s, --src [path_to_src] The relative path to the source code in your web directory (default: src) src
-d, --dist [path_to_dist] The relative path to the distribution code in your web directory (default: dist) dist
-p, --physical Build the app onto a physical device false

Notes

  • XCode Command line tools are required in order to build the script
  • When building to a physical device the Provisioning Profile must be set in XCode before the app can build
  • iOS Platform Version 4.3.1 is required to build onto the physical device

Metadata

  • ISC
  • Whatever
  • Ryan P Hansen
  • released 5/5/2017

Downloads

Maintainers