1
0
Fork 0
spacetac/activate_node

15 lines
436 B
Plaintext
Raw Normal View History

2018-03-06 17:59:36 +00:00
# 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" || ( virtualenv -p python3 "${vdir}" && "${vdir}/bin/pip" install --upgrade nodeenv )
2018-06-04 08:27:52 +00:00
test -e "${vdir}/node/bin/activate" || "${vdir}/bin/nodeenv" --node=10.3.0 --force "${vdir}/node"
2018-03-06 17:59:36 +00:00
source "${vdir}/node/bin/activate"