1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2024-07-03 21:08:46 +00:00
test-tutorial-framework/hack/libhack/frontend.sh
2018-06-20 17:48:16 +02:00

15 lines
390 B
Bash

# Requires context:
# - FRONTEND_PATH: absolute path of frontend repo
# - CHALLENGE_PATH: absolute path of challenge repo
frontend::run() {
local frontend_in_challenge="${CHALLENGE_PATH}/solvable/frontend"
if [[ "$(find "${frontend_in_challenge}" | wc -l)" -gt 2 ]];then
cd "${frontend_in_challenge}"
else
cd "${FRONTEND_PATH}"
fi
yarn start
}