Skip to content

Commit

Permalink
Merge branch 'develop' into feat/4746_add_er_alias
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 authored Aug 25, 2023
2 parents f248a22 + 9dccf4d commit 9fa6dc2
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions scripts/editor.bash
Original file line number Diff line number Diff line change
@@ -1,28 +1,20 @@
#!/usr/bin/env bash

set -euxo pipefail
# We have to use npm instead of yarn because it causes trouble in netlify
pnpm build

# Link local mermaid to npm
pushd packages/mermaid
npm link
popd

# Clone or update the Mermaid Live Editor repository
if [ ! -d "mermaid-live-editor" ]; then
git clone --single-branch https://github.com/mermaid-js/mermaid-live-editor.git
cd mermaid-live-editor
else
cd mermaid-live-editor
git pull
fi
# Clone the Mermaid Live Editor repository
rm -rf mermaid-live-editor
git clone --single-branch https://github.com/mermaid-js/mermaid-live-editor.git

# Link local mermaid to live editor
npm link mermaid
cd mermaid-live-editor

# We have to use npm instead of yarn because it causes trouble in netlify
# Install dependencies
npm install --force
npm install

# Link local mermaid to live editor
npm link ../packages/mermaid

# Force Build the site
npm run build -- --force
Expand Down

0 comments on commit 9fa6dc2

Please sign in to comment.