|
@@ -0,0 +1,117 @@
|
|
|
+{
|
|
|
+ "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.3.1",
|
|
|
+ "@varlet/ui": "^2.4.2",
|
|
|
+ "@vueuse/core": "9.8.2",
|
|
|
+ "@vueuse/integrations": "9.8.2",
|
|
|
+ "axios": "1.2.1",
|
|
|
+ "dayjs": "^1.11.7",
|
|
|
+ "mitt": "^3.0.0",
|
|
|
+ "pinia": "^2.0.28",
|
|
|
+ "pinia-plugin-persistedstate": "^3.0.1",
|
|
|
+ "universal-cookie": "^4.0.4",
|
|
|
+ "vant": "^4.0.3",
|
|
|
+ "vue": "^3.2.45",
|
|
|
+ "vue-i18n": "^9.2.2",
|
|
|
+ "vue-router": "^4.1.6"
|
|
|
+ },
|
|
|
+ "devDependencies": {
|
|
|
+ "@typescript-eslint/eslint-plugin": "^5.47.0",
|
|
|
+ "@typescript-eslint/parser": "^5.47.0",
|
|
|
+ "@vitejs/plugin-legacy": "^3.0.1",
|
|
|
+ "@vitejs/plugin-vue": "^4.0.0",
|
|
|
+ "@vitejs/plugin-vue-jsx": "^3.0.0",
|
|
|
+ "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.9.1",
|
|
|
+ "eslint": "^8.30.0",
|
|
|
+ "eslint-config-prettier": "^8.5.0",
|
|
|
+ "eslint-plugin-prettier": "^4.2.1",
|
|
|
+ "eslint-plugin-vue": "^9.8.0",
|
|
|
+ "git-cz": "^4.9.0",
|
|
|
+ "husky": "8.0.2",
|
|
|
+ "lint-staged": "13.1.0",
|
|
|
+ "mockjs": "^1.1.0",
|
|
|
+ "postcss": "^8.4.20",
|
|
|
+ "postcss-html": "1.5.0",
|
|
|
+ "postcss-less": "^6.0.0",
|
|
|
+ "prettier": "^2.8.1",
|
|
|
+ "rollup-plugin-visualizer": "^5.8.3",
|
|
|
+ "stylelint": "^14.16.0",
|
|
|
+ "stylelint-config-prettier": "^9.0.4",
|
|
|
+ "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.16.1",
|
|
|
+ "typescript": "^4.9.4",
|
|
|
+ "unplugin-auto-import": "^0.12.1",
|
|
|
+ "unplugin-vue-components": "^0.22.12",
|
|
|
+ "vite": "^4.0.2",
|
|
|
+ "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.28.0",
|
|
|
+ "vite-plugin-progress": "^0.0.6",
|
|
|
+ "vite-plugin-restart": "^0.3.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.16"
|
|
|
+ },
|
|
|
+ "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"
|
|
|
+ ]
|
|
|
+ }
|
|
|
+}
|