mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
refactor(Apps/Dashboard): Remove Deno as a dependency to the dashboard (#16934)
* remove deno as a dependency * use the ACORE_VERSION env var * I forgot client-data * accidentally removed too much * docker-cmd: extraneous parallel flag * typo * remove docker image prune -af the `docker image prune` removes the containers we just build. * fetch everything in the beginning
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
DENO_MIN_VERSION="1.26.0"
|
||||
|
||||
function denoInstall() {
|
||||
|
||||
{ # try
|
||||
echo "Deno version check:" && denoCmd upgrade --version $DENO_MIN_VERSION
|
||||
} ||
|
||||
{ # catch
|
||||
echo "Installing Deno..."
|
||||
# just one line of command that works on all OSes
|
||||
# (temporary cd into AC_PATH_DEPS)
|
||||
curl -fsSL https://deno.land/x/install/install.sh | DENO_INSTALL="$AC_PATH_DEPS/deno" sh
|
||||
}
|
||||
}
|
||||
|
||||
function denoCmd() {
|
||||
[[ "$OSTYPE" = "msys" ]] && DENOEXEC="./deps/deno/bin/deno.exe" || DENOEXEC="./deps/deno/bin/deno"
|
||||
(cd "$AC_PATH_ROOT" ; $DENOEXEC "$@")
|
||||
}
|
||||
|
||||
function denoRunFile() {
|
||||
denoCmd run --allow-all --unstable "$@"
|
||||
}
|
||||
@@ -13,9 +13,4 @@ source "$AC_PATH_DEPS/acore/bash-lib/src/event/hooks.sh"
|
||||
|
||||
source "$AC_PATH_SHARED/common.sh"
|
||||
|
||||
source "$AC_PATH_SHARED/deno.sh"
|
||||
|
||||
denoInstall
|
||||
|
||||
[[ "$OSTYPE" = "msys" ]] && AC_BINPATH_FULL="$BINPATH" || AC_BINPATH_FULL="$BINPATH/bin"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user