Skip to content

Commit

Permalink
chore: merge
Browse files Browse the repository at this point in the history
  • Loading branch information
MangMax committed Aug 10, 2024
2 parents f0ab651 + 8e58730 commit 964ccd9
Show file tree
Hide file tree
Showing 6 changed files with 635 additions and 13 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
shamefully-hoist=true
strict-peer-dependencies=false
registry=https://registry.npmmirror.com
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@

## 📦 Install

Install `nuxt-es-tookit` as development dependency:
Install `nuxt-es-toolkit` as development dependency:

```bash
npm i nuxt-es-tookit -D
npm i nuxt-es-toolkit -D
```

Add it to the `modules` section of your `nuxt.config`:

```ts
export default defineNuxtConfig({
modules: ["nuxt-es-tookit"],
modules: ["nuxt-es-toolkit"],
});
```

## 🚀 Example

Use any [es-tookit](https://es-toolkit.slash.page/intro.html) methods in your Nuxt application, they will be auto-imported!
Use any [es-toolkit](https://es-toolkit.slash.page/intro.html) methods in your Nuxt application, they will be auto-imported!

```html
<script setup>
Expand Down Expand Up @@ -89,8 +89,8 @@ const capitalize = useCapitalize('hello')

```ts
export default defineNuxtConfig({
modules: ["nuxt-es-tookit"],
'es-tookit': {
modules: ["nuxt-es-toolkit"],
'es-toolkit': {
prefix: 'use',
prefixSkip: 'is',
upperAfterPrefix: true,
Expand All @@ -102,7 +102,7 @@ export default defineNuxtConfig({
```

## Acknowledgement
The development of `nuxt-es-tookit` was made possible thanks to the inspiration and code base from [nuxt-lodash](https://github.com/cipami/nuxt-lodash).
The development of `nuxt-es-toolkit` was made possible thanks to the inspiration and code base from [nuxt-lodash](https://github.com/cipami/nuxt-lodash).

## 📄 License

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"lint": "eslint .",
"test": "vitest run",
"test:watch": "vitest watch",
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit",
"publish": "npm publish"
},
"dependencies": {
"@nuxt/kit": "^3.12.4",
Expand Down
8 changes: 4 additions & 4 deletions playground/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ const fish = [
},
]
const ra = {
Mode: 'god',
Power: 'sun',
}
// const ra = {
// Mode: 'god',
// Power: 'sun',
// }
const array = [1, 2, 3, 4, 5, 6]
// array
Expand Down
Loading

0 comments on commit 964ccd9

Please sign in to comment.