Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
ntnyq committed Oct 7, 2024
1 parent ab2df8f commit d84d4d6
Show file tree
Hide file tree
Showing 13 changed files with 625 additions and 109 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
node_modules
*.log*
*.local

*.tsbuildinfo
.temp
.cache

dist
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npx nano-staged
nano-staged
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
lts-latest
2 changes: 0 additions & 2 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
shamefully-hoist=true
ignore-workspace-root-check=true
auto-install-peers=false
package-manager-strict=false
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ pnpm add @goy/vuepress-plugin-svg-icons -D
## Usage

```js
import { defineUserConfig } from 'vuepress'
import { svgIconPlugin } from '@goy/vuepress-plugin-svg-icons'
import { defineUserConfig } from 'vuepress'

export default defineUserConfig({
plugins: [svgIconPlugin()],
Expand Down
6 changes: 3 additions & 3 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { defineUserConfig } from 'vuepress'
import { svgIconPlugin } from '@goy/vuepress-plugin-svg-icons'
import { viteBundler } from '@vuepress/bundler-vite'
import { defaultTheme } from '@vuepress/theme-default'
import { shikiPlugin } from '@vuepress/plugin-shiki'
import { svgIconPlugin } from '@goy/vuepress-plugin-svg-icons'
import { defaultTheme } from '@vuepress/theme-default'
import { defineUserConfig } from 'vuepress'

export default defineUserConfig({
title: 'vuepress-plugin-svg-icons',
Expand Down
6 changes: 2 additions & 4 deletions docs/guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@ pnpm add @goy/vuepress-plugin-svg-icons -D
> See [Official Docs](https://v2.vuepress.vuejs.org/guide/plugin.html#plugin) about how to use plugin in VuePress.
```js
import { defineUserConfig } from 'vuepress'
import { svgIconPlugin } from '@goy/vuepress-plugin-svg-icons'
import { defineUserConfig } from 'vuepress'

export default defineUserConfig({
plugins: [
svgIconPlugin(),
],
plugins: [svgIconPlugin()],
})
```

Expand Down
3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"@goy/vuepress-plugin-svg-icons": "workspace:*",
"@vuepress/bundler-vite": "^2.0.0-rc.17",
"@vuepress/plugin-shiki": "^2.0.0-rc.52",
"@vuepress/theme-default": "^2.0.0-rc.52"
"@vuepress/theme-default": "^2.0.0-rc.52",
"sass-embedded": "^1.79.4"
}
}
8 changes: 2 additions & 6 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* @file ESLint config
*/
import { defineESLintConfig } from '@ntnyq/eslint-config'

import { ntnyq } from '@ntnyq/eslint-config'

export default ntnyq()
export default defineESLintConfig()
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
],
"scripts": {
"build": "run-s clean build:lib copy",
"build:docs": "pnpm --filter=docs run build",
"build:docs": "pnpm -C docs run build",
"build:lib": "tsc",
"clean": "rimraf dist *.tsbuildinfo",
"copy": "copyfiles -a -u 1 -V src/**/*.{css,js} dist",
"dev": "run-s dev:lib",
"dev:docs": "pnpm --filter=docs run dev",
"dev:docs": "pnpm -C docs run dev",
"dev:lib": "tsc-watch --onSuccess \"npm run copy\"",
"lint": "eslint .",
"prepare": "husky",
Expand Down Expand Up @@ -70,7 +70,7 @@
},
"prettier": "@ntnyq/prettier-config",
"nano-staged": {
"*.{js,ts,cjs,mjs,yaml,yml,md,json}": "eslint --fix"
"*.{js,ts,cjs,mjs,vue,yaml,yml,md,json}": "eslint --fix"
},
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit d84d4d6

Please sign in to comment.