Skip to content

Commit

Permalink
chore: 更好的 vite3 兼容
Browse files Browse the repository at this point in the history
  • Loading branch information
markthree committed Jul 18, 2022
1 parent d50ab36 commit bb43a5b
Show file tree
Hide file tree
Showing 4 changed files with 372 additions and 331 deletions.
190 changes: 96 additions & 94 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,96 +1,98 @@
{
"name": "tov-template",
"version": "1.8.0",
"description": "vite + vue3 + ts 开箱即用现代开发模板",
"scripts": {
"dev": "vite",
"test": "vitest",
"build": "vite build",
"dev:host": "vite --host",
"dev:open": "vite --open",
"preview": "vite preview",
"deps:fresh": "npx taze -w",
"coverage": "vitest --coverage",
"analysis": "npx windicss-analysis",
"typecheck": "npx vue-tsc --noEmit",
"deps:fresh:major": "npx taze major -w",
"deps:fresh:minor": "npx taze minor -w",
"deps:fresh:patch": "npx taze patch -w",
"preview:host": "vite preview --host",
"preview:open": "vite preview --open",
"auto:create": "plop --plopfile scripts/create.js",
"auto:remove": "plop --plopfile scripts/remove.js",
"analysis:build": "npx windicss-analysis --html dist",
"lint": "eslint --ext .ts,.js,.jsx,.vue .",
"lint:fix": "eslint --fix --ext .ts,.js,.jsx,.vue .",
"prepare": "husky install"
},
"dependencies": {
"vue": "^3.2.37"
},
"engines": {
"node": ">=14"
},
"devDependencies": {
"@intlify/vite-plugin-vue-i18n": "^3.4.0",
"@types/ityped": "^1.0.1",
"@types/node": "^18.0.4",
"@types/nprogress": "^0.2.0",
"@typescript-eslint/parser": "^5.30.6",
"@vitejs/plugin-vue": "^2.3.3",
"@vitejs/plugin-vue-jsx": "^1.3.10",
"@vueuse/core": "^8.9.2",
"c8": "^7.11.3",
"eslint": "^8.19.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-vue": "^9.2.0",
"fast-glob": "^3.2.11",
"fs-extra": "^10.1.0",
"husky": "^8.0.1",
"ityped": "^1.0.3",
"lint-staged": "^13.0.3",
"local-pkg": "^0.4.2",
"markdown-it-anchor": "^8.6.4",
"markdown-it-prism": "^2.2.4",
"mockjs": "^1.1.0",
"nprogress": "^0.2.0",
"pinia": "^2.0.16",
"pinia-plugin-persistedstate": "^1.6.1",
"plop": "^3.1.1",
"prettier": "^2.7.1",
"prism-theme-vars": "^0.2.4",
"typescript": "^4.7.4",
"unplugin-auto-import": "^0.9.2",
"unplugin-icons": "^0.14.7",
"unplugin-vue-components": "^0.20.1",
"vite": "3",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-inspect": "^0.5.1",
"vite-plugin-md": "^0.15.0",
"vite-plugin-mock": "^2.9.6",
"vite-plugin-pages": "^0.25.0",
"vite-plugin-removelog": "^0.0.4",
"vite-plugin-restart": "^0.1.1",
"vite-plugin-use-modules": "^1.2.1",
"vite-plugin-vue-meta-layouts": "^0.1.1",
"vite-plugin-windicss": "^1.8.6",
"vitest": "^0.16.0",
"vue-i18n": "^9.1.10",
"vue-request": "^1.2.4",
"vue-router": "^4.1.2",
"windicss": "^3.5.6"
},
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
"rollup",
"markdown-it",
"@types/markdown-it"
]
}
},
"lint-staged": {
"*.{js,jsx,vue}": "eslint --cache --fix"
}
"name": "tov-template",
"version": "1.8.0",
"description": "vite + vue3 + ts 开箱即用现代开发模板",
"scripts": {
"dev": "vite",
"test": "vitest",
"build": "vite build",
"dev:host": "vite --host",
"dev:open": "vite --open",
"preview": "vite preview",
"deps:fresh": "npx taze -w",
"coverage": "vitest --coverage",
"analysis": "npx windicss-analysis",
"typecheck": "npx vue-tsc --noEmit",
"deps:fresh:major": "npx taze major -w",
"deps:fresh:minor": "npx taze minor -w",
"deps:fresh:patch": "npx taze patch -w",
"preview:host": "vite preview --host",
"preview:open": "vite preview --open",
"auto:create": "plop --plopfile scripts/create.js",
"auto:remove": "plop --plopfile scripts/remove.js",
"analysis:build": "npx windicss-analysis --html dist",
"lint": "eslint --ext .ts,.js,.jsx,.vue .",
"lint:fix": "eslint --fix --ext .ts,.js,.jsx,.vue .",
"prepare": "husky install"
},
"dependencies": {
"vue": "^3.2.37"
},
"engines": {
"node": ">=14"
},
"devDependencies": {
"@intlify/vite-plugin-vue-i18n": "^5.0.0",
"@types/ityped": "^1.0.1",
"@types/node": "^18.0.6",
"@types/nprogress": "^0.2.0",
"@typescript-eslint/parser": "^5.30.6",
"@vitejs/plugin-vue": "^3.0.1",
"@vitejs/plugin-vue-jsx": "^2.0.0",
"@vueuse/core": "^8.9.4",
"c8": "^7.11.3",
"eslint": "^8.20.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-vue": "^9.2.0",
"fast-glob": "^3.2.11",
"fs-extra": "^10.1.0",
"happy-dom": "^6.0.4",
"husky": "^8.0.1",
"ityped": "^1.0.3",
"lint-staged": "^13.0.3",
"local-pkg": "^0.4.2",
"markdown-it": "^13.0.1",
"markdown-it-anchor": "^8.6.4",
"markdown-it-prism": "^2.2.4",
"mockjs": "^1.1.0",
"nprogress": "^0.2.0",
"pinia": "^2.0.16",
"pinia-plugin-persistedstate": "^1.6.3",
"plop": "^3.1.1",
"prettier": "^2.7.1",
"prism-theme-vars": "^0.2.4",
"typescript": "^4.7.4",
"unplugin-auto-import": "^0.9.3",
"unplugin-icons": "^0.14.7",
"unplugin-vue-components": "^0.21.1",
"vite": "^3.0.1",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-inspect": "^0.6.0",
"vite-plugin-md": "^0.18.1",
"vite-plugin-mock": "^2.9.6",
"vite-plugin-pages": "^0.25.0",
"vite-plugin-removelog": "^0.0.4",
"vite-plugin-restart": "^0.2.0",
"vite-plugin-use-modules": "^1.2.1",
"vite-plugin-vue-meta-layouts": "^0.1.1",
"vite-plugin-windicss": "^1.8.7",
"vitest": "^0.18.1",
"vue-i18n": "^9.1.10",
"vue-request": "^1.2.4",
"vue-router": "^4.1.2",
"windicss": "^3.5.6"
},
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
"rollup",
"markdown-it",
"@types/markdown-it"
]
}
},
"lint-staged": {
"*.{js,jsx,vue}": "eslint --cache --fix"
}
}
Loading

0 comments on commit bb43a5b

Please sign in to comment.