mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-13 04:19:44 +02:00
chore: Update editor script
Co-authored-by: Alois Klink <alois@aloisklink.com>
This commit is contained in:
@@ -1,17 +1,18 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -euxo pipefail
|
||||||
# We have to use npm instead of yarn because it causes trouble in netlify
|
# We have to use npm instead of yarn because it causes trouble in netlify
|
||||||
|
|
||||||
# Link local mermaid to npm
|
# Link local mermaid to npm
|
||||||
pushd packages/mermaid || exit
|
pushd packages/mermaid
|
||||||
npm link
|
npm link
|
||||||
popd || exit
|
popd
|
||||||
|
|
||||||
# Clone the Mermaid Live Editor repository
|
# Clone the Mermaid Live Editor repository
|
||||||
git clone https://github.com/mermaid-js/mermaid-live-editor.git
|
git clone https://github.com/mermaid-js/mermaid-live-editor.git
|
||||||
|
|
||||||
# Change to the repository directory
|
# Change to the repository directory
|
||||||
cd mermaid-live-editor || exit
|
cd mermaid-live-editor
|
||||||
|
|
||||||
# Link local mermaid to live editor
|
# Link local mermaid to live editor
|
||||||
npm link mermaid
|
npm link mermaid
|
Reference in New Issue
Block a user