chore: up

This commit is contained in:
Romain Hamel
2025-03-28 08:58:21 +01:00
parent 664e940098
commit f941df1541
33 changed files with 587 additions and 10 deletions

View File

@@ -16,6 +16,7 @@
"zod": "^3.24.2"
},
"devDependencies": {
"@compodium/vue": "https://pkg.pr.new/romhml/compodium/@compodium/vue@18f083d",
"@vitejs/plugin-vue": "^5.2.3",
"typescript": "^5.6.3",
"vite": "^6.2.3",

View File

@@ -10,7 +10,7 @@ const pages = import.meta.glob('../../playground/app/pages/**/*.vue')
const components = import.meta.glob('../../playground/app/components/**/*.vue')
const routes = Object.keys(pages).map((path) => {
const name = path.match(/\.\.\/\.\.\/playground\/app\/pages(.*)\.vue$/)![1].toLowerCase()
const name = path.match(/\.\.\/\.\.\/playground\/app\/pages(.*)\.vue$/)!.[1].toLowerCase()
return {
path: name === '/index' ? '/' : name,
component: pages[path]

View File

@@ -1,6 +1,7 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { compodium } from '@compodium/vue'
import ui from '../src/vite'
// https://vitejs.dev/config/
@@ -25,7 +26,21 @@ export default defineConfig({
components: {
dirs: ['../playground/app/components']
}
}),
compodium({
dir: '../playground/compodium',
includeLibraryCollections: false,
componentDirs: [
{ path: '../src/runtime/components', prefix: 'U', pathPrefix: false }
],
extras: {
colors: {
neutral: 'slate'
}
}
})
],
optimizeDeps: {
// prevents reloading page when navigating between components