mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #13874 from dannon/add-client-build-to-app
Add client build timestamp to application config.
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -7,4 +7,6 @@ export default {
|
||||
revs_limit: 1,
|
||||
pageSize: 50,
|
||||
},
|
||||
/* global __buildTimestamp__ */
|
||||
buildTimestamp: __buildTimestamp__,
|
||||
};
|
||||
|
||||
@@ -7,4 +7,6 @@ export default {
|
||||
revs_limit: 1,
|
||||
pageSize: 60,
|
||||
},
|
||||
/* global __buildTimestamp__ */
|
||||
buildTimestamp: __buildTimestamp__,
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user