Merge pull request #13874 from dannon/add-client-build-to-app

Add client build timestamp to application config.
This commit is contained in:
Marius van den Beek
2022-05-06 12:33:44 +02:00
committed by GitHub
5 changed files with 15 additions and 4 deletions
@@ -10,6 +10,10 @@ let historySummaries;
let fullHistories;
let currentHistoryId;
// These history tests can be flaky, so we allow a few retries while we work out
// what's going on.
jest.retryTimes(3, { logErrorsBeforeRetry: true });
const resetTestData = () => {
const ids = [1, 2, 3, 4];
currentHistoryId = ids[0];
+2
View File
@@ -7,4 +7,6 @@ export default {
revs_limit: 1,
pageSize: 50,
},
/* global __buildTimestamp__ */
buildTimestamp: __buildTimestamp__,
};
+2
View File
@@ -7,4 +7,6 @@ export default {
revs_limit: 1,
pageSize: 60,
},
/* global __buildTimestamp__ */
buildTimestamp: __buildTimestamp__,
};
+2 -1
View File
@@ -19,5 +19,6 @@ export { getRootFromIndexLink } from "./getRootFromIndexLink";
import config from "config";
if (!config.testBuild === true) {
console.log("Configs:", config.name, config);
console.log(`Galaxy Client '${config.name}' build, dated ${config.buildTimestamp}`);
console.debug("Full configuration:", config);
}
+5 -3
View File
@@ -72,9 +72,7 @@ module.exports = (env = {}, argv = {}) => {
},
libs: {
name: "libs",
test: new RegExp(
`node_modules[\\/](?!(${modulesExcludedFromLibs})[\\/])|galaxy/scripts/libs`
),
test: new RegExp(`node_modules[\\/](?!(${modulesExcludedFromLibs})[\\/])|galaxy/scripts/libs`),
chunks: "all",
priority: -10,
},
@@ -193,6 +191,10 @@ module.exports = (env = {}, argv = {}) => {
Buffer: ["buffer", "Buffer"],
process: "process/browser",
}),
new webpack.DefinePlugin({
__targetEnv__: JSON.stringify(targetEnv),
__buildTimestamp__: JSON.stringify(new Date().toISOString()),
}),
new VueLoaderPlugin(),
new MiniCssExtractPlugin({
filename: "[name].css",