This commit is contained in:
sHa
2019-06-07 16:55:59 +03:00
parent 54b70d27b9
commit 3013111e2b
16 changed files with 177 additions and 58 deletions

19
scripts/app/yarn.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
#
# @package sscripts
# @author sHa <sha@shadoll.dev>
# @copyright 2019 shadoll
# @version 19.6.7
# @link https://shadoll.dev
#
DIR=$(dirname $BASH_SOURCE)
PROJECT=(${DIR//node_modules/ })
if [ ! -f $PROJECT/docker-compose.yml ]; then
echo "ERROR: '$PROJECT/docker-compose.yml' file not found"
exit 1
fi
cd $PROJECT
docker-compose exec app yarn "$@"