From a8bb2d0dc9a42a5ec41889609865136a8da88a02 Mon Sep 17 00:00:00 2001 From: asandikci Date: Wed, 20 Dec 2023 21:56:46 +0300 Subject: [PATCH] fix: build error --- docker/build/docker.sh | 16 ++++++++++++++-- package.json | 2 +- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/docker/build/docker.sh b/docker/build/docker.sh index 19a68973..3f77b023 100755 --- a/docker/build/docker.sh +++ b/docker/build/docker.sh @@ -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)" diff --git a/package.json b/package.json index b612c2e7..9396a353 100644 --- a/package.json +++ b/package.json @@ -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",