13 lines
383 B
Bash
Executable File
13 lines
383 B
Bash
Executable File
#!/usr/bin/env sh
|
|
set -eu
|
|
|
|
ROOT=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
|
cd "$ROOT/ui-vue"
|
|
|
|
# Keep the lockfile authoritative in CI and never install dependencies into
|
|
# the embedded Go source tree.
|
|
npm ci --ignore-scripts
|
|
npm run build
|
|
cp "$ROOT/ui-build/index.html" "$ROOT/ui-build/app.js" "$ROOT/ui-build/styles.css" "$ROOT/ui/"
|
|
printf '%s\n' "TDesign UI built into $ROOT/ui"
|