things-are-different-here/scripts/setup-node.sh

18 lines
302 B
Bash
Raw Permalink Normal View History

2022-10-13 14:01:41 +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