Adding app info to version information
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
filenames: [
|
filenames: [
|
||||||
"package.json",
|
"package.json",
|
||||||
|
"website/.env",
|
||||||
"website/src/version.js",
|
"website/src/version.js",
|
||||||
"scratch/version.tag.txt",
|
"scratch/version.tag.txt",
|
||||||
"scratch/version.desc.txt"
|
"scratch/version.desc.txt"
|
||||||
@@ -10,10 +11,12 @@
|
|||||||
major: 0,
|
major: 0,
|
||||||
minor: 1,
|
minor: 1,
|
||||||
patch: 0,
|
patch: 0,
|
||||||
build: 20180225,
|
build: 20180226,
|
||||||
revision: 0,
|
revision: 0,
|
||||||
tz: "America/Los_Angeles",
|
tz: "America/Los_Angeles",
|
||||||
startYear: "2017"
|
title: "Deighton AR System",
|
||||||
|
copyright: "© 2018, Kingston Software Solutions.",
|
||||||
|
supportEmail: "support@kss.us.com"
|
||||||
},
|
},
|
||||||
fileTypes: [
|
fileTypes: [
|
||||||
{
|
{
|
||||||
@@ -29,16 +32,24 @@
|
|||||||
glob: "**/version.js",
|
glob: "**/version.js",
|
||||||
updates: [
|
updates: [
|
||||||
{
|
{
|
||||||
search: "^(?<begin>\\s*static\\s*version\\s*=\\s*')\\d+\\.\\d+\\.\\d+(?<end>'\\s*)$",
|
search: "^(?<begin>\\s*version:\\s*')\\d+\\.\\d+\\.\\d+(?<end>',\\s*)$",
|
||||||
replace: "${begin}${major}.${minor}.${patch}${end}"
|
replace: "${begin}${major}.${minor}.${patch}${end}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
search: "^(?<begin>\\s*static\\s*fullVersion\\s*=\\s*')\\d+\\.\\d+\\.\\d+-\\d+\\.\\d+(?<end>'\\s*)$",
|
search: "^(?<begin>\\s*fullVersion:\\s*')\\d+\\.\\d+\\.\\d+-\\d+\\.\\d+(?<end>',\\s*)$",
|
||||||
replace: "${begin}${major}.${minor}.${patch}-${build}.${revision}${end}"
|
replace: "${begin}${major}.${minor}.${patch}-${build}.${revision}${end}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
search: "^(?<begin>\\s*static\\s*startYear\\s*=\\s*')\\d+(?<end>'\\s*)$",
|
search: "^(?<begin>\\s*title:\\s*')[^']*(?<end>',\\s*)$",
|
||||||
replace: "${begin}${startYear}${end}"
|
replace: "${begin}${title}${end}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
search: "^(?<begin>\\s*copyright:\\s*')[^']*(?<end>',\\s*)$",
|
||||||
|
replace: "${begin}${copyright}${end}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
search: "^(?<begin>\\s*supportEmail:\\s*')[^']*(?<end>',\\s*)$",
|
||||||
|
replace: "${begin}${supportEmail}${end}"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -51,6 +62,11 @@
|
|||||||
name: "Commit tag description file",
|
name: "Commit tag description file",
|
||||||
glob: "**/*.desc.txt",
|
glob: "**/*.desc.txt",
|
||||||
write: "Version ${major}.${minor}.${patch}-${build}.${revision}"
|
write: "Version ${major}.${minor}.${patch}-${build}.${revision}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Website environment file",
|
||||||
|
glob: "website/.env",
|
||||||
|
write: "REACT_APP_TITLE=${title}"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
1
website/.env
Normal file
1
website/.env
Normal file
@@ -0,0 +1 @@
|
|||||||
|
REACT_APP_TITLE=Deighton AR System
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>Deighton AR</title>
|
<title>%REACT_APP_TITLE%</title>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link href="https://fonts.googleapis.com/css?family=Hind" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css?family=Hind" rel="stylesheet">
|
||||||
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.png">
|
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
|
||||||
</head>
|
</head>
|
||||||
<body style="margin: 0;">
|
<body style="margin: 0;">
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ export class App extends React.Component {
|
|||||||
</Column.Item>
|
</Column.Item>
|
||||||
<Column.Item>
|
<Column.Item>
|
||||||
<Box color='#FAFAFA' borderTop='1px solid #B2B2B2'>
|
<Box color='#FAFAFA' borderTop='1px solid #B2B2B2'>
|
||||||
<Text tone='dimmed' margin={10}>{versionInfo.fullVersion} © 2018, Kingston Software Solutions.</Text>
|
<Text tone='dimmed' margin={10}>{versionInfo.fullVersion} {versionInfo.copyright}</Text>
|
||||||
</Box>
|
</Box>
|
||||||
</Column.Item>
|
</Column.Item>
|
||||||
</Column>
|
</Column>
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
export const versionInfo = {
|
export const versionInfo = {
|
||||||
version: '0.1.0',
|
version: '0.1.0',
|
||||||
fullVersion: '0.1.0-20180225.0',
|
fullVersion: '0.1.0-20180226.0',
|
||||||
startYear: '2017',
|
title: 'Deighton AR System',
|
||||||
|
copyright: '© 2018, Kingston Software Solutions.',
|
||||||
|
supportEmail: 'support@kss.us.com',
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user