app/config/package-info.js
crusader 8f4d7ec895 ing
2018-08-15 20:14:23 +09:00

26 lines
546 B
JavaScript

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;