mytube-frontend/bin/script/firstRun
2025-10-31 17:09:38 +01:00

19 lines
497 B
Bash
Executable File

#!/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
PROJECT_DIR=$(realpath $SCRIPT_DIR/../../)
ENV_DIR=$(realpath $PROJECT_DIR/../../../)
source $ENV_DIR/bin/messages
source $ENV_DIR/bin/drun
# Install node Packages
infomsg "[frontend]: NPM install"
drun frontend npm install
successmsg "[frontend]: NPM install done"
# Initial build of website
infomsg "[frontend]: NPM run build"
drun frontend npm run build
successmsg "[frontend]: NPM run build done"