mermaid/scripts/editor.bash

22 lines
457 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -euxo pipefail
2023-08-25 06:13:53 +02:00
pnpm build
# Clone the Mermaid Live Editor repository
rm -rf mermaid-live-editor
git clone --single-branch https://github.com/mermaid-js/mermaid-live-editor.git
cd mermaid-live-editor
# We have to use npm instead of yarn because it causes trouble in netlify
# Install dependencies
npm install
# Link local mermaid to live editor
npm link ../packages/mermaid
# Force Build the site
npm run build -- --force