0.0.2 • Published 2 years ago

@marcoborsoi/nuxt-valtech-ui v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Valtech UI Nuxt Module

This application was built following the official Nuxt Module Author Guide.

Setup

You can use npmor 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:

  1. In the root folder of this library, run yarn link. This will create a symbolic link to the library.
  2. In the root folder of your client app, run yarn link @valtech/nuxt-valtech-ui. This will add the symbolic link to the node_modules folder in your client app.
  3. You can now define @valtech/nuxt-valtech-ui in nuxt.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.