summaryrefslogtreecommitdiffstats
path: root/scripts/download-deps.sh
blob: 6d1b2e4fc667074ef23d3992ab86a9c88f65ed39 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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}"