add some files
This commit is contained in:
parent
d1ee2539a9
commit
232329a05c
21
app.vue
21
app.vue
@ -1,21 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div>
|
|
||||||
<MlButton
|
|
||||||
:pt="{
|
|
||||||
root: { class: '' },
|
|
||||||
outer: { class: 'bg-gradient-to-r from-accent1 to-accent2' },
|
|
||||||
inner: { class: 'dark:bg-gradient-to-r bg-white' },
|
|
||||||
}"
|
|
||||||
>
|
|
||||||
Let's talk
|
|
||||||
</MlButton>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script setup>
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
|
|
||||||
</style>
|
|
@ -2,7 +2,7 @@
|
|||||||
import {
|
import {
|
||||||
defineNuxtModule,
|
defineNuxtModule,
|
||||||
createResolver,
|
createResolver,
|
||||||
addComponent,
|
addComponentsDir,
|
||||||
} from "@nuxt/kit";
|
} from "@nuxt/kit";
|
||||||
|
|
||||||
export interface ModuleOptions {}
|
export interface ModuleOptions {}
|
||||||
@ -16,9 +16,11 @@ export default defineNuxtModule<ModuleOptions>({
|
|||||||
setup(_options, _nuxt) {
|
setup(_options, _nuxt) {
|
||||||
const resolver = createResolver(import.meta.url);
|
const resolver = createResolver(import.meta.url);
|
||||||
|
|
||||||
addComponent({
|
addComponentsDir({
|
||||||
name: 'MlButton',
|
path: resolver.resolve("../src/components/Ml"),
|
||||||
filePath: resolver.resolve('../src/components/Ml/Button/MlButton.vue')
|
});
|
||||||
|
addComponentsDir({
|
||||||
|
path: resolver.resolve("../src/composables"),
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
css: ["~/assets/css/main.css"],
|
css: ["./assets/css/main.css"],
|
||||||
modules: ["@nuxtjs/tailwindcss", "@nuxtjs/color-mode", "~/modules/module"],
|
modules: ["@nuxtjs/tailwindcss", "@nuxtjs/color-mode", "./modules/module.ts"],
|
||||||
compatibilityDate: "2024-04-03",
|
compatibilityDate: "2024-04-03",
|
||||||
devtools: { enabled: true },
|
devtools: { enabled: true },
|
||||||
colorMode: {},
|
colorMode: {},
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nuxt3-reusable-components",
|
"name": "nuxt3-reusable-components",
|
||||||
"version": "1.2.3",
|
"version": "1.2.4",
|
||||||
"private": false,
|
"private": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
Loading…
Reference in New Issue
Block a user