#!/usr/bin/env bash set -o errexit root="$(dirname "$0")/.." app="${root}/frontend" ( cd "${app}" if [[ ! -d node_modules/.bin ]]; then echo "Installing dependencies" npm install fi echo "Starting frontend server" npm run lintfix npm run dev )