#!/bin/bash RUN="docker-compose run --rm" # UP="docker-compose up" name=$(basename $0) command=$1 args=${@:2} case $command in sh) $RUN mermaid sh $args ;; i | install) $RUN mermaid sh -c "npx pnpm install $args" ;; test) $RUN mermaid sh -c "npx pnpm test $args" ;; vitest) $RUN mermaid sh -c "npx pnpm vitest $args" ;; e2e) $RUN mermaid sh -c "npx pnpm e2e $args" ;; lint) $RUN mermaid sh -c "npx pnpm -w run lint:fix" ;; dev) $RUN --service-ports mermaid sh -c "npx pnpm run dev" # $UP --rm mermaid sh -c "npx pnpm run dev" ;; help) usage=$( cat <