diff --git a/packages/mermaid/src/docs/.vitepress/theme/redirect.spec.ts b/packages/mermaid/src/docs/.vitepress/theme/redirect.spec.ts index 9455882c5..7a5481a59 100644 --- a/packages/mermaid/src/docs/.vitepress/theme/redirect.spec.ts +++ b/packages/mermaid/src/docs/.vitepress/theme/redirect.spec.ts @@ -39,10 +39,19 @@ test.each([ // New docs, without base path, new domain ['https://mermaid.js.org/misc/faq.html', 'configure/faq.html'], ['https://mermaid.js.org/community/newDiagram.html', 'community/new-diagram.html'], - ['https://mermaid.js.org/community/development.html', 'community/contributing.html#initial-setup'], - ['https://mermaid.js.org/community/docker-development.html', 'community/contributing.html#initial-setup'], + [ + 'https://mermaid.js.org/community/development.html', + 'community/contributing.html#initial-setup', + ], + [ + 'https://mermaid.js.org/community/docker-development.html', + 'community/contributing.html#initial-setup', + ], ['https://mermaid.js.org/community/code.html', 'community/contributing.html#contributing-code'], - ['https://mermaid.js.org/community/documentation.html', 'community/contributing.html#contributing-documentation'], + [ + 'https://mermaid.js.org/community/documentation.html', + 'community/contributing.html#contributing-documentation', + ], [ 'https://mermaid.js.org/misc/faq.html#frequently-asked-questions', 'configure/faq.html#frequently-asked-questions', diff --git a/run b/run index aeaccb474..920e346f8 100755 --- a/run +++ b/run @@ -50,7 +50,7 @@ Development quick start guide: $(bold ./$name pnpm install) # Install packages $(bold ./$name dev) # Run dev server with examples, open http://localhost:9000 -$(bold ./$name pnpm test) # Run watcher for unit tests +$(bold ./$name pnpm vitest) # Run watcher for unit tests $(bold ./$name cypress) # Run integration tests (after starting dev server) $(bold ./$name pnpm build) # Prepare it for production $(bold ./$name docs:dev) # Then add documentation, open http://localhost:3333 @@ -71,6 +71,9 @@ Examples of frequiently used commands: $(bold ./$name pnpm add --filter mermaid) $(underline package) Add package to mermaid +$(bold ./$name pnpm -w run lint:fix) + Run prettier and ES lint + $(bold git diff --name-only develop \| xargs ./$name pnpm prettier --write) Prettify everything you added so far