Skip to content

Commit

Permalink
Updates dependencies of functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ybonjour committed May 17, 2021
1 parent a8c958f commit b29fdf6
Show file tree
Hide file tree
Showing 3 changed files with 510 additions and 811 deletions.
11 changes: 7 additions & 4 deletions web/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,21 @@ set -o nounset
dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P)

main() {

npm=$(which npm)
npm=$(which npm || true)
if [ -z "${npm:-}" ]; then
echo "You need to install Node"
exit 1
fi

browserify=$(which browserify)
browserify=$(which browserify || true)
if [ -z "${browserify:-}" ]; then
echo "You need to install browserify run `npm install -g browserify`"
exit 1
fi

firebase=$(which firebase)
echo "firebase"

firebase=$(which firebase || true)
if [ -z "${firebase:-}" ]; then
echo "You need to install firebase run `npm install -g firebase-tools`"
exit 1
Expand All @@ -31,6 +32,7 @@ main() {
echo "Please add ${dir}/src/restaurant/firebase.config.js from rethinc-signing repo."
exit 1
}

${npm} install
${browserify} restaurant.js -o ../../public/js/restaurant.js
popd
Expand All @@ -43,4 +45,5 @@ main() {
${firebase} deploy
}


main "$@"
Loading

0 comments on commit b29fdf6

Please sign in to comment.