2022-08-11 22:43:39 +00:00
|
|
|
#!/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))
|
|
|
|
|
2022-08-11 22:43:39 +00:00
|
|
|
if [ -d ./node_modules ]
|
|
|
|
then
|
2022-10-13 13:53:17 +00:00
|
|
|
log "node_modules already exists"
|
2022-08-11 22:43:39 +00:00
|
|
|
else
|
2022-10-13 13:53:17 +00:00
|
|
|
log "setting up node"
|
2022-08-11 22:43:39 +00:00
|
|
|
npm install --ci
|
|
|
|
fi
|