20 lines
688 B
Bash
20 lines
688 B
Bash
#!/usr/bin/env bash
|
|
# ================================================================
|
|
# PLANTPLAN - Node.js Packages fuer Client installieren
|
|
# ================================================================
|
|
# Fuehrt npm install im client/ Verzeichnis aus
|
|
# ================================================================
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
source "$SCRIPT_DIR/setenv.sh"
|
|
|
|
if [ ! -d "$PV_CLIENT/node_modules" ]; then
|
|
echo "Installiere Node.js Packages fuer Client..."
|
|
cd "$PV_CLIENT"
|
|
npm install
|
|
echo "Erfolgreich."
|
|
else
|
|
echo "Node.js Packages bereits installiert!"
|
|
echo "Zum Aktualisieren: cd client && npm install"
|
|
fi
|