itsdrike.com/scripts/common.sh
2022-05-15 00:28:12 +02:00

14 lines
305 B
Bash
Executable file

#!/usr/bin/env bash
BASEDIR="$PWD"
export OUTPUT_DIR="$BASEDIR/public"
export STATIC_SRC="$BASEDIR/static/src"
export STATIC_BUILD="$BASEDIR/static/build"
if [[ -f "$BASEDIR/.env" ]]; then
export $(cat "$BASEDIR/.env" | xargs)
fi
NODE_BIN="$BASEDIR/node_modules/.bin"
export PATH="$NODE_BIN:$PATH"