1.0.1 • Published 7 years ago

cordova-sync v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

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

OptionDescriptionDefault
path_to_appThe relative path to the Cordova Project(Required)
-w, --watchIf present the package will watch src directory and rebuild on file changefalse
-s, --src path_to_srcThe relative path to the source code in your web directory (default: src)src
-d, --dist path_to_distThe relative path to the distribution code in your web directory (default: dist)dist
-p, --physicalBuild the app onto a physical devicefalse

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