refactor: remove docs from build process and use separate script

This commit is contained in:
braks
2022-10-10 20:45:54 +02:00
committed by Braks
parent 24f7722f7c
commit e9d6ec1673
3 changed files with 9 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
"private": true,
"scripts": {
"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",
"lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix --ignore-path .gitignore .",
"typedoc:md": "typedoc --options ./typedoc.md.json",

View File

@@ -6,9 +6,10 @@
"dev": "pnpm --dir examples/vite dev",
"docs": "pnpm --dir docs dev",
"changelog": "git-cliff --output CHANGELOG.md && git add CHANGELOG.md && git commit -m \"chore: Update CHANGELOG.md\"",
"build": "turbo run build",
"test": "turbo run test",
"lint": "turbo run lint",
"build:docs": "turbo docs",
"build": "turbo build",
"test": "turbo test",
"lint": "turbo lint",
"typedocs": "turbo run build && pnpm --dir docs typedocs",
"ci:version": "changeset version",
"ci:publish": "turbo lint && turbo build && turbo test && changeset publish"

View File

@@ -24,6 +24,10 @@
"dev": {
"dependsOn": ["^build"],
"cache": false
},
"docs": {
"dependsOn": ["^build"],
"outputs": ["dist/**"]
}
}
}