From 7430a9b332d9c62ca161824581bf24ddf1a8dc04 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 12 Mar 2020 12:52:37 +0100 Subject: [PATCH] :tada: Add deployCommit and deployDate to config object. --- frontend/gulpfile.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/gulpfile.js b/frontend/gulpfile.js index a932d86ce..11d0d6955 100644 --- a/frontend/gulpfile.js +++ b/frontend/gulpfile.js @@ -103,6 +103,8 @@ function readLocales() { function readConfig() { const publicURL = process.env.UXBOX_PUBLIC_URL; const demoWarn = process.env.UXBOX_DEMO_WARNING; + const deployDate = process.env.UXBOX_DEPLOY_DATE; + const deployCommit = process.env.UXBOX_DEPLOY_COMMIT; let cfg = { demoWarning: demoWarn === "true" @@ -112,6 +114,14 @@ function readConfig() { cfg.publicURL = publicURL; } + if (deployDate !== undefined) { + cfg.deployDate = deployDate; + } + + if (deployCommit !== undefined) { + cfg.deployCommit = deployCommit; + } + return JSON.stringify(cfg); }