cordova-version

0.1.3 • Public • Published

NPM version Dependency Status Build Status Code Climate

Sets config.xml version and build number from package.json

Install

$ npm install --save-dev cordova-version

Usage

Hook

// my-version-hook.js
var version = require('cordova-version');
 
module.exports = function() {
  return version.update();
};
<!-- config.xml -->
<hook src="my-version-hook.js" type="before_prepare" />

Manual

$ npm install --global cordova-version
$ cordova-version --help

Requirements

  • Semantic Versioning version and build number
  • Cordova's config.xml file must exist in the root folder

License

MIT © Carlos Antonio

/cordova-version/

    Package Sidebar

    Install

    npm i cordova-version

    Weekly Downloads

    4

    Version

    0.1.3

    License

    MIT

    Last publish

    Collaborators

    • disusered