forked from jd-solanki/anu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(nuxt): module related minor changes & docs update
- Loading branch information
1 parent
6f3c3c1
commit 23100e9
Showing
7 changed files
with
51 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
ignore-workspace-root-check=true | ||
shamefully-hoist=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,3 @@ | ||
# @anu-vue/nuxt | ||
|
||
## Install | ||
|
||
### pnpm | ||
``` | ||
pnpm add @anu-vue/nuxt && pnpm add -D @unocss/nuxt @iconify-json/bx | ||
``` | ||
|
||
### Add to nuxt.config.ts | ||
```ts | ||
export default { | ||
modules: [ | ||
'@anu-vue/nuxt', | ||
'@unocss/nuxt', | ||
], | ||
} | ||
``` | ||
|
||
## Create Config File | ||
unocss.config.ts | ||
|
||
```ts | ||
import type { UnocssNuxtOptions } from '@unocss/nuxt' | ||
import presetIcons from '@unocss/preset-icons' | ||
import presetUno from '@unocss/preset-uno' | ||
import { presetCore, presetThemeDefault } from 'anu-vue' | ||
|
||
export default <UnocssNuxtOptions>{ | ||
preflight: false, | ||
presets: [ | ||
presetUno(), | ||
presetIcons({ | ||
scale: 1.2, | ||
extraProperties: { | ||
'height': '1.5em', | ||
'flex-shrink': '0', | ||
'display': 'inline-block', | ||
}, | ||
}), | ||
|
||
// anu-vue presets | ||
presetCore(), | ||
presetThemeDefault(), | ||
], | ||
include: [/.*\/anu-nuxt\.js(.*)?$/, './**/*.vue', './**/*.md'], | ||
} | ||
``` | ||
|
||
|
||
|
||
## 💚 Credits | ||
|
||
Library Write [productdevbook](https://github.com/productdevbook) | ||
Please refer to the official [docs](https://anu-vue.netlify.app/guide/getting-started/installation.html#nuxt) for the details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters