bitque/web/scripts/prod.sh

29 lines
593 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2021-10-08 09:38:10 +02:00
RSASS_PATH=$(command -v rsass)
if [[ "${RSASS_PATH}" == "" ]]; then
cargo install rsass --features=commandline
fi
2021-10-08 16:31:34 +02:00
WASM_PACK_PATH=$(command -v wasm-pack)
if [[ "${WASM_PACK_PATH}" == "" ]]; then
cargo install wasm-pack
fi
2021-01-07 09:13:13 +01:00
export PROJECT_ROOT=$(git rev-parse --show-toplevel)
2021-10-05 14:34:20 +02:00
export CLIENT_ROOT=${PROJECT_ROOT}/web
2021-01-07 09:13:13 +01:00
export HI_ROOT=${PROJECT_ROOT}/highlight/jirs-highlight
export MODE=force
export BUILD_TYPE=--release
2021-10-08 16:31:34 +02:00
export COPY_TO=/tmp/wasm
2021-01-07 09:13:13 +01:00
2021-10-08 16:31:34 +02:00
mkdir -p ${COPY_TO}
2021-10-08 16:31:34 +02:00
echo $PROJECT_ROOT
echo $CLIENT_ROOT
2021-10-08 16:31:34 +02:00
cd ${CLIENT_ROOT}
2020-11-25 20:14:52 +01:00
2021-10-08 16:31:34 +02:00
. .env
2021-10-08 16:31:34 +02:00
${CLIENT_ROOT}/scripts/run-wasm-pack.sh