update some files
This commit is contained in:
parent
53e491fece
commit
188b357d9e
6
MlArror.vue
Normal file
6
MlArror.vue
Normal file
@ -0,0 +1,6 @@
|
||||
<template>
|
||||
<h1>Hello Nuxt3</h1>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
</script>
|
21
index.ts
Normal file
21
index.ts
Normal file
@ -0,0 +1,21 @@
|
||||
import { defineNuxtModule, addComponent } from "@nuxt/kit";
|
||||
import { resolve } from "path";
|
||||
|
||||
export default defineNuxtModule({
|
||||
meta: {
|
||||
name: "my-module",
|
||||
configKey: "myModule",
|
||||
},
|
||||
setup() {
|
||||
// Register the component globally
|
||||
addComponent({
|
||||
name: "MlArror",
|
||||
filePath: resolve(
|
||||
__dirname,
|
||||
"MlArror.vue",
|
||||
"./components/Ml/Accordion/MlAccordionBase.vue",
|
||||
"./components/Ml/Button/MlButton.vue"
|
||||
),
|
||||
});
|
||||
},
|
||||
});
|
16
package.json
16
package.json
@ -1,13 +1,14 @@
|
||||
{
|
||||
"name": "nuxt3-reusable-components",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.9",
|
||||
"private": false,
|
||||
"type": "module",
|
||||
"main": "app.vue",
|
||||
"main": "index.ts",
|
||||
"files": [
|
||||
"app.vue",
|
||||
"components/**/*",
|
||||
"composables/**/*",
|
||||
"index.ts",
|
||||
"MlArror.vue",
|
||||
"MlAccordionBase.vue",
|
||||
"MlButton.vue",
|
||||
"nuxt.config.ts",
|
||||
"tailwind.config.js",
|
||||
"package.json"
|
||||
@ -21,6 +22,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@heroicons/vue": "^2.1.4",
|
||||
"@nuxt/kit": "^3.12.3",
|
||||
"@nuxtjs/color-mode": "^3.4.2",
|
||||
"@nuxtjs/tailwindcss": "^6.12.0",
|
||||
"@vueuse/core": "^10.11.0",
|
||||
"classnames": "^2.5.1",
|
||||
@ -28,8 +31,7 @@
|
||||
"swiper": "^11.1.4",
|
||||
"tailwind-merge": "^2.3.0",
|
||||
"typescript": "^5.5.3",
|
||||
"vue": "latest",
|
||||
"@nuxtjs/color-mode": "^3.4.2"
|
||||
"vue": "latest"
|
||||
},
|
||||
"packageManager": "pnpm@9.1.1+sha512.14e915759c11f77eac07faba4d019c193ec8637229e62ec99eefb7cf3c3b75c64447882b7c485142451ee3a6b408059cdfb7b7fa0341b975f12d0f7629c71195",
|
||||
"devDependencies": {
|
||||
|
3
pnpm-lock.yaml
generated
3
pnpm-lock.yaml
generated
@ -11,6 +11,9 @@ importers:
|
||||
'@heroicons/vue':
|
||||
specifier: ^2.1.4
|
||||
version: 2.1.4(vue@3.4.31(typescript@5.5.3))
|
||||
'@nuxt/kit':
|
||||
specifier: ^3.12.3
|
||||
version: 3.12.3(magicast@0.3.4)(rollup@4.18.0)
|
||||
'@nuxtjs/color-mode':
|
||||
specifier: ^3.4.2
|
||||
version: 3.4.2(magicast@0.3.4)(rollup@4.18.0)
|
||||
|
Loading…
Reference in New Issue
Block a user