Linters
This commit is contained in:
parent
6d5f33856c
commit
5f9b965be3
|
@ -39,10 +39,19 @@ test.each([
|
||||||
// New docs, without base path, new domain
|
// New docs, without base path, new domain
|
||||||
['https://mermaid.js.org/misc/faq.html', 'configure/faq.html'],
|
['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/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/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',
|
'https://mermaid.js.org/misc/faq.html#frequently-asked-questions',
|
||||||
'configure/faq.html#frequently-asked-questions',
|
'configure/faq.html#frequently-asked-questions',
|
||||||
|
|
5
run
5
run
|
@ -50,7 +50,7 @@ Development quick start guide:
|
||||||
|
|
||||||
$(bold ./$name pnpm install) # Install packages
|
$(bold ./$name pnpm install) # Install packages
|
||||||
$(bold ./$name dev) # Run dev server with examples, open http://localhost:9000
|
$(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 cypress) # Run integration tests (after starting dev server)
|
||||||
$(bold ./$name pnpm build) # Prepare it for production
|
$(bold ./$name pnpm build) # Prepare it for production
|
||||||
$(bold ./$name docs:dev) # Then add documentation, open http://localhost:3333
|
$(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)
|
$(bold ./$name pnpm add --filter mermaid) $(underline package)
|
||||||
Add package to mermaid
|
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)
|
$(bold git diff --name-only develop \| xargs ./$name pnpm prettier --write)
|
||||||
Prettify everything you added so far
|
Prettify everything you added so far
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue