allegro/scripts/setup-node.sh

18 lines
302 B
Bash
Raw Normal View History

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