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