renewed-faith/scripts/setup-node.sh

18 lines
302 B
Bash
Raw Normal View History

2022-10-13 13:59:57 +00:00
#!/usr/bin/env bash
# Installs the required Node packages
# Set up logging.
log() { echo "📦️ $(basename $0): $@"; }
# Move into the root directory.
cd $(dirname $(dirname $0))
if [ -d ./node_modules ]
then
log "node_modules already exists"
else
log "setting up node"
npm install --ci
fi