Ensure node modules get a fresh install on reset

This commit is contained in:
Devon Mackay 2018-07-10 10:13:24 -04:00
parent 89e14268e9
commit bbe9880db3

View File

@ -1,5 +1,5 @@
# include/setup: Set up application for the first time after cloning, or set it # setup: Set up application for the first time after cloning, or set it
# back to the initial first unused state. # back to the initial first unused state.
# Load setup functions # Load setup functions
source ./script/include/setup_functions.inc.sh source ./script/include/setup_functions.inc.sh
@ -16,6 +16,9 @@ if [ -z "${INSTALL_SASS+is_set}" ]; then
fi fi
## Main ## Main
# Remove any existing node modules as part of initial app setup or reset
rm -rf ./node_modules
if [ "${CREATE_VENV}" = "true" ]; then if [ "${CREATE_VENV}" = "true" ]; then
install_pipenv install_pipenv
create_virtual_environment create_virtual_environment