Make precompilation part of bootstrapping
This commit is contained in:
parent
acc24ff3d1
commit
57334b4137
@ -1,5 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# script/bootstrap: Resolve all dependencies that the application requires to
|
||||||
|
# run.
|
||||||
|
|
||||||
# If a command fails, exit the script
|
# If a command fails, exit the script
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@ -13,3 +16,6 @@ pipenv install --dev
|
|||||||
|
|
||||||
# Install uswds node module and dependencies
|
# Install uswds node module and dependencies
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
|
# Precompile assets for deployment
|
||||||
|
pipenv run python ./precompile.py
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/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
|
# If a command fails, exit the script
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@ -25,5 +28,5 @@ fi
|
|||||||
script/bootstrap
|
script/bootstrap
|
||||||
|
|
||||||
# Symlink uswds fonts into the /static directory
|
# Symlink uswds fonts into the /static directory
|
||||||
rm -f ./static/fonts
|
rm -rf ./static/fonts
|
||||||
ln -s ../node_modules/uswds/src/fonts ./static/fonts
|
ln -s ../node_modules/uswds/src/fonts ./static/fonts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user