Primeira Versão do Sistema de componentes Vue

This commit is contained in:
Luiz Silva 2025-12-08 13:59:04 -03:00
commit 35f9d57ce7
22 changed files with 1605 additions and 0 deletions

37
vite.config.ts Normal file
View file

@ -0,0 +1,37 @@
import { defineConfig } from "vite"
import vue from "@vitejs/plugin-vue"
import vuetify from "vite-plugin-vuetify"
import path from "node:path"
export default defineConfig({
plugins: [
vue(),
vuetify({ autoImport: true }),
],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
build: {
lib: {
entry: path.resolve(__dirname, "src/index.ts"),
name: "eli_vue",
fileName: (format) => `eli-vue.${format}.js`,
},
rollupOptions: {
// não bundle o Vue
external: ["vue", /^vuetify(\/.*)?$/],
output: {
globals: {
vue: "Vue",
vuetify: "Vuetify",
},
exports: "named",
},
},
},
})