Added new line to

MERMAID LOCAL DOCKER DEVELOPMENT

Welcome! Thank you for joining the development.
This is a script for running commands within docker containers at ease.
__________________________________________________________________________________________

Development Quick Start Guide:

./run pnpm install           # Install packages
./run dev                    # Launch dev server with examples, open http://localhost:9000
./run docs:dev               # Launch official website, open http://localhost:3333

./run pnpm vitest            # Run watcher for unit tests
./run cypress                # Run integration tests (after starting dev server)
./run pnpm build             # Prepare it for production
__________________________________________________________________________________________

Commands:

./run build                  # Build image
./run cypress                # Run integration tests
./run dev                    # Run dev server with examples, open http://localhost:9000
./run docs:dev               # For docs contributions, open http://localhost:3333
./run help                   # Show this help
./run pnpm                   # Run any 'pnpm' command
./run sh                     # Open 'sh' inside docker container for development
__________________________________________________________________________________________

Examples of frequently used commands:

./run pnpm add --filter mermaid package
        Add package to mermaid

./run pnpm -w run lint:fix
        Run prettier and ES lint

git diff --name-only develop | xargs ./run pnpm prettier --write
        Prettify everything you added so far

./run cypress open --project .
        Open cypress interactive GUI

./run cypress run --spec cypress/integration/rendering/test.spec.ts
        Run specific test in cypress

xhost +local:
        Allow local connections for x11 server or
MERMAID LOCAL DOCKER DEVELOPMENT

Welcome! Thank you for joining the development.
This is a script for running commands within docker containers at ease.
__________________________________________________________________________________________

Development Quick Start Guide:

./run pnpm install           # Install packages
./run dev                    # Launch dev server with examples, open http://localhost:9000
./run docs:dev               # Launch official website, open http://localhost:3333

./run pnpm vitest            # Run watcher for unit tests
./run cypress                # Run integration tests (after starting dev server)
./run pnpm build             # Prepare it for production
__________________________________________________________________________________________

Commands:

./run build                  # Build image
./run cypress                # Run integration tests
./run dev                    # Run dev server with examples, open http://localhost:9000
./run docs:dev               # For docs contributions, open http://localhost:3333
./run help                   # Show this help
./run pnpm                   # Run any 'pnpm' command
./run sh                     # Open 'sh' inside docker container for development
__________________________________________________________________________________________

Examples of frequently used commands:

./run pnpm add --filter mermaid package
        Add package to mermaid

./run pnpm -w run lint:fix
        Run prettier and ES lint

git diff --name-only develop | xargs ./run pnpm prettier --write
        Prettify everything you added so far

./run cypress open --project .
        Open cypress interactive GUI

./run cypress run --spec cypress/integration/rendering/test.spec.ts
        Run specific test in cypress

xhost +local:
        Allow local connections for x11 server output
This commit is contained in:
Mason Deacon
2026-03-26 15:55:58 -05:00
parent 26a13ad9f0
commit 1be08b6f55
+1 -1
View File
@@ -95,7 +95,7 @@ $(bold xhost +local:)
EOF
)
echo -n -e "$usage"
echo -n -e "$usage\n"
;;
*)