92 lines
2.6 KiB
JSON
92 lines
2.6 KiB
JSON
{
|
|
"name": "vue-template-base",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"description": "使用 Vue3 + TS 构建的项目基础模版",
|
|
"author": "sankeyangshu",
|
|
"license": "MIT",
|
|
"keywords": [
|
|
"vue",
|
|
"typescript"
|
|
],
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"type-check": "vue-tsc --noEmit --skipLibCheck",
|
|
"preview": "vite preview",
|
|
"lint:lint-staged": "lint-staged",
|
|
"lint:eslint": "eslint \"src/**/*.{vue,ts,tsx}\" --fix",
|
|
"lint:prettier": "prettier --write --loglevel warn \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"",
|
|
"lint:stylelint": "stylelint --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/",
|
|
"prepare": "husky install"
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,jsx,ts,tsx}": [
|
|
"eslint --fix",
|
|
"prettier --write"
|
|
],
|
|
"{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": [
|
|
"prettier --write--parser json"
|
|
],
|
|
"package.json": [
|
|
"prettier --write"
|
|
],
|
|
"*.vue": [
|
|
"eslint --fix",
|
|
"prettier --write",
|
|
"stylelint --fix"
|
|
],
|
|
"*.{scss,less,styl}": [
|
|
"stylelint --fix",
|
|
"prettier --write"
|
|
],
|
|
"*.md": [
|
|
"prettier --write"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"@element-plus/icons-vue": "^2.3.1",
|
|
"echarts": "^5.5.1",
|
|
"element-plus": "^2.8.5",
|
|
"nprogress": "^0.2.0",
|
|
"path-browserify": "^1.0.1",
|
|
"pinia": "^2.1.7",
|
|
"vue": "^3.4.27",
|
|
"vue-echarts": "^7.0.3",
|
|
"vue-router": "^4.3.3"
|
|
},
|
|
"devDependencies": {
|
|
"@commitlint/cli": "^19.3.0",
|
|
"@commitlint/config-conventional": "^19.2.2",
|
|
"@types/node": "^20.14.2",
|
|
"@types/nprogress": "^0.2.3",
|
|
"@types/path-browserify": "^1.0.3",
|
|
"@typescript-eslint/eslint-plugin": "^7.13.0",
|
|
"@typescript-eslint/parser": "^7.13.0",
|
|
"@vitejs/plugin-vue": "^5.0.5",
|
|
"autoprefixer": "^10.4.19",
|
|
"eslint": "^8.57.0",
|
|
"eslint-config-prettier": "^9.1.0",
|
|
"eslint-plugin-import": "^2.29.1",
|
|
"eslint-plugin-prettier": "^5.1.3",
|
|
"eslint-plugin-simple-import-sort": "^12.1.0",
|
|
"eslint-plugin-vue": "^9.26.0",
|
|
"husky": "^9.0.11",
|
|
"lint-staged": "^15.2.7",
|
|
"postcss": "^8.4.38",
|
|
"postcss-html": "^1.7.0",
|
|
"prettier": "^3.3.2",
|
|
"sass": "^1.77.5",
|
|
"stylelint": "^16.6.1",
|
|
"stylelint-config-html": "^1.1.0",
|
|
"stylelint-config-recess-order": "^5.0.1",
|
|
"stylelint-config-recommended-scss": "^14.0.0",
|
|
"stylelint-config-recommended-vue": "^1.5.0",
|
|
"stylelint-config-standard-scss": "^13.1.0",
|
|
"typescript": "^5.4.5",
|
|
"vite": "^5.2.13",
|
|
"vite-plugin-svg-icons": "^2.0.1",
|
|
"vue-tsc": "^2.0.21"
|
|
}
|
|
}
|