app/config/package-info.js

26 lines
546 B
JavaScript
Raw Normal View History

2018-08-15 11:14:23 +00:00
const appPackage = require('../package.json')
function getProductName() {
const productName = appPackage.productName;
return process.env.NODE_ENV === 'development'
? `${productName}-dev`
: productName;
}
function getCompanyName() {
return appPackage.companyName;
}
function getVersion() {
return appPackage.version;
}
function getBundleID() {
return appPackage.bundleID;
}
exports.getProductName = getProductName;
exports.getCompanyName = getCompanyName;
exports.getVersion = getVersion;
exports.getBundleID = getBundleID;