@sidekick-coder/zenith-kit 0.3.3 → 0.3.5
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/dist/client/index.es.js +14629 -0
- package/dist/components/index.es.js +21827 -57382
- package/dist/components/styles.css +1 -4926
- package/dist/server/index.d.mts +2 -2
- package/dist/shared/index.d.mts +1 -1
- package/eslint.config.mts +1 -0
- package/package.json +13 -8
- package/tsdown.config.ts +55 -41
- package/vite/createViteConfig.js +7 -0
- package/vite.client.config.ts +85 -0
- package/vite.config.ts +13 -3
- package/dist/client/chunk-0Lt9GpW0.mjs +0 -1
- package/dist/client/index.d.mts +0 -1176
- package/dist/client/index.mjs +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sidekick-coder/zenith-kit",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Package to use with zenith framework",
|
|
6
6
|
"author": "Henrique Oliveira <henriqueoliwork@gmail.com>",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"types": "./src/client/index.ts",
|
|
46
46
|
"import": "./src/client/index.ts"
|
|
47
47
|
},
|
|
48
|
-
"types": "./dist/client/index.d.
|
|
49
|
-
"import": "./dist/client/index.
|
|
50
|
-
"require": "./dist/client/index.
|
|
48
|
+
"types": "./dist/client/src/client/index.d.ts",
|
|
49
|
+
"import": "./dist/client/index.es.js",
|
|
50
|
+
"require": "./dist/client/index.es.js"
|
|
51
51
|
},
|
|
52
52
|
"./components": {
|
|
53
53
|
"development": {
|
|
@@ -64,8 +64,9 @@
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
|
-
"build:
|
|
68
|
-
"build:
|
|
67
|
+
"build:server": "tsdown",
|
|
68
|
+
"build:client": "vite build --config vite.client.config.ts",
|
|
69
|
+
"build:components": "vite build",
|
|
69
70
|
"build": "npm-run-all -p build:*",
|
|
70
71
|
"test:unit": "vitest --project unit",
|
|
71
72
|
"test:int": "vitest -p integration",
|
|
@@ -73,7 +74,9 @@
|
|
|
73
74
|
"release": "node artisan.js release"
|
|
74
75
|
},
|
|
75
76
|
"peerDependencies": {
|
|
76
|
-
"
|
|
77
|
+
"vee-validate": "^4.15.1",
|
|
78
|
+
"vue": "^3.5.41",
|
|
79
|
+
"vue-router": "^5.0.6"
|
|
77
80
|
},
|
|
78
81
|
"devDependencies": {
|
|
79
82
|
"@eslint/js": "^9.39.4",
|
|
@@ -84,6 +87,7 @@
|
|
|
84
87
|
"@types/cookie-parser": "^1.4.10",
|
|
85
88
|
"@types/cors": "^2.8.19",
|
|
86
89
|
"@types/supertest": "^7.2.0",
|
|
90
|
+
"acorn-typescript": "^1.4.13",
|
|
87
91
|
"better-sqlite3": "^12.10.0",
|
|
88
92
|
"npm-run-all": "^4.1.5"
|
|
89
93
|
},
|
|
@@ -95,6 +99,7 @@
|
|
|
95
99
|
"@inquirer/prompts": "^8.4.3",
|
|
96
100
|
"@rollup/pluginutils": "^5.3.0",
|
|
97
101
|
"@tailwindcss/vite": "^4.2.4",
|
|
102
|
+
"@tanstack/vue-table": "^9.1.2",
|
|
98
103
|
"@types/express": "^5.0.6",
|
|
99
104
|
"@types/js-yaml": "^4.0.9",
|
|
100
105
|
"@types/lodash-es": "^4.17.12",
|
|
@@ -136,7 +141,7 @@
|
|
|
136
141
|
"node-schedule": "^2.1.1",
|
|
137
142
|
"pg": "^8.20.0",
|
|
138
143
|
"qs": "^6.15.1",
|
|
139
|
-
"reka-ui": "^2.
|
|
144
|
+
"reka-ui": "^2.10.3",
|
|
140
145
|
"supertest": "^7.2.2",
|
|
141
146
|
"tailwind-merge": "^3.5.0",
|
|
142
147
|
"tsdown": "^0.21.9",
|
package/tsdown.config.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineConfig, globalLogger } from 'tsdown'
|
|
2
2
|
import { generateIndexFile } from './src/server/utils/generateIndexFile.ts'
|
|
3
|
+
import zenith from './vite/plugins/zenith.js'
|
|
3
4
|
|
|
4
5
|
export default defineConfig([
|
|
5
6
|
{
|
|
@@ -69,46 +70,59 @@ export default defineConfig([
|
|
|
69
70
|
})
|
|
70
71
|
}
|
|
71
72
|
},
|
|
72
|
-
{
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
73
|
+
// {
|
|
74
|
+
// entry: 'src/client/index.ts',
|
|
75
|
+
// outDir: 'dist/client',
|
|
76
|
+
// dts: true,
|
|
77
|
+
// minify: true,
|
|
78
|
+
// sourcemap: 'inline',
|
|
79
|
+
// tsconfig: 'tsconfig.client.json',
|
|
80
|
+
// define: {
|
|
81
|
+
// 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'development'),
|
|
82
|
+
// 'import.meta.env.DEV': process.env.NODE_ENV === 'development' ? "true" : "false",
|
|
83
|
+
// 'import.meta.env.PROD': process.env.NODE_ENV === 'production' ? "true" : "false",
|
|
84
|
+
// },
|
|
85
|
+
// // deps: {
|
|
86
|
+
// // neverBundle: [
|
|
87
|
+
// // 'vue',
|
|
88
|
+
// // 'vue-router',
|
|
89
|
+
// // '@unhead/vue',
|
|
90
|
+
// // ]
|
|
91
|
+
// // },
|
|
92
|
+
// plugins: [
|
|
93
|
+
// zenith({
|
|
94
|
+
// imports: [
|
|
95
|
+
// "vue",
|
|
96
|
+
// // "@vueuse/core",
|
|
97
|
+
// // "@unhead/vue",
|
|
98
|
+
// // "vue-router",
|
|
99
|
+
// // "vue-sooner",
|
|
100
|
+
// // "vee-validate",
|
|
101
|
+
// // "reka-ui",
|
|
102
|
+
// ]
|
|
103
|
+
// })
|
|
104
|
+
// ],
|
|
105
|
+
// hooks(hooks) {
|
|
106
|
+
// hooks.hook('build:before', async () => {
|
|
107
|
+
// generateIndexFile({
|
|
108
|
+
// folders: [
|
|
109
|
+
// 'src/client/services',
|
|
110
|
+
// 'src/client/composables',
|
|
111
|
+
// 'src/client/repositories',
|
|
112
|
+
// 'src/client/mixins',
|
|
113
|
+
// 'src/client/facades',
|
|
114
|
+
// 'src/client/loaders',
|
|
115
|
+
// 'src/client/entities',
|
|
116
|
+
// 'src/client/utils',
|
|
117
|
+
// 'src/client/guards',
|
|
118
|
+
// 'src/client/registry',
|
|
119
|
+
// ],
|
|
120
|
+
// filename: 'src/client/index.ts'
|
|
121
|
+
// })
|
|
122
|
+
//
|
|
123
|
+
// globalLogger.info('Generated index.ts for client')
|
|
124
|
+
// })
|
|
125
|
+
// }
|
|
126
|
+
// },
|
|
113
127
|
|
|
114
128
|
])
|
package/vite/createViteConfig.js
CHANGED
|
@@ -49,6 +49,13 @@ export default function(options) {
|
|
|
49
49
|
manifest: true,
|
|
50
50
|
ssr: options.ssr || false,
|
|
51
51
|
ssrManifest: options.ssr || false,
|
|
52
|
+
rollupOptions: {
|
|
53
|
+
external: [
|
|
54
|
+
'vue',
|
|
55
|
+
'vue-router',
|
|
56
|
+
'vee-validate'
|
|
57
|
+
],
|
|
58
|
+
},
|
|
52
59
|
lib: {
|
|
53
60
|
name: options.name,
|
|
54
61
|
entry: options.entry,
|
|
@@ -0,0 +1,85 @@
|
|
|
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/index.ts',
|
|
15
|
+
folders: [
|
|
16
|
+
'src/client/services',
|
|
17
|
+
'src/client/composables',
|
|
18
|
+
'src/client/repositories',
|
|
19
|
+
'src/client/mixins',
|
|
20
|
+
'src/client/facades',
|
|
21
|
+
'src/client/loaders',
|
|
22
|
+
'src/client/entities',
|
|
23
|
+
'src/client/utils',
|
|
24
|
+
'src/client/guards',
|
|
25
|
+
'src/client/registry',
|
|
26
|
+
]
|
|
27
|
+
})
|
|
28
|
+
|
|
29
|
+
logger.info('Generated index.ts for client')
|
|
30
|
+
}
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
const externals = [
|
|
34
|
+
'vue',
|
|
35
|
+
'vue-router',
|
|
36
|
+
'@vueuse/core',
|
|
37
|
+
'@vueuse/router',
|
|
38
|
+
'vee-validate',
|
|
39
|
+
'@vee-validate/valibot',
|
|
40
|
+
"@unhead/vue",
|
|
41
|
+
"vue-router",
|
|
42
|
+
"vue-sonner",
|
|
43
|
+
"vee-validate",
|
|
44
|
+
"reka-ui",
|
|
45
|
+
]
|
|
46
|
+
|
|
47
|
+
const plugins: UserConfig['plugins'] = [
|
|
48
|
+
vue({
|
|
49
|
+
template: {
|
|
50
|
+
compilerOptions: {
|
|
51
|
+
isCustomElement: (tag) => {
|
|
52
|
+
return ['iconify-icon'].includes(tag)
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}),
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
plugins.push(dts({
|
|
60
|
+
// entryRoot: 'src/client/index.ts',
|
|
61
|
+
tsconfigPath: './tsconfig.client.json',
|
|
62
|
+
staticImport: true,
|
|
63
|
+
}))
|
|
64
|
+
|
|
65
|
+
plugins.push(tailwindcss(), prebuild(), zenith({
|
|
66
|
+
imports: externals
|
|
67
|
+
}))
|
|
68
|
+
|
|
69
|
+
export default defineConfig({
|
|
70
|
+
customLogger: logger,
|
|
71
|
+
plugins: plugins,
|
|
72
|
+
build: {
|
|
73
|
+
outDir: 'dist/client',
|
|
74
|
+
rollupOptions: {
|
|
75
|
+
external: externals,
|
|
76
|
+
},
|
|
77
|
+
lib: {
|
|
78
|
+
name: 'Client',
|
|
79
|
+
entry: 'src/client/index.ts',
|
|
80
|
+
formats: ['es'],
|
|
81
|
+
fileName: (format) => `index.${format}.js`,
|
|
82
|
+
cssFileName: 'styles',
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
})
|
package/vite.config.ts
CHANGED
|
@@ -3,6 +3,7 @@ import vue from '@vitejs/plugin-vue'
|
|
|
3
3
|
import tailwindcss from '@tailwindcss/vite'
|
|
4
4
|
import dts from 'vite-plugin-dts'
|
|
5
5
|
import { generateIndexFile } from '#server/utils/generateIndexFile.ts'
|
|
6
|
+
import zenith from './vite/plugins/zenith'
|
|
6
7
|
|
|
7
8
|
const logger = createLogger()
|
|
8
9
|
|
|
@@ -20,14 +21,22 @@ const prebuild = () => ({
|
|
|
20
21
|
]
|
|
21
22
|
})
|
|
22
23
|
|
|
23
|
-
logger.info('Generated
|
|
24
|
+
logger.info('Generated components.ts for components')
|
|
24
25
|
}
|
|
25
26
|
})
|
|
26
27
|
|
|
27
28
|
const externals = [
|
|
28
29
|
'vue',
|
|
29
30
|
'vue-router',
|
|
31
|
+
'@vueuse/core',
|
|
32
|
+
'@vueuse/router',
|
|
30
33
|
'vee-validate',
|
|
34
|
+
'@vee-validate/valibot',
|
|
35
|
+
"@unhead/vue",
|
|
36
|
+
"vue-router",
|
|
37
|
+
"vue-sonner",
|
|
38
|
+
"vee-validate",
|
|
39
|
+
"reka-ui",
|
|
31
40
|
]
|
|
32
41
|
|
|
33
42
|
const plugins: UserConfig['plugins'] = [
|
|
@@ -48,14 +57,15 @@ plugins.push(dts({
|
|
|
48
57
|
staticImport: true
|
|
49
58
|
}))
|
|
50
59
|
|
|
51
|
-
plugins.push(tailwindcss(), prebuild()
|
|
60
|
+
plugins.push(tailwindcss(), prebuild(), zenith({
|
|
61
|
+
imports: externals
|
|
62
|
+
}))
|
|
52
63
|
|
|
53
64
|
export default defineConfig({
|
|
54
65
|
customLogger: logger,
|
|
55
66
|
plugins: plugins,
|
|
56
67
|
build: {
|
|
57
68
|
outDir: 'dist/components',
|
|
58
|
-
minify: false,
|
|
59
69
|
rollupOptions: {
|
|
60
70
|
external: externals,
|
|
61
71
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};export{t};
|