mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-31 06:06:44 +02:00
chore: Update editor.bash to build latest version
This commit is contained in:
@@ -1,28 +1,20 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
# We have to use npm instead of yarn because it causes trouble in netlify
|
|
||||||
pnpm build
|
pnpm build
|
||||||
|
|
||||||
# Link local mermaid to npm
|
# Clone the Mermaid Live Editor repository
|
||||||
pushd packages/mermaid
|
rm -rf mermaid-live-editor
|
||||||
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
|
git clone --single-branch https://github.com/mermaid-js/mermaid-live-editor.git
|
||||||
|
|
||||||
cd mermaid-live-editor
|
cd mermaid-live-editor
|
||||||
else
|
|
||||||
cd mermaid-live-editor
|
# We have to use npm instead of yarn because it causes trouble in netlify
|
||||||
git pull
|
# Install dependencies
|
||||||
fi
|
npm install
|
||||||
|
|
||||||
# Link local mermaid to live editor
|
# Link local mermaid to live editor
|
||||||
npm link mermaid
|
npm link ../packages/mermaid
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
npm install --force
|
|
||||||
|
|
||||||
# Force Build the site
|
# Force Build the site
|
||||||
npm run build -- --force
|
npm run build -- --force
|
||||||
|
Reference in New Issue
Block a user