- Configure oxfmt custom import groups for workspace, app, package, and test aliases - Keep type imports grouped with their matching source category instead of one global tail group - Expand the format script to cover formatter config, Vite files, and scripts
31 lines
567 B
TypeScript
31 lines
567 B
TypeScript
import type { ServerOptions } from 'vite'
|
|
|
|
export const WATCH_IGNORED = [
|
|
'**/desktop/**',
|
|
'**/packages/cli/**',
|
|
'**/packages/mcp/**',
|
|
'**/packages/docs/**',
|
|
'**/tests/**',
|
|
'**/.worktrees/**',
|
|
'**/.github/**',
|
|
'**/.pi/**'
|
|
]
|
|
|
|
export function createDevServerOptions(host: string | undefined): ServerOptions {
|
|
return {
|
|
port: 1420,
|
|
strictPort: true,
|
|
host: host || false,
|
|
hmr: host
|
|
? {
|
|
protocol: 'ws',
|
|
host,
|
|
port: 1421
|
|
}
|
|
: undefined,
|
|
watch: {
|
|
ignored: WATCH_IGNORED
|
|
}
|
|
}
|
|
}
|