Permalink
Browse files

Add browserify-versionify to keep .VERSION in sync

  • Loading branch information...
legastero committed Mar 17, 2015
1 parent 22a62cf commit cd11075b68917cd39f2ed9827e78ab133eb7fd03
Showing with 7 additions and 1 deletion.
  1. +1 −1 index.js
  2. +6 −0 package.json
View
@@ -1,6 +1,6 @@
'use strict';
-exports.VERSION = '7.0.6';
+exports.VERSION = '__STANZAIO_VERSION__';
exports.JID = require('xmpp-jid').JID;
exports.Client = require('./lib/client');
View
@@ -8,6 +8,11 @@
"faye-websocket": false,
"./lib/plugins/index.js": "./lib/plugins/index-browser.js"
},
+ "browserify": {
+ "transform": [
+ ["browserify-versionify", { "placeholder": "__STANZAIO_VERSION__" }]
+ ]
+ },
"bugs": "https://github.com/otalk/stanza.io/issues",
"contributors": [
"Philipp Hancke <fippo@andyet.net>",
@@ -38,6 +43,7 @@
},
"devDependencies": {
"browserify": "^8.0.0",
+ "browserify-versionify": "^1.0.4",
"nsp": "^1.0.0",
"precommit-hook": "^1.0.0",
"tap-spec": "^2.0.0",

0 comments on commit cd11075

Please sign in to comment.