diff options
Diffstat (limited to 'scripts/download-deps.sh')
| -rw-r--r-- | scripts/download-deps.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/download-deps.sh b/scripts/download-deps.sh new file mode 100644 index 0000000..6d1b2e4 --- /dev/null +++ b/scripts/download-deps.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +# Download Milkdown Crepe from jsDelivr CDN and extract to lib/ + +set -e + +LIB_DIR="lib/milkdown-crepe" +CREPE_VERSION="7.7.0" +CREPE_URL="https://cdn.jsdelivr.net/npm/@milkdown/crepe@${CREPE_VERSION}/dist" + +echo "📦 Downloading Milkdown Crepe v${CREPE_VERSION}..." + +mkdir -p "$LIB_DIR" + +# Download key files +echo " → index.js" +curl -fsSL "${CREPE_URL}/index.js" -o "${LIB_DIR}/index.js" + +echo " → index.d.ts" +curl -fsSL "${CREPE_URL}/index.d.ts" -o "${LIB_DIR}/index.d.ts" + +echo " → style.css" +curl -fsSL "${CREPE_URL}/style.css" -o "${LIB_DIR}/style.css" + +echo "✓ Milkdown Crepe installed to ${LIB_DIR}" |
