Add script to execute bootstrap logic
This commit is contained in:
parent
6fa5d7aad1
commit
617c154d01
24
script/include/run_bootstrap
Executable file
24
script/include/run_bootstrap
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
# include/run_bootstrap: Install application dependencies
|
||||||
|
|
||||||
|
# Load bootstrap functions
|
||||||
|
source ./script/include/bootstrap_functions.inc.sh
|
||||||
|
|
||||||
|
## Set option defaults
|
||||||
|
# If PIPENV_INSTALL_FLAGS is not set, give it the default value of "--dev"
|
||||||
|
if [ -z "${PIPENV_INSTALL_FLAGS+is_set}" ]; then
|
||||||
|
CREATE_VENV="--dev"
|
||||||
|
fi
|
||||||
|
|
||||||
|
## Main
|
||||||
|
|
||||||
|
if [ "${INSTALL_PYTHON_PACKAGES}" = "true" ]; then
|
||||||
|
install_python_packages "${PIPENV_INSTALL_FLAGS}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${INSTALL_NODE_PACKAGES}" = "true" ]; then
|
||||||
|
install_node_packages
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "${COMPILE_SASS_CMD}" ]; then
|
||||||
|
run_command "${COMPILE_SASS_CMD}"
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user