erste Fassung von Client und Server rein
This commit is contained in:
19
bin/install_npm.sh
Normal file
19
bin/install_npm.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user