2020-10-19 22:55:14 +00:00
|
|
|
import { bundleID, companyName, productName, version } from './package.json'
|
2018-01-17 14:06:32 +00:00
|
|
|
|
|
|
|
export function getProductName() {
|
|
|
|
return process.env.NODE_ENV === 'development'
|
|
|
|
? `${productName}-dev`
|
|
|
|
: productName
|
|
|
|
}
|
|
|
|
|
|
|
|
export function getCompanyName() {
|
2020-10-19 22:55:14 +00:00
|
|
|
return companyName
|
2018-01-17 14:06:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export function getVersion() {
|
2020-10-19 22:55:14 +00:00
|
|
|
return version
|
2018-01-17 14:06:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export function getBundleID() {
|
2020-12-04 11:57:56 +00:00
|
|
|
return process.env.NODE_ENV === 'development'
|
2020-12-16 06:02:13 +00:00
|
|
|
? `${bundleID}Dev`
|
|
|
|
: bundleID
|
2018-01-17 14:06:32 +00:00
|
|
|
}
|