f73e710e38
Build site and push to gh-pages / Build site (push) Waiting to run
Build / build (push) Waiting to run
Linter / lint (push) Waiting to run
Security / dependency-review (push) Waiting to run
Security / npm-audit (push) Waiting to run
Security / codeql (push) Waiting to run
Tests / test (push) Waiting to run
16 lines
398 B
Bash
Executable File
16 lines
398 B
Bash
Executable File
#!/bin/bash
|
|
# This file prepares all the necessary dependencies for the web build.
|
|
set -euxo pipefail
|
|
|
|
npm --version
|
|
|
|
MLC_LLM_HOME_SET="${MLC_LLM_HOME:-}"
|
|
|
|
if [[ -z ${MLC_LLM_HOME_SET} ]]; then
|
|
echo "Do not find MLC_LLM_HOME env variable, need to set this to work".
|
|
fi
|
|
cd ${MLC_LLM_HOME}/dist
|
|
echo "Serving ${MLC_LLM_HOME}/dist for local debugging purposes"
|
|
npx http-server -p 8000 --cors
|
|
cd -
|