118 lines
3.7 KiB
JSON
118 lines
3.7 KiB
JSON
|
|
{
|
||
|
|
"name": "vite-vue3-h5",
|
||
|
|
"version": "0.0.0",
|
||
|
|
"homepage": "git@buqiyuan.github.io/vite-vue3-h5",
|
||
|
|
"scripts": {
|
||
|
|
"serve": "npm run dev",
|
||
|
|
"dev": "vite --host=0.0.0.0",
|
||
|
|
"build": "vite build",
|
||
|
|
"preview": "vite preview",
|
||
|
|
"deploy": "gh-pages -d dist",
|
||
|
|
"format": "prettier --write ./src",
|
||
|
|
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
||
|
|
"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",
|
||
|
|
"postversion": "git push && git push origin --tags",
|
||
|
|
"reinstall": "rimraf yarn.lock && rimraf package.lock.json && rimraf node_modules && npm run dev",
|
||
|
|
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
|
||
|
|
"test:gzip": "npx http-server dist --cors --gzip -c-1",
|
||
|
|
"test:br": "npx http-server dist --cors --brotli -c-1"
|
||
|
|
},
|
||
|
|
"dependencies": {
|
||
|
|
"@vant/area-data": "^1.3.1",
|
||
|
|
"@vant/touch-emulator": "^1.3.2",
|
||
|
|
"@vueuse/core": "^8.7.5",
|
||
|
|
"axios": "^0.27.2",
|
||
|
|
"dayjs": "^1.11.3",
|
||
|
|
"js-md5": "^0.7.3",
|
||
|
|
"lodash-es": "^4.17.21",
|
||
|
|
"pinia": "^2.0.13",
|
||
|
|
"qs": "^6.11.0",
|
||
|
|
"vant": "^4.0.0-alpha.4",
|
||
|
|
"vconsole": "^3.14.6",
|
||
|
|
"vue": "^3.2.37",
|
||
|
|
"vue-router": "^4.0.16",
|
||
|
|
"weixin-js-sdk": "^1.6.0"
|
||
|
|
},
|
||
|
|
"devDependencies": {
|
||
|
|
"@commitlint/cli": "^17.0.3",
|
||
|
|
"@commitlint/config-conventional": "^17.0.3",
|
||
|
|
"@types/lodash": "^4.14.182",
|
||
|
|
"@types/node": "^18.0.0",
|
||
|
|
"@typescript-eslint/eslint-plugin": "^5.30.0",
|
||
|
|
"@typescript-eslint/parser": "^5.30.0",
|
||
|
|
"@vitejs/plugin-legacy": "^1.8.2",
|
||
|
|
"@vitejs/plugin-vue": "^2.3.3",
|
||
|
|
"@vitejs/plugin-vue-jsx": "^1.3.10",
|
||
|
|
"@vue/compiler-sfc": "3.2.33",
|
||
|
|
"@vue/eslint-config-typescript": "^11.0.0",
|
||
|
|
"commitizen": "^4.2.4",
|
||
|
|
"conventional-changelog-cli": "^2.2.2",
|
||
|
|
"cz-conventional-changelog": "^3.3.0",
|
||
|
|
"eslint": "^8.18.0",
|
||
|
|
"eslint-config-prettier": "^8.5.0",
|
||
|
|
"eslint-plugin-import": "^2.26.0",
|
||
|
|
"eslint-plugin-prettier": "^4.1.0",
|
||
|
|
"eslint-plugin-vue": "^9.1.1",
|
||
|
|
"gh-pages": "^4.0.0",
|
||
|
|
"lint-staged": "^13.0.3",
|
||
|
|
"mockjs": "^1.1.0",
|
||
|
|
"postcss": "^8.4.14",
|
||
|
|
"postcss-html": "^1.4.1",
|
||
|
|
"postcss-scss": "^4.0.4",
|
||
|
|
"prettier": "^2.7.1",
|
||
|
|
"sass": "^1.53.0",
|
||
|
|
"stylelint": "^14.9.1",
|
||
|
|
"stylelint-config-html": "^1.0.0",
|
||
|
|
"stylelint-config-prettier": "^9.0.3",
|
||
|
|
"stylelint-config-recommended": "^8.0.0",
|
||
|
|
"stylelint-config-recommended-vue": "^1.4.0",
|
||
|
|
"stylelint-config-standard": "^26.0.0",
|
||
|
|
"stylelint-order": "^5.0.0",
|
||
|
|
"stylelint-scss": "^4.2.0",
|
||
|
|
"typescript": "^4.7.4",
|
||
|
|
"unplugin-vue-components": "^0.20.1",
|
||
|
|
"unplugin-vue-define-options": "^0.6.1",
|
||
|
|
"vite": "^2.9.13",
|
||
|
|
"vite-plugin-checker": "^0.4.6",
|
||
|
|
"vite-plugin-mock": "^2.9.6",
|
||
|
|
"vite-plugin-style-import": "^1.4.1",
|
||
|
|
"vue-eslint-parser": "^9.0.3",
|
||
|
|
"vue-tsc": "^0.38.2"
|
||
|
|
},
|
||
|
|
"license": "MIT",
|
||
|
|
"engines": {
|
||
|
|
"node": "^12 || >=14"
|
||
|
|
},
|
||
|
|
"lint-staged": {
|
||
|
|
"./src/**/*.{js,jsx,ts,tsx,vue}": [
|
||
|
|
"eslint --fix",
|
||
|
|
"git add ."
|
||
|
|
],
|
||
|
|
"*.{js,jsx,ts,tsx}": [
|
||
|
|
"eslint --fix",
|
||
|
|
"prettier --write"
|
||
|
|
],
|
||
|
|
"{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": [
|
||
|
|
"prettier --write"
|
||
|
|
],
|
||
|
|
"package.json": [
|
||
|
|
"prettier --write"
|
||
|
|
],
|
||
|
|
"*.vue": [
|
||
|
|
"eslint --fix",
|
||
|
|
"prettier --write",
|
||
|
|
"stylelint --fix"
|
||
|
|
],
|
||
|
|
"*.{scss,less,styl,html}": [
|
||
|
|
"stylelint --fix",
|
||
|
|
"prettier --write"
|
||
|
|
],
|
||
|
|
"*.md": [
|
||
|
|
"prettier --write"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|