@sidekick-coder/zenith-kit 0.3.8 → 0.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/vite.config.ts DELETED
@@ -1,86 +0,0 @@
1
- import { createLogger, defineConfig, UserConfig } from 'vite'
2
- import vue from '@vitejs/plugin-vue'
3
- import tailwindcss from '@tailwindcss/vite'
4
- import dts from 'vite-plugin-dts'
5
- import { generateIndexFile } from '#server/utils/generateIndexFile.ts'
6
- import zenith from './vite/plugins/zenith'
7
-
8
- const logger = createLogger()
9
-
10
- const prebuild = () => ({
11
- name: 'prebuild',
12
- buildStart() {
13
- generateIndexFile({
14
- filename: 'src/client/components.ts',
15
- patterns: [
16
- 'src/client/composables/*.ts',
17
- 'src/client/components/ui/**/index.ts',
18
- 'src/client/components/*.vue',
19
- 'src/client/layouts/*.vue',
20
- 'src/client/css/*.css',
21
- ]
22
- })
23
-
24
- logger.info('Generated components.ts for components')
25
- }
26
- })
27
-
28
- const externals = [
29
- 'vue',
30
- // 'vue-router',
31
- // "vue-sonner",
32
- //
33
- // '@vueuse/core',
34
- // '@vueuse/router',
35
- //
36
- // 'vee-validate',
37
- // '@vee-validate/valibot',
38
- //
39
- // "@unhead/vue",
40
- // "@unhead/vue/components",
41
-
42
- "reka-ui",
43
- "vaul-vue",
44
- "lucide-vue-next",
45
- "embla-carousel-vue"
46
- ]
47
-
48
- const plugins: UserConfig['plugins'] = [
49
- vue({
50
- template: {
51
- compilerOptions: {
52
- isCustomElement: (tag) => {
53
- return ['iconify-icon'].includes(tag)
54
- }
55
- }
56
- }
57
- }),
58
- ]
59
-
60
- plugins.push(dts({
61
- // entryRoot: 'src/client/components.ts',
62
- tsconfigPath: './tsconfig.client.json',
63
- staticImport: true
64
- }))
65
-
66
- plugins.push(tailwindcss(), prebuild(), zenith({
67
- imports: externals
68
- }))
69
-
70
- export default defineConfig({
71
- customLogger: logger,
72
- plugins: plugins,
73
- build: {
74
- outDir: 'dist/components',
75
- rollupOptions: {
76
- external: externals,
77
- },
78
- lib: {
79
- name: 'Client',
80
- entry: 'src/client/components.ts',
81
- formats: ['es'],
82
- fileName: (format) => `index.${format}.js`,
83
- cssFileName: 'styles',
84
- },
85
- },
86
- })