Support docs:dev in docker

This commit is contained in:
Nikolay Rozhkov
2023-07-05 17:25:07 +03:00
parent c742ac71a4
commit 34b2b5ba35
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
"private": true, "private": true,
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vitepress --port 3333 --open", "dev": "vitepress --port 3333 --host",
"build": "pnpm prefetch && vitepress build", "build": "pnpm prefetch && vitepress build",
"build-no-prefetch": "vitepress build", "build-no-prefetch": "vitepress build",
"serve": "vitepress serve", "serve": "vitepress serve",

2
run
View File

@@ -27,7 +27,7 @@ $RUN --service-ports mermaid sh -c "npx pnpm run dev"
;; ;;
docs:dev) docs:dev)
$RUN --service-ports mermaid sh -c "cd packages/mermaid/src/docs && npx pnpm prefetch && npx vitepress --port 3333 --host" $RUN --service-ports mermaid sh -c "npx pnpm run --filter mermaid docs:dev"
;; ;;
cypress) cypress)