🌟 Inspired by vant-nuxt and element-plus-nuxt
Welcome to contribute this repo
Varlet Module for Nuxt3
@varlet/nuxt dependency to your projectnpx nuxi@latest module add varlet
@varlet/nuxt to the modules section of nuxt.config.tsexport default defineNuxtConfig({
modules: ['@varlet/nuxt'],
varlet: {
modulePath: '...',
exclude: ['...'],
icon: {}
}
})
That's it! You can now use Varlet Module in your Nuxt app ✨
tips: If you running varlet on the PC. Please install @varlet/touch-emulator
| fieldName | require | default | effect |
|---|---|---|---|
| modulePath | false | undefind | customer you workspace path if you want |
| exclude | false | '.nuxt', 'node_modules' | exclude some path that you won't transform |
| icon | false | undefined | svg icon to iconfont |
We recommend using pnpm
# Install dependencies
pnpm install
# Generate type stubs
pnpm run dev:prepare
# Develop with the playground
pnpm run dev
# Build the playground
pnpm run dev:build
# Run ESLint
pnpm run lint
# Release new version
pnpm run release