Skip to content

Instantly share code, notes, and snippets.

@fdambrosio
fdambrosio / increment_build_number.js
Created Oct 27, 2017 — forked from kvn1234/increment_build_number.js
Ionic & Cordova hook for incrementing build & version numbers
View increment_build_number.js
#!/usr/bin/env node
// Save hook under `project-root/hooks/before_prepare/`
//
// Don't forget to install xml2js using npm
// `$ npm install xml2js`
// tested with Cordova 7.0.1 & Ionic 3.7.0
var fs = require('fs');
var xml2js = require('xml2js');
@fdambrosio
fdambrosio / increment_build_number.js
Created Oct 27, 2017 — forked from ohh2ahh/increment_build_number.js
Cordova hook for incrementing build numbers
View increment_build_number.js
#!/usr/bin/env node
// Save hook under `project-root/hooks/before_prepare/`
//
// Don't forget to install xml2js using npm
// `$ npm install xml2js`
var fs = require('fs');
var xml2js = require('xml2js');