diff --git a/script/bootstrap b/script/bootstrap index f39656f0..a21d6fd6 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -1,5 +1,8 @@ #!/bin/bash +# script/bootstrap: Resolve all dependencies that the application requires to +# run. + # If a command fails, exit the script set -e @@ -13,3 +16,6 @@ pipenv install --dev # Install uswds node module and dependencies npm install + +# Precompile assets for deployment +pipenv run python ./precompile.py diff --git a/script/setup b/script/setup index 0ea6be6d..bf2088d5 100755 --- a/script/setup +++ b/script/setup @@ -1,5 +1,8 @@ #!/bin/bash +# script/setup: Set up application for the first time after cloning, or set it +# back to the initial first unused state. + # If a command fails, exit the script set -e @@ -25,5 +28,5 @@ fi script/bootstrap # Symlink uswds fonts into the /static directory -rm -f ./static/fonts +rm -rf ./static/fonts ln -s ../node_modules/uswds/src/fonts ./static/fonts