refactor: remove docs from build process and use separate script

This commit is contained in:
braks
2022-10-10 21:33:44 +02:00
committed by Braks
parent 24f7722f7c
commit e9d6ec1673
3 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "pnpm run typedoc:md && vitepress dev src", "dev": "pnpm run typedoc:md && vitepress dev src",
"build": "pnpm run typedoc:md && vitepress build src", "docs": "pnpm run typedoc:md && vitepress build src",
"serve": "vitepress serve src", "serve": "vitepress serve src",
"lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix --ignore-path .gitignore .", "lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix --ignore-path .gitignore .",
"typedoc:md": "typedoc --options ./typedoc.md.json", "typedoc:md": "typedoc --options ./typedoc.md.json",
+4 -3
View File
@@ -6,9 +6,10 @@
"dev": "pnpm --dir examples/vite dev", "dev": "pnpm --dir examples/vite dev",
"docs": "pnpm --dir docs dev", "docs": "pnpm --dir docs dev",
"changelog": "git-cliff --output CHANGELOG.md && git add CHANGELOG.md && git commit -m \"chore: Update CHANGELOG.md\"", "changelog": "git-cliff --output CHANGELOG.md && git add CHANGELOG.md && git commit -m \"chore: Update CHANGELOG.md\"",
"build": "turbo run build", "build:docs": "turbo docs",
"test": "turbo run test", "build": "turbo build",
"lint": "turbo run lint", "test": "turbo test",
"lint": "turbo lint",
"typedocs": "turbo run build && pnpm --dir docs typedocs", "typedocs": "turbo run build && pnpm --dir docs typedocs",
"ci:version": "changeset version", "ci:version": "changeset version",
"ci:publish": "turbo lint && turbo build && turbo test && changeset publish" "ci:publish": "turbo lint && turbo build && turbo test && changeset publish"
+4
View File
@@ -24,6 +24,10 @@
"dev": { "dev": {
"dependsOn": ["^build"], "dependsOn": ["^build"],
"cache": false "cache": false
},
"docs": {
"dependsOn": ["^build"],
"outputs": ["dist/**"]
} }
} }
} }