Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
shisan committed Sep 27, 2021
1 parent 5bd408c commit e8555b6
Show file tree
Hide file tree
Showing 8 changed files with 1,131 additions and 2,101 deletions.
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,7 @@ Here the svg sprite map has been generated
`/src/components/SvgIcon.jsx`

```jsx
export default function SvgIcon({
name,
prefix = "icon",
color = "#333",
...props
}) {
export default function SvgIcon({ name, prefix = 'icon', color = '#333', ...props }) {
const symbolId = `#${prefix}-${name}`;

return (
Expand All @@ -164,7 +159,7 @@ export default function SvgIcon({
`/src/App.jsx`

```jsx
import SvgIcon from "./components/SvgIcon"
import SvgIcon from './components/SvgIcon';

export default function App() {
return (
Expand Down Expand Up @@ -236,7 +231,7 @@ cd ./example

yarn install

yarn serve
yarn dev

```

Expand Down
2 changes: 1 addition & 1 deletion README.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ cd ./example

yarn install

yarn serve
yarn dev

```

Expand Down
25 changes: 12 additions & 13 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
{
"name": "ts-example",
"name": "example",
"version": "0.0.0",
"scripts": {
"serve": "vite",
"dev": "vite",
"build": "vite build ",
"test:gzip": "npm run build && http-server dist --cors --gzip -c-1",
"test:br": "npm run build && http-server dist --cors --brotli -c-1"
},
"dependencies": {
"etag": "^1.8.1",
"fast-glob": "^3.2.5",
"fs-extra": "^9.1.0",
"svg-baker": "^1.7.0",
"svgo": "^2.3.0",
"vue": "^3.0.11"
"fast-glob": "^3.2.7",
"fs-extra": "^10.0.0",
"svgo": "^2.7.0",
"vue": "^3.2.19"
},
"devDependencies": {
"@vitejs/plugin-vue": "^1.2.2",
"@vitejs/plugin-vue-jsx": "^1.1.4",
"@vue/compiler-sfc": "^3.0.11",
"@vitejs/plugin-vue": "^1.9.2",
"@vitejs/plugin-vue-jsx": "^1.1.8",
"@vue/compiler-sfc": "^3.2.19",
"cross-env": "^7.0.3",
"http-server": "^0.12.3",
"typescript": "^4.2.4",
"vite": "^2.3.3"
"http-server": "^13.0.2",
"typescript": "^4.4.3",
"vite": "^2.5.10"
}
}
54 changes: 27 additions & 27 deletions example/vite-ssr-svgIcons-error/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,42 +15,42 @@
},
"dependencies": {
"lodash": "^4.17.21",
"vue": "^3.0.5",
"vue-router": "^4.0.3"
"vue": "^3.2.19",
"vue-router": "^4.0.11"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.11.9",
"@types/jest": "^26.0.22",
"@types/lodash": "^4.14.168",
"@typescript-eslint/eslint-plugin": "^4.21.0",
"@typescript-eslint/parser": "^4.21.0",
"@vitejs/plugin-vue": "^1.2.1",
"@vue/compiler-sfc": "^3.0.11",
"@testing-library/jest-dom": "^5.14.1",
"@types/jest": "^27.0.2",
"@types/lodash": "^4.14.174",
"@typescript-eslint/eslint-plugin": "^4.31.2",
"@typescript-eslint/parser": "^4.31.2",
"@vitejs/plugin-vue": "^1.9.2",
"@vue/compiler-sfc": "^3.2.19",
"@vue/eslint-config-typescript": "^7.0.0",
"@vue/server-renderer": "^3.0.6",
"@vue/test-utils": "^2.0.0-rc.4",
"autoprefixer": "^10.2.5",
"@vue/server-renderer": "^3.2.19",
"@vue/test-utils": "^2.0.0-rc.15",
"autoprefixer": "^10.3.6",
"compression": "^1.7.4",
"cross-env": "^7.0.3",
"eslint": "^7.24.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-vue": "^7.8.0",
"eslint": "^7.32.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-vue": "^7.18.0",
"express": "^4.17.1",
"glob": "^7.1.6",
"husky": "^6.0.0",
"inquirer": "^8.0.0",
"jest": "^26.6.3",
"glob": "^7.2.0",
"husky": "^7.0.2",
"inquirer": "^8.1.5",
"jest": "^27.2.2",
"jest-extended": "^0.11.5",
"lint-staged": "^10.5.4",
"lint-staged": "^11.1.2",
"mkdirp": "^1.0.4",
"postcss": "^8.2.9",
"postcss": "^8.3.8",
"serve-static": "^1.14.1",
"tailwindcss": "^2.1.1",
"ts-jest": "^26.5.4",
"typescript": "^4.1.3",
"vite": "^2.1.5",
"vue-jest": "^5.0.0-alpha.7",
"vue-tsc": "^0.0.15"
"tailwindcss": "^2.2.16",
"ts-jest": "^27.0.5",
"typescript": "^4.4.3",
"vite": "^2.5.10",
"vue-jest": "^5.0.0-alpha.10",
"vue-tsc": "^0.3.0"
},
"husky": {
"hooks": {
Expand Down
2 changes: 1 addition & 1 deletion example/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { UserConfigExport } from 'vite';
import vue from '@vitejs/plugin-vue';
import jsx from '@vitejs/plugin-vue-jsx';
import viteSvgIcons from '../src/index';
import viteSvgIcons from '../dist/index';
import path from 'path';

export default (): UserConfigExport => {
Expand Down
Loading

0 comments on commit e8555b6

Please sign in to comment.