Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangmo8 committed Apr 3, 2024
1 parent ae4c94e commit 56c379b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ Welcome to contribute this repo

Varlet Module for Nuxt3

## Future
## Feature

- [x] ~~Make up the Lazy Option~~
- Component Demo for Playground
- [x] ~~Template for Nuxt3~~
- [x] ~~Supports the directive~~
- 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

Expand All @@ -36,15 +36,23 @@ export default defineNuxtConfig({
'@varlet/nuxt'
],
varlet: {
...
}
modulePath: '...',
exclude: ['...']
},
})
```

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`](https://varlet.gitee.io/varlet-ui/#/zh-CN/browserAdaptation)

### Options

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

## Contribution

We recommend using pnpm
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@varlet/nuxt",
"type": "module",
"version": "0.0.10",
"version": "0.1.0",
"packageManager": "pnpm@7.22.0",
"description": "varlet module for nuxt",
"license": "MIT",
Expand Down Expand Up @@ -37,6 +37,9 @@
"release": "npm run build && npx changelogen --release && npm publish && git push --follow-tags",
"lint": "eslint . --fix"
},
"peerDependencies": {
"@varlet/ui": "latest"
},
"dependencies": {
"@nuxt/kit": "^3.3.2",
"@varlet/ui": "latest",
Expand Down Expand Up @@ -76,4 +79,4 @@
"access": "public",
"registry": "https://registry.npmjs.org/"
}
}
}

0 comments on commit 56c379b

Please sign in to comment.