Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -45,6 +45,20 @@ run_deploy() {
|
|||||||
echo "== BUILD UI =="
|
echo "== BUILD UI =="
|
||||||
cd "$APP_DIR/ui"
|
cd "$APP_DIR/ui"
|
||||||
npm ci --no-audit --no-fund --include=optional
|
npm ci --no-audit --no-fund --include=optional
|
||||||
|
|
||||||
|
# npm scriptlerinde PATH onceligi nedeniyle node_modules/.bin/sass kullanilir.
|
||||||
|
# Bu dosya pure JS olursa --embedded hata verir; global Dart Sass binary'sine bagliyoruz.
|
||||||
|
SASS_BIN="$(command -v sass || true)"
|
||||||
|
if [[ -z "$SASS_BIN" ]]; then
|
||||||
|
echo "sass command not found in PATH."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
"$SASS_BIN" --embedded --version >/dev/null 2>&1 || {
|
||||||
|
echo "Global sass supports --embedded is not available."
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
ln -sf "$SASS_BIN" "$APP_DIR/ui/node_modules/.bin/sass"
|
||||||
|
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
echo "== BUILD API =="
|
echo "== BUILD API =="
|
||||||
|
|||||||
Reference in New Issue
Block a user