mirror of
https://github.com/sunniejs/vue-h5-template.git
synced 2025-04-06 03:57:50 +08:00
117 lines
3.4 KiB
JSON
117 lines
3.4 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": "^4.0.4",
|
|
"@varlet/ui": "^2.9.4",
|
|
"@vueuse/core": "9.13.0",
|
|
"@vueuse/integrations": "9.13.0",
|
|
"axios": "1.3.4",
|
|
"dayjs": "^1.11.7",
|
|
"mitt": "^3.0.0",
|
|
"pinia": "^2.0.33",
|
|
"pinia-plugin-persistedstate": "^3.1.0",
|
|
"universal-cookie": "^4.0.4",
|
|
"vant": "^4.1.2",
|
|
"vue": "^3.2.47",
|
|
"vue-i18n": "^9.2.2",
|
|
"vue-router": "^4.1.6"
|
|
},
|
|
"devDependencies": {
|
|
"@typescript-eslint/eslint-plugin": "^5.57.0",
|
|
"@typescript-eslint/parser": "^5.57.0",
|
|
"@vitejs/plugin-legacy": "^4.0.2",
|
|
"@vitejs/plugin-vue": "^4.1.0",
|
|
"@vitejs/plugin-vue-jsx": "^3.0.1",
|
|
"amfe-flexible": "^2.2.1",
|
|
"autoprefixer": "^10.4.14",
|
|
"cnjm-postcss-px-to-viewport": "^1.0.0",
|
|
"consola": "^2.15.3",
|
|
"cross-env": "^7.0.3",
|
|
"eruda": "^3.0.0",
|
|
"eslint": "^8.37.0",
|
|
"eslint-config-prettier": "^8.8.0",
|
|
"eslint-plugin-prettier": "^4.2.1",
|
|
"eslint-plugin-vue": "^9.10.0",
|
|
"git-cz": "^4.9.0",
|
|
"husky": "8.0.3",
|
|
"lint-staged": "13.2.0",
|
|
"mockjs": "^1.1.0",
|
|
"postcss": "^8.4.20",
|
|
"postcss-html": "1.5.0",
|
|
"postcss-less": "^6.0.0",
|
|
"prettier": "^2.8.7",
|
|
"rollup-plugin-visualizer": "^5.9.0",
|
|
"stylelint": "^15.4.0",
|
|
"stylelint-config-prettier": "^9.0.5",
|
|
"stylelint-config-recommended": "^11.0.0",
|
|
"stylelint-config-recommended-vue": "^1.4.0",
|
|
"stylelint-config-standard": "^32.0.0",
|
|
"stylelint-order": "^6.0.3",
|
|
"terser": "^5.16.8",
|
|
"typescript": "^5.0.2",
|
|
"unplugin-auto-import": "^0.15.2",
|
|
"unplugin-vue-components": "^0.24.1",
|
|
"vite": "^4.2.1",
|
|
"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.29.0",
|
|
"vite-plugin-progress": "^0.0.7",
|
|
"vite-plugin-restart": "^0.3.1",
|
|
"vite-plugin-svg-icons": "^2.0.1",
|
|
"vite-plugin-vue-setup-extend": "^0.4.0",
|
|
"vue-eslint-parser": "^9.1.1",
|
|
"vue-tsc": "^1.2.0"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
},
|
|
"resolutions": {
|
|
"bin-wrapper": "npm:bin-wrapper-china",
|
|
"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"
|
|
]
|
|
}
|
|
}
|