mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-31 01:00:47 +08:00
Extracts the avatar components and the style tokens into shared/ui, which both apps consume as a workspace package, to try out ADR 2. Nix and the Docker setups are not updated yet.
13 lines
376 B
Bash
Executable File
13 lines
376 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -Eeuo pipefail
|
|
|
|
echo "Copying katex assets into bundle directory"
|
|
|
|
# katex is hoisted to the workspace root, so resolve it rather than assuming
|
|
# a local node_modules.
|
|
dist="$(dirname "$(node -p 'require.resolve("katex/package.json")')")/dist"
|
|
|
|
mkdir -p public/fonts
|
|
cp -r "$dist/katex.min.css" public/katex.min.css
|
|
cp -r "$dist"/fonts/* public/fonts/
|