a few changes to make A/B testing easier

This commit is contained in:
Danny Coates
2017-08-24 14:54:02 -07:00
parent b2f76d2df9
commit 53e822964e
94 changed files with 4566 additions and 3958 deletions

View File

@@ -0,0 +1,11 @@
const commit = require('git-rev-sync').short();
module.exports = function(source) {
const pkg = JSON.parse(source);
const version = {
commit,
source: pkg.homepage,
version: process.env.CIRCLE_TAG || `v${pkg.version}`
};
return `module.exports = '${JSON.stringify(version)}'`;
};