PromucFlow_constructor/app/client/build.sh

24 lines
633 B
Bash
Raw Normal View History

#!/bin/bash
2020-02-27 11:25:55 +00:00
set -e
GIT_SHA=$(eval git rev-parse HEAD)
echo $GIT_SHA
echo "Sentry Auth Token: $SENTRY_AUTH_TOKEN"
if [ "$REACT_APP_AIRGAP_ENABLED" == "true" ]; then
echo "Building for airgapped Appsmith instances"
node download-assets.js;
else
echo "Building for non-airgapped Appsmith instances"
fi
# build cra app
export REACT_APP_SENTRY_RELEASE=$GIT_SHA
export REACT_APP_CLIENT_LOG_LEVEL=ERROR
# Disable CRA built-in ESLint checks since we have our own config and a separate step for this
export DISABLE_ESLINT_PLUGIN=true
craco --max-old-space-size=7168 build --config craco.build.config.js
2020-03-04 07:13:38 +00:00
echo "build finished"