From 57334b41374a673497440b463d60fec701838585 Mon Sep 17 00:00:00 2001 From: Jason Garber Date: Fri, 29 Jun 2018 15:11:59 -0400 Subject: [PATCH] Make precompilation part of bootstrapping --- script/bootstrap | 6 ++++++ script/setup | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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