mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 06:19:24 +02:00
At last something is working
This commit is contained in:
15
run
15
run
@@ -10,23 +10,19 @@ args=${@:2}
|
||||
case $command in
|
||||
|
||||
sh)
|
||||
$RUN mermaid sh $args
|
||||
$RUN --service-ports mermaid sh $args
|
||||
;;
|
||||
|
||||
i | install)
|
||||
$RUN mermaid sh -c "npx pnpm install $args"
|
||||
;;
|
||||
|
||||
test)
|
||||
$RUN mermaid sh -c "npx pnpm test $args"
|
||||
add)
|
||||
$RUN mermaid sh -c "npx pnpm -w add $args"
|
||||
;;
|
||||
|
||||
vitest)
|
||||
$RUN mermaid sh -c "npx pnpm vitest $args"
|
||||
;;
|
||||
|
||||
e2e)
|
||||
$RUN mermaid sh -c "npx pnpm e2e $args"
|
||||
test | vitest | e2e )
|
||||
$RUN mermaid sh -c "npx pnpm $command $args"
|
||||
;;
|
||||
|
||||
lint)
|
||||
@@ -46,6 +42,7 @@ Run commonly used commands within docker containers
|
||||
\033[1m$name install\033[0m # Equvalent of pnpm install
|
||||
\033[1m$name dev\033[0m # Run dev server with examples, open http://localhost:9000
|
||||
|
||||
$name add # Add package, 'run add d3-sankey'
|
||||
$name lint # Equvalent of pnpm -w run lint:fix
|
||||
$name test # Run unit tests
|
||||
$name vitest # Run watcher for unit tests
|
||||
|
Reference in New Issue
Block a user