Make precompilation part of bootstrapping

This commit is contained in:
Jason Garber 2018-06-29 15:11:59 -04:00
parent acc24ff3d1
commit 57334b4137
2 changed files with 10 additions and 1 deletions

View File

@ -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

View File

@ -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