1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2024-12-05 02:21:31 +00:00

Move frontend directory inside test project for content creators

This commit is contained in:
Kristóf Tóth 2018-03-31 19:19:16 +02:00
parent 9f444c5502
commit 1a2d0badde
2 changed files with 12 additions and 7 deletions

View File

@ -22,20 +22,25 @@ echo -n "test... " && git clone git@github.com:avatao-content/${TEST}.git >> $LO
echo "Done!"
echo
echo -n "Installing frontend dependencies... "
cd ${FRONTEND}
yarn install >> $LOGFILE 2>&1
cd ..
echo "Done!"
if [ -z "$TFWDEV" ]; then
TFWURL=https://registry.hub.docker.com/v1/repositories/avatao/tutorial-framework/tags
PYTHON_PARSEJSON="import sys, json; print json.load(sys.stdin)[-1]['name']"
LATESTTAG="$(curl -fsSL ${TFWURL} | python -c "${PYTHON_PARSEJSON}")"
$sed_cmd -i "1 s/.*/&:${LATESTTAG}/" "${TEST}/solvable/Dockerfile"
rm -rf "${TEST}/.git"
rm -rf "${FRONTEND}/.git"
NESTED_FRONTEND="${TEST}/solvable/frontend"
rm -rf $NESTED_FRONTEND
mv "$FRONTEND" "$NESTED_FRONTEND"
fi
echo -n "Installing frontend dependencies... "
cd ${FRONTEND}
yarn install >> $LOGFILE 2>&1
wait
echo "Done!"
echo
echo "You can build & start TFW by executing the command: ${TEST}/hack/tfw.sh buildstart"

View File

@ -1 +1 @@
URL=https://git.io/vxBfj SHA=9e6d121bc6cff930a252d00df501a84adbef4df3a0979dddf13949f35ec49006 bash -c 'cmd="$(curl -fsSL $URL)" && [ $(echo "$cmd" | sha256sum | cut -d " " -f1) == $SHA ] && echo "$cmd" | bash || echo Checksum mismatch!'
URL=https://git.io/vxBfj SHA=0eaefa81b66f56a5607e4bfe05614f2c6f4a939394716bf9059d32f313a49d6e bash -c 'cmd="$(curl -fsSL $URL)" && [ $(echo "$cmd" | sha256sum | cut -d " " -f1) == $SHA ] && echo "$cmd" | bash || echo Checksum mismatch!'