@marcoborsoi/nuxt-valtech-ui
v0.0.2
Published
This application was built following the official [Nuxt Module Author Guide](https://v3.nuxtjs.org/guide/going-further/modules/).
Downloads
1
Readme
Valtech UI Nuxt Module
This application was built following the official Nuxt Module Author Guide.
Setup
You can use npm
or yarn
.
# install dependencies
yarn install
# build the library to be tested in playground
yarn dev:prepare
# to start playground in development mode
yarn dev
# build the app
yarn prepack
Develop and test locally
In order to develop and test your module, use the playground directory.
This application uses the components from the valtech-ui
component library project. In order to add it as a dependency to this Nuxt module, please follow the 3 steps described in the section Develop and test locally of the valtech-ui
component library project.
If you want to test the module in a Nuxt3 app locally:
- In the root folder of this library, run
yarn link
. This will create a symbolic link to the library. - In the root folder of your client app, run
yarn link @valtech/nuxt-valtech-ui
. This will add the symbolic link to thenode_modules
folder in your client app. - You can now define
@valtech/nuxt-valtech-ui
innuxt.config.ts
of your Nuxt app.
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: [
['@valtech/nuxt-valtech-ui', { addPlugin: true }]
],
})
There is no need to add @valtech/nuxt-valtech-ui
to your Nuxt app's dependency in this case.
If you made changes to the library, you will need to rebuild the library. Your Nuxt3 app shall hot reload when the building of library is completed.