Skip to content

Commit

Permalink
feat: follow the automatic import configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangmo8 committed Apr 19, 2023
1 parent 10be091 commit 1dc4f19
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
27 changes: 14 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,28 @@ Welcome to contribute this repo

Varlet Module for Nuxt3

## Features
## Future

- Make up the Lazy Option
- Component Demo for Playground
- Template for Nuxt3

- Migrate to [knitwork](https://github.com/unjs/knitwork)

## Quick Setup

1. Add `@varlet/nuxt` dependency to your project

```bash
# Using pnpm
pnpm add -D @varlet/ui
pnpm add -D @varlet/nuxt

# Using yarn
yarn add --dev @varlet/ui
yarn add --dev @varlet/nuxt

# Using npm
npm install --save-dev @varlet/ui
npm install --save-dev @varlet/nuxt
```

Expand All @@ -41,28 +44,26 @@ export default defineNuxtConfig({

That's it! You can now use Varlet Module in your Nuxt app ✨

## Development
## Contribution

We recommend using pnpm

```bash
# Install dependencies
npm install
pnpm install

# Generate type stubs
npm run dev:prepare
pnpm run dev:prepare

# Develop with the playground
npm run dev
pnpm run dev

# Build the playground
npm run dev:build
pnpm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch
pnpm run lint

# Release new version
npm run release
pnpm run release
```
1 change: 1 addition & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default defineNuxtModule<ModuleOptions>({

nuxt.options.imports.autoImport !== false && resolveImports(_configs)
nuxt.options.components !== false && resolveComponents(_configs)
nuxt.options.imports.autoImport !== false && resolveImports(_configs)

nuxt.hook('vite:extendConfig', (config, { isClient }) => {
const mode = isClient ? 'client' : 'server'
Expand Down

0 comments on commit 1dc4f19

Please sign in to comment.