# Activation script for virtual nodejs environment # Usage: # source activate_node if [ \! -f "./activate_node" ] then echo "Not in project directory" exit 1 fi vdir="./.venv" test -x "${vdir}/bin/nodeenv" || ( python3 -m venv "${vdir}" && "${vdir}/bin/pip" install --upgrade nodeenv ) test -e "${vdir}/node/bin/activate" || "${vdir}/bin/nodeenv" --node=10.15.0 --force "${vdir}/node" source "${vdir}/node/bin/activate"