fix instructions for building UI

"yarn build" doesn't actually fetch packages. When starting from a clean
client, you have to run "yarn" (with no arguments) first.
This commit is contained in:
Scott Lamb 2017-10-23 21:10:58 -07:00
parent 2c026e1b6b
commit 99f10dfba6
2 changed files with 5 additions and 2 deletions

View File

@ -84,6 +84,7 @@ For instructions, you can skip to "[Camera configuration and hard disk mounting]
Once prerequisites are installed, Moonfire NVR can be built as follows:
$ yarn
$ yarn build
$ cargo test
$ cargo build --release

View File

@ -187,10 +187,12 @@ if [ ! -d "${LIB_DIR}/ui" ]; then
echo
exit 1
fi
if ! yarn; then
echo "UI package installation failed."
exit 1
fi
if ! yarn build; then
echo "UI build failed."
echo "yarn build"
echo
exit 1
fi
sudo mkdir "${LIB_DIR}"