mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
Replace Vercel deployment with Cloudflare Pages using the same wrangler deploy pattern as Storybook and Playwright CI workflows. - Delete vercel.json, trigger-vercel-rebuild.yml, fetch-branch-artifacts.sh - Add deploy-branch-status.yml with wrangler pages deploy - Simplify build-pages.sh (no artifact fetching needed) - Revert unrelated CI workflow changes URLs: https://<branch>.comfyui-frontend-reports.pages.dev Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
97 lines
3.0 KiB
TypeScript
97 lines
3.0 KiB
TypeScript
import type { KnipConfig } from 'knip'
|
|
|
|
const config: KnipConfig = {
|
|
workspaces: {
|
|
'.': {
|
|
entry: [
|
|
'{build,scripts}/**/*.{js,ts}',
|
|
'src/assets/css/style.css',
|
|
'src/main.ts',
|
|
'src/scripts/ui/menu/index.ts',
|
|
'src/types/index.ts'
|
|
],
|
|
project: ['**/*.{js,ts,vue}', '*.{js,ts,mts}']
|
|
},
|
|
'packages/tailwind-utils': {
|
|
project: ['src/**/*.{js,ts}']
|
|
},
|
|
'packages/registry-types': {
|
|
project: ['src/**/*.{js,ts}']
|
|
}
|
|
},
|
|
ignoreBinaries: ['python3', 'gh'],
|
|
ignoreDependencies: [
|
|
// Weird importmap things
|
|
'@iconify/json',
|
|
'@primeuix/forms',
|
|
'@primeuix/styled',
|
|
'@primeuix/utils',
|
|
'@primevue/icons',
|
|
// Unused but kept for potential future use
|
|
'@sparkjsdev/spark',
|
|
'wwobjloader2',
|
|
'@iconify-json/lucide',
|
|
'yjs'
|
|
],
|
|
ignore: [
|
|
// Auto generated manager types
|
|
'src/workbench/extensions/manager/types/generatedManagerTypes.ts',
|
|
'packages/registry-types/src/comfyRegistryTypes.ts',
|
|
// Used by a custom node (that should move off of this)
|
|
'src/scripts/ui/components/splitButton.ts',
|
|
'.pages/vite.config.ts',
|
|
// Utility files with exports that may be used by extensions or future features
|
|
'src/constants/uvMirrors.ts',
|
|
'src/lib/litegraph/src/measure.ts',
|
|
'src/lib/litegraph/src/widgets/DisconnectedWidget.ts',
|
|
'src/renderer/extensions/vueNodes/widgets/utils/audioUtils.ts',
|
|
'src/utils/electronMirrorCheck.ts',
|
|
'src/renderer/extensions/vueNodes/composables/slotLinkDragContext.ts',
|
|
'src/types/spatialIndex.ts',
|
|
'src/lib/litegraph/src/litegraph.ts',
|
|
'src/utils/vintageClipboard.ts',
|
|
'src/platform/auth/session/useSessionCookie.ts',
|
|
'src/platform/support/config.ts',
|
|
'src/renderer/utils/nodeTypeGuards.ts',
|
|
'src/schemas/nodeDefSchema.ts',
|
|
'src/scripts/defaultGraph.ts',
|
|
'src/scripts/ui.ts',
|
|
'src/scripts/widgets.ts',
|
|
'src/services/litegraphService.ts',
|
|
'src/storybook/mocks/useJobActions.ts',
|
|
'src/storybook/mocks/useJobList.ts',
|
|
'src/utils/executableGroupNodeDto.ts',
|
|
'src/utils/litegraphUtil.ts',
|
|
'src/lib/litegraph/src/LGraph.ts',
|
|
'src/schemas/apiSchema.ts',
|
|
'src/schemas/nodeDef/nodeDefSchemaV2.ts'
|
|
],
|
|
compilers: {
|
|
// https://github.com/webpro-nl/knip/issues/1008#issuecomment-3207756199
|
|
css: (text: string) =>
|
|
[...text.replaceAll('plugin', 'import').matchAll(/(?<=@)import[^;]+/g)]
|
|
.map((match) => match[0].replace(/url\(['"]?([^'"()]+)['"]?\)/, '$1'))
|
|
.join('\n')
|
|
},
|
|
vite: {
|
|
config: ['vite?(.*).config.mts']
|
|
},
|
|
vitest: {
|
|
config: ['vitest?(.*).config.ts'],
|
|
entry: [
|
|
'**/*.{bench,test,test-d,spec}.?(c|m)[jt]s?(x)',
|
|
'**/__mocks__/**/*.[jt]s?(x)'
|
|
]
|
|
},
|
|
playwright: {
|
|
config: ['playwright?(.*).config.ts'],
|
|
entry: ['**/*.@(spec|test).?(c|m)[jt]s?(x)', 'browser_tests/**/*.ts']
|
|
},
|
|
tags: [
|
|
'-knipIgnoreUnusedButUsedByCustomNodes',
|
|
'-knipIgnoreUnusedButUsedByVueNodesBranch'
|
|
]
|
|
}
|
|
|
|
export default config
|