mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 06:58:58 -05:00
✨ Add minor improvements on frontend and exporter builds
This commit is contained in:
parent
bc91c46a9a
commit
0b53dc627f
2 changed files with 9 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
CURRENT_VERSION=$1;
|
export CURRENT_VERSION=$1;
|
||||||
|
|
||||||
yarn install
|
yarn install
|
||||||
rm -rf target
|
rm -rf target
|
||||||
|
|
|
@ -2,10 +2,14 @@
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
CURRENT_VERSION=$1;
|
export CURRENT_VERSION=$1;
|
||||||
BUILD_DATE=$(date -R);
|
export BUILD_DATE=$(date -R);
|
||||||
CURRENT_HASH=${CURRENT_HASH:-$(git rev-parse --short HEAD)};
|
export CURRENT_HASH=${CURRENT_HASH:-$(git rev-parse --short HEAD)};
|
||||||
EXTRA_PARAMS=$SHADOWCLJS_EXTRA_PARAMS;
|
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 install || exit 1;
|
||||||
yarn run build:clean || exit 1;
|
yarn run build:clean || exit 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue