mirror of
https://github.com/sunniejs/vue-h5-template.git
synced 2025-04-05 07:03:01 +08:00
120 lines
3.5 KiB
JSON
120 lines
3.5 KiB
JSON
{
|
|
"name": "vue-h5-template",
|
|
"version": "1.0.0",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"dev:test": "vite --mode test",
|
|
"dev:prod": "vite --mode production",
|
|
"build": "vue-tsc --noEmit && vite build",
|
|
"report": "cross-env REPORT=true npm run build",
|
|
"preview": "vite preview",
|
|
"lint:eslint": "eslint --cache --max-warnings 0 \"{src,mock}/**/*.{vue,ts,tsx}\" --fix",
|
|
"lint:prettier": "prettier --write \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\"",
|
|
"lint:stylelint": "stylelint --cache --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/",
|
|
"lint:lint-staged": "lint-staged",
|
|
"prepare": "husky install",
|
|
"deps": "yarn upgrade-interactive --latest",
|
|
"commit": "git add . && git-cz"
|
|
},
|
|
"dependencies": {
|
|
"@nutui/nutui": "^3.2.6",
|
|
"@varlet/ui": "^2.1.0",
|
|
"@vueuse/core": "9.4.0",
|
|
"@vueuse/integrations": "9.4.0",
|
|
"axios": "1.1.3",
|
|
"dayjs": "^1.11.6",
|
|
"mitt": "^3.0.0",
|
|
"pinia": "^2.0.23",
|
|
"pinia-plugin-persistedstate": "^2.3.0",
|
|
"universal-cookie": "^4.0.4",
|
|
"vant": "^3.6.4",
|
|
"vue": "^3.2.41",
|
|
"vue-i18n": "^9.2.2",
|
|
"vue-router": "^4.1.6"
|
|
},
|
|
"devDependencies": {
|
|
"@typescript-eslint/eslint-plugin": "^5.42.1",
|
|
"@typescript-eslint/parser": "^5.42.1",
|
|
"@vitejs/plugin-legacy": "^2.3.1",
|
|
"@vitejs/plugin-vue": "^3.2.0",
|
|
"@vitejs/plugin-vue-jsx": "^2.1.1",
|
|
"amfe-flexible": "^2.2.1",
|
|
"autoprefixer": "^10.4.13",
|
|
"cnjm-postcss-px-to-viewport": "^1.0.0",
|
|
"consola": "^2.15.3",
|
|
"cross-env": "^7.0.3",
|
|
"eruda": "^2.5.0",
|
|
"eslint": "^8.26.0",
|
|
"eslint-config-prettier": "^8.5.0",
|
|
"eslint-plugin-prettier": "^4.2.1",
|
|
"eslint-plugin-vue": "^9.7.0",
|
|
"git-cz": "^4.9.0",
|
|
"husky": "8.0.1",
|
|
"lint-staged": "13.0.3",
|
|
"mockjs": "^1.1.0",
|
|
"postcss": "^8.4.18",
|
|
"postcss-html": "1.5.0",
|
|
"postcss-less": "^6.0.0",
|
|
"prettier": "^2.7.1",
|
|
"rollup": "^2.70.2",
|
|
"rollup-plugin-visualizer": "^5.8.3",
|
|
"stylelint": "^14.14.0",
|
|
"stylelint-config-prettier": "^9.0.3",
|
|
"stylelint-config-recommended": "^9.0.0",
|
|
"stylelint-config-recommended-vue": "^1.4.0",
|
|
"stylelint-config-standard": "^29.0.0",
|
|
"stylelint-order": "^5.0.0",
|
|
"terser": "^5.15.1",
|
|
"typescript": "^4.8.4",
|
|
"unplugin-auto-import": "^0.11.4",
|
|
"unplugin-vue-components": "^0.22.9",
|
|
"vite": "^3.2.0",
|
|
"vite-plugin-compression": "^0.5.1",
|
|
"vite-plugin-eruda": "^1.0.1",
|
|
"vite-plugin-imagemin": "^0.6.1",
|
|
"vite-plugin-mock": "^2.9.6",
|
|
"vite-plugin-pages": "^0.27.1",
|
|
"vite-plugin-progress": "^0.0.6",
|
|
"vite-plugin-restart": "^0.2.0",
|
|
"vite-plugin-style-import": "^2.0.0",
|
|
"vite-plugin-svg-icons": "^2.0.1",
|
|
"vite-plugin-vue-setup-extend": "^0.4.0",
|
|
"vue-eslint-parser": "^9.1.0",
|
|
"vue-tsc": "^1.0.9"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
},
|
|
"resolutions": {
|
|
"bin-wrapper": "npm:bin-wrapper-china",
|
|
"rollup": "^2.56.3",
|
|
"gifsicle": "5.2.0"
|
|
},
|
|
"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,html}": [
|
|
"stylelint --fix",
|
|
"prettier --write"
|
|
],
|
|
"*.md": [
|
|
"prettier --write"
|
|
]
|
|
}
|
|
}
|