varletjs/varlet-nuxt

Varlet module for Nuxt

30

stars

51

commits

Vue

primary language

Jun 14, 2024

updated

nuxt
nuxt-module
vue

README

Varlet Nuxt

🌟 Inspired by vant-nuxt and element-plus-nuxt

Welcome to contribute this repo

Varlet Module for Nuxt3

Feature

  • Auto import Varlet component in you Nuxt Project
  • Auto import Varlet the directive
  • Lazy load component
  • Material Design Nuxt Component with Material 3 Version

Quick Setup

  1. Add @varlet/nuxt dependency to your project
npx nuxi@latest module add varlet
  1. Add @varlet/nuxt to the modules section of nuxt.config.ts
export 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

Options

fieldNamerequiredefaulteffect
modulePathfalseundefindcustomer you workspace path if you want
excludefalse'.nuxt', 'node_modules'exclude some path that you won't transform
iconfalseundefinedsvg icon to iconfont

Contribution

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

Contributors

zhangmo8

43 commits

RSS1102

3 commits

zhuyucc

2 commits

danielroe

1 commits

varletjs/varlet-nuxt

Varlet module for Nuxt

30

stars

51

commits

Vue

primary language

Jun 14, 2024

updated

nuxt
nuxt-module
vue

README

Varlet Nuxt

🌟 Inspired by vant-nuxt and element-plus-nuxt

Welcome to contribute this repo

Varlet Module for Nuxt3

Feature

  • Auto import Varlet component in you Nuxt Project
  • Auto import Varlet the directive
  • Lazy load component
  • Material Design Nuxt Component with Material 3 Version

Quick Setup

  1. Add @varlet/nuxt dependency to your project
npx nuxi@latest module add varlet
  1. Add @varlet/nuxt to the modules section of nuxt.config.ts
export 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

Options

fieldNamerequiredefaulteffect
modulePathfalseundefindcustomer you workspace path if you want
excludefalse'.nuxt', 'node_modules'exclude some path that you won't transform
iconfalseundefinedsvg icon to iconfont

Contribution

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

Contributors

zhangmo8

43 commits

RSS1102

3 commits

zhuyucc

2 commits

danielroe

1 commits

Languages

Vue

87.3%

TypeScript

12.3%