Migrated from design-system-swarm with fresh git history.
Old project history preserved in /home/overbits/apps/design-system-swarm
Core components:
- MCP Server (Python FastAPI with mcp 1.23.1)
- Claude Plugin (agents, commands, skills, strategies, hooks, core)
- DSS Backend (dss-mvp1 - token translation, Figma sync)
- Admin UI (Node.js/React)
- Server (Node.js/Express)
- Storybook integration (dss-mvp1/.storybook)
Self-contained configuration:
- All paths relative or use DSS_BASE_PATH=/home/overbits/dss
- PYTHONPATH configured for dss-mvp1 and dss-claude-plugin
- .env file with all configuration
- Claude plugin uses ${CLAUDE_PLUGIN_ROOT} for portability
Migration completed: $(date)
🤖 Clean migration with full functionality preserved
61 lines
1.2 KiB
JavaScript
61 lines
1.2 KiB
JavaScript
import { defineConfig } from 'vite'
|
|
|
|
export default defineConfig({
|
|
plugins: [],
|
|
|
|
server: {
|
|
port: 3456,
|
|
open: false,
|
|
strictPort: true,
|
|
cors: true,
|
|
// Proxy configuration for backend API integration
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8002',
|
|
changeOrigin: true,
|
|
secure: false, // Allow proxying to HTTP backend from HTTPS frontend
|
|
}
|
|
},
|
|
// Hot Module Replacement configuration
|
|
hmr: {
|
|
protocol: 'http',
|
|
host: 'localhost',
|
|
port: 3456
|
|
}
|
|
},
|
|
|
|
build: {
|
|
outDir: 'dist',
|
|
sourcemap: false,
|
|
minify: 'terser',
|
|
// Treat paths with /admin-ui/ prefix as external (from index.html inline scripts)
|
|
rollupOptions: {
|
|
external: (id) => {
|
|
// External paths starting with /admin-ui/
|
|
if (id.startsWith('/admin-ui/')) {
|
|
return true
|
|
}
|
|
return false
|
|
},
|
|
output: {
|
|
manualChunks: (id) => {
|
|
if (id.includes('/js/core/')) return 'core'
|
|
if (id.includes('/js/services/')) return 'services'
|
|
if (id.includes('/js/components/')) return 'components'
|
|
}
|
|
}
|
|
}
|
|
},
|
|
|
|
preview: {
|
|
port: 3456,
|
|
open: false
|
|
},
|
|
|
|
resolve: {
|
|
alias: {
|
|
'@': '/js'
|
|
}
|
|
}
|
|
})
|