From 0b53dc627f29499a7303ba5bdd695526eb3070e7 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 22 Dec 2023 12:40:24 +0100 Subject: [PATCH] :sparkles: Add minor improvements on frontend and exporter builds --- exporter/scripts/build | 2 +- frontend/scripts/build | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/exporter/scripts/build b/exporter/scripts/build index 118bacad9..2fd75a309 100755 --- a/exporter/scripts/build +++ b/exporter/scripts/build @@ -2,7 +2,7 @@ set -ex -CURRENT_VERSION=$1; +export CURRENT_VERSION=$1; yarn install rm -rf target diff --git a/frontend/scripts/build b/frontend/scripts/build index 238687b6a..ccb9236b7 100755 --- a/frontend/scripts/build +++ b/frontend/scripts/build @@ -2,10 +2,14 @@ set -ex -CURRENT_VERSION=$1; -BUILD_DATE=$(date -R); -CURRENT_HASH=${CURRENT_HASH:-$(git rev-parse --short HEAD)}; -EXTRA_PARAMS=$SHADOWCLJS_EXTRA_PARAMS; +export CURRENT_VERSION=$1; +export BUILD_DATE=$(date -R); +export CURRENT_HASH=${CURRENT_HASH:-$(git rev-parse --short HEAD)}; +export EXTRA_PARAMS=$SHADOWCLJS_EXTRA_PARAMS; + +# Some cljs reacts on this environment variable for define more +# performant code on macros (example: rumext) +export NODE_ENV=production; yarn install || exit 1; yarn run build:clean || exit 1;