chore(docs): update typedocs config to use vueflow pkg as entry
This commit is contained in:
@@ -8,7 +8,6 @@ import IconsResolver from 'unplugin-icons/resolver'
|
||||
import Components from 'unplugin-vue-components/vite'
|
||||
import AutoImport from 'unplugin-auto-import/vite'
|
||||
import { useVueFlow } from '@vue-flow/core'
|
||||
import { copyVueFlowPlugin } from './copy-plugin'
|
||||
import head from './head'
|
||||
|
||||
const { vueFlowVersion } = useVueFlow()
|
||||
@@ -50,7 +49,6 @@ export default defineConfigWithTheme<DefaultTheme.Config>({
|
||||
exclude: ['@animxyz/vue3'],
|
||||
},
|
||||
plugins: [
|
||||
copyVueFlowPlugin(),
|
||||
AutoImport({
|
||||
imports: ['vue', '@vueuse/core'],
|
||||
dts: resolve(__dirname, '../auto-imports.d.ts'),
|
||||
|
||||
@@ -7,8 +7,11 @@ export function copyVueFlowPlugin(): Plugin {
|
||||
name: 'copy-vue-flow',
|
||||
generateBundle() {
|
||||
;[
|
||||
{ path: '../../node_modules/@vue-flow/core/dist/', pkgName: 'vue-flow.es.js' },
|
||||
{ path: '../../node_modules/@vue-flow/additional-components/dist/', pkgName: 'additional-components.es.js' },
|
||||
{ path: '../../node_modules/@vue-flow/core/dist/', pkgName: 'vue-flow-core.es.js' },
|
||||
{
|
||||
path: '../../node_modules/@vue-flow/additional-components/dist/',
|
||||
pkgName: 'vue-flow-core-additional-components.es.js',
|
||||
},
|
||||
].forEach(({ path, pkgName }) => {
|
||||
const filePath = resolve(__dirname, `${path}/${pkgName}`)
|
||||
if (!existsSync(filePath)) {
|
||||
|
||||
+10
-6
@@ -3,7 +3,10 @@
|
||||
"baseUrl": ".",
|
||||
"module": "ESNext",
|
||||
"target": "es2017",
|
||||
"lib": ["DOM", "ESNext"],
|
||||
"lib": [
|
||||
"DOM",
|
||||
"ESNext"
|
||||
],
|
||||
"strict": true,
|
||||
"esModuleInterop": true,
|
||||
"incremental": false,
|
||||
@@ -13,10 +16,11 @@
|
||||
"noUnusedLocals": false,
|
||||
"strictNullChecks": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"paths": {
|
||||
"~/*": ["../packages/vue-flow/src/*"]
|
||||
}
|
||||
},
|
||||
"include": ["../packages/vue-flow", "../packages/additional-components"],
|
||||
"exclude": ["node_modules"]
|
||||
"include": [
|
||||
"../packages/vue-flow"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
||||
|
||||
+1
-2
@@ -5,8 +5,7 @@
|
||||
"typedoc-plugin-merge-modules"
|
||||
],
|
||||
"entryPoints": [
|
||||
"../packages/vue-flow/src/index.ts",
|
||||
"../packages/additional-components/src/index.ts"
|
||||
"../packages/vue-flow/src/index.ts"
|
||||
],
|
||||
"categorizeByGroup": true,
|
||||
"darkHighlightTheme": "vitesse-dark",
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
"typedoc-plugin-markdown"
|
||||
],
|
||||
"entryPoints": [
|
||||
"../packages/vue-flow/src/index.ts",
|
||||
"../packages/additional-components/src/index.ts"
|
||||
"../packages/vue-flow/src/index.ts"
|
||||
],
|
||||
"allReflectionsHaveOwnDocument": true,
|
||||
"categorizeByGroup": true,
|
||||
|
||||
Reference in New Issue
Block a user