add some files

This commit is contained in:
Arina Yakovenko 2024-07-08 12:16:28 +02:00
parent d1ee2539a9
commit 232329a05c
4 changed files with 9 additions and 28 deletions

21
app.vue
View File

@ -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>

View File

@ -2,7 +2,7 @@
import {
defineNuxtModule,
createResolver,
addComponent,
addComponentsDir,
} from "@nuxt/kit";
export interface ModuleOptions {}
@ -16,9 +16,11 @@ export default defineNuxtModule<ModuleOptions>({
setup(_options, _nuxt) {
const resolver = createResolver(import.meta.url);
addComponent({
name: 'MlButton',
filePath: resolver.resolve('../src/components/Ml/Button/MlButton.vue')
addComponentsDir({
path: resolver.resolve("../src/components/Ml"),
});
addComponentsDir({
path: resolver.resolve("../src/composables"),
});
},
});

View File

@ -1,7 +1,7 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
css: ["~/assets/css/main.css"],
modules: ["@nuxtjs/tailwindcss", "@nuxtjs/color-mode", "~/modules/module"],
css: ["./assets/css/main.css"],
modules: ["@nuxtjs/tailwindcss", "@nuxtjs/color-mode", "./modules/module.ts"],
compatibilityDate: "2024-04-03",
devtools: { enabled: true },
colorMode: {},

View File

@ -1,6 +1,6 @@
{
"name": "nuxt3-reusable-components",
"version": "1.2.3",
"version": "1.2.4",
"private": false,
"type": "module",
"main": "index.js",