fix: build error

This commit is contained in:
Aliberk Sandıkçı 2023-12-20 21:56:46 +03:00
parent 319e4c49e7
commit a8bb2d0dc9
Signed by: asandikci
GPG key ID: 25C67A03B5666BC1
2 changed files with 15 additions and 3 deletions

View file

@ -39,7 +39,7 @@ elif [[ $1 == "docker" ]]; then
npm audit fix # maybe no need ?
npm install
if [ $? -eq 0 ]; then
echo "${_RED}SUCCESS${_NC}"
echo -e "${_RED}SUCCESS${_NC}"
mkdir -p /status/success
touch /status/success/npm
else
@ -53,7 +53,7 @@ elif [[ $1 == "docker" ]]; then
composer install
if [ $? -eq 0 ]; then
echo "${_RED}SUCCESS${_NC}"
echo -e "${_RED}SUCCESS${_NC}"
mkdir -p /status/success
touch /status/success/composer
else
@ -64,7 +64,19 @@ elif [[ $1 == "docker" ]]; then
echo -e "${_RED}!SEE RESULT ABOVE!${_NC}"
echo "waiting before build(10)"
sleep 10
npm run build
if [ $? -eq 0 ]; then
echo -e "${_RED}SUCCESS${_NC}"
mkdir -p /status/success
touch /status/success/build
else
echo -e "${_RED}FAIL${_NC}"
mkdir -p /status/fail
touch /status/fail/build
fi
echo -e "${_RED}!SEE RESULT ABOVE!${_NC}"
echo "waiting before archiving(10)"

View file

@ -47,7 +47,7 @@
},
"devDependencies": {
"fs-extra": "^0.26.7",
"gulp": "^3.3.0",
"gulp": "^4.0.0",
"gulp-changed": "^3.2.0",
"gulp-clean-css": "^3.10.0",
"gulp-debug": "^3.2.0",