DocSpace-buildtools/build/install/common/build-frontend.sh
Sergey Kirichenko ad3eed3552
Add scripts for building services (#212)
* Add build and publish srcipts for services

* Add script for buildint frontend

* Fix publish-backend.sh

* Modify publish script for building

* Cosmetic modify publish backend script
2021-04-06 14:28:12 +03:00

37 lines
729 B
Bash

#!/bin/bash
SRC_PATH="/AppServer"
while [ "$1" != "" ]; do
case $1 in
-sp | --srcpath )
if [ "$2" != "" ]; then
SRC_PATH=$2
shift
fi
;;
-? | -h | --help )
echo " Usage: bash build-backend.sh [PARAMETER] [[PARAMETER], ...]"
echo " Parameters:"
echo " -sp, --srcpath path to AppServer root directory"
echo " -?, -h, --help this help"
echo " Examples"
echo " bash build-backend.sh -sp /app/AppServer"
exit 0
;;
* )
echo "Unknown parameter $1" 1>&2
exit 1
;;
esac
shift
done
echo "== FRONT-END-BUILD =="
cd ${SRC_PATH}
yarn install