From 08d4e34b778caf6f92f02f038f7230fbfbdea885 Mon Sep 17 00:00:00 2001 From: vben <anncwb@126.com> Date: 星期二, 04 四月 2023 17:13:09 +0800 Subject: [PATCH] chore: config ts-config --- package.json | 299 ++++++++++++++++++++++++++++------------------------------- 1 files changed, 144 insertions(+), 155 deletions(-) diff --git a/package.json b/package.json index 7c408a6..74c4601 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,15 @@ { "name": "vben-admin", - "version": "2.8.0", + "version": "2.9.0", + "homepage": "https://github.com/anncwb/vue-vben-admin", + "bugs": { + "url": "https://github.com/anncwb/vue-vben-admin/issues" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/anncwb/vue-vben-admin.git" + }, + "license": "MIT", "author": { "name": "vben", "email": "anncwb@126.com", @@ -8,167 +17,35 @@ }, "scripts": { "bootstrap": "pnpm install", - "serve": "npm run dev", - "dev": "vite", "build": "cross-env NODE_ENV=production vite build && esno ./build/script/postBuild.ts", - "build:test": "cross-env vite build --mode test && esno ./build/script/postBuild.ts", "build:no-cache": "pnpm clean:cache && npm run build", - "report": "cross-env REPORT=true npm run build", - "type:check": "vue-tsc --noEmit --skipLibCheck", - "preview": "npm run build && vite preview", - "preview:dist": "vite preview", - "log": "conventional-changelog -p angular -i CHANGELOG.md -s", + "build:test": "cross-env vite build --mode test && esno ./build/script/postBuild.ts", "clean:cache": "rimraf node_modules/.cache/ && rimraf node_modules/.vite", "clean:lib": "rimraf node_modules", + "commit": "czg", + "dev": "vite", + "gen:icon": "esno ./build/generate/icon/index.ts", + "preinstall": "npx only-allow pnpm", + "postinstall": "turbo run stub", "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", - "test:unit": "jest", - "test:unit-coverage": "jest --coverage", - "test:gzip": "npx http-server dist --cors --gzip -c-1", - "test:br": "npx http-server dist --cors --brotli -c-1", - "reinstall": "rimraf pnpm-lock.yaml && rimraf package.lock.json && rimraf node_modules && npm run bootstrap", + "lint:stylelint": "stylelint \"**/*.{vue,css,less.scss}\" --fix --cache --cache-location node_modules/.cache/stylelint/", + "log": "conventional-changelog -p angular -i CHANGELOG.md -s", "prepare": "husky install", - "gen:icon": "esno ./build/generate/icon/index.ts" - }, - "dependencies": { - "@ant-design/colors": "^6.0.0", - "@ant-design/icons-vue": "^6.1.0", - "@iconify/iconify": "^2.1.2", - "@logicflow/core": "^1.1.7", - "@logicflow/extension": "^1.1.7", - "@vue/runtime-core": "^3.2.31", - "@vue/shared": "^3.2.31", - "@vueuse/core": "^8.1.1", - "@vueuse/shared": "^8.1.1", - "@zxcvbn-ts/core": "^2.0.1", - "ant-design-vue": "3.1.0-rc.1", - "axios": "^0.26.1", - "codemirror": "^5.65.2", - "cropperjs": "^1.5.12", - "crypto-js": "^4.1.1", - "dayjs": "^1.11.0", - "echarts": "^5.3.1", - "intro.js": "^5.0.0", - "lodash-es": "^4.17.21", - "mockjs": "^1.1.0", - "nprogress": "^0.2.0", - "path-to-regexp": "^6.2.0", - "pinia": "2.0.12", - "print-js": "^1.6.0", - "qrcode": "^1.5.0", - "qs": "^6.10.3", - "resize-observer-polyfill": "^1.5.1", - "showdown": "^2.0.3", - "sortablejs": "^1.14.0", - "tinymce": "^6.0.0", - "vditor": "^3.8.12", - "vue": "^3.2.31", - "vue-i18n": "^9.1.9", - "vue-json-pretty": "^2.0.6", - "vue-router": "^4.0.14", - "vue-types": "^4.1.1", - "xlsx": "^0.18.4" - }, - "devDependencies": { - "@commitlint/cli": "^16.2.3", - "@commitlint/config-conventional": "^16.2.1", - "@iconify/json": "^2.1.17", - "@purge-icons/generated": "^0.8.1", - "@types/codemirror": "^5.60.5", - "@types/crypto-js": "^4.1.1", - "@types/fs-extra": "^9.0.13", - "@types/inquirer": "^8.2.0", - "@types/intro.js": "^3.0.2", - "@types/jest": "^27.4.1", - "@types/lodash-es": "^4.17.6", - "@types/mockjs": "^1.0.6", - "@types/node": "^17.0.21", - "@types/nprogress": "^0.2.0", - "@types/qrcode": "^1.4.2", - "@types/qs": "^6.9.7", - "@types/showdown": "^1.9.4", - "@types/sortablejs": "^1.10.7", - "@typescript-eslint/eslint-plugin": "^5.15.0", - "@typescript-eslint/parser": "^5.15.0", - "@vitejs/plugin-legacy": "^1.7.1", - "@vitejs/plugin-vue": "^2.2.4", - "@vitejs/plugin-vue-jsx": "^1.3.8", - "@vue/compiler-sfc": "3.2.31", - "@vue/test-utils": "^2.0.0-rc.18", - "autoprefixer": "^10.4.4", - "commitizen": "^4.2.4", - "conventional-changelog-cli": "^2.2.2", - "cross-env": "^7.0.3", - "dotenv": "^16.0.0", - "eslint": "^8.11.0", - "eslint-config-prettier": "^8.5.0", - "eslint-define-config": "^1.3.0", - "eslint-plugin-jest": "^26.1.1", - "eslint-plugin-prettier": "^4.0.0", - "eslint-plugin-vue": "^8.5.0", - "esno": "^0.14.1", - "fs-extra": "^10.0.1", - "husky": "^7.0.4", - "inquirer": "^8.2.1", - "jest": "^27.5.1", - "less": "^4.1.2", - "lint-staged": "12.3.7", - "npm-run-all": "^4.1.5", - "postcss": "^8.4.12", - "postcss-html": "^1.3.0", - "postcss-less": "^6.0.0", - "prettier": "^2.6.0", - "rimraf": "^3.0.2", - "rollup": "^2.70.1", - "rollup-plugin-visualizer": "^5.6.0", - "stylelint": "^14.6.0", - "stylelint-config-html": "^1.0.0", - "stylelint-config-prettier": "^9.0.3", - "stylelint-config-recommended": "^7.0.0", - "stylelint-config-standard": "^25.0.0", - "stylelint-order": "^5.0.0", - "ts-jest": "^27.1.3", - "ts-node": "^10.7.0", - "typescript": "^4.6.2", - "vite": "^2.9.0-beta.3", - "vite-plugin-compression": "^0.5.1", - "vite-plugin-html": "^3.2.0", - "vite-plugin-imagemin": "^0.6.1", - "vite-plugin-mkcert": "^1.6.0", - "vite-plugin-mock": "^2.9.6", - "vite-plugin-purge-icons": "^0.8.1", - "vite-plugin-pwa": "^0.11.13", - "vite-plugin-style-import": "^2.0.0", - "vite-plugin-svg-icons": "^2.0.1", - "vite-plugin-theme": "^0.8.1", - "vite-plugin-vue-setup-extend": "^0.4.0", - "vite-plugin-windicss": "^1.8.3", - "vue-eslint-parser": "^8.3.0", - "vue-tsc": "^0.33.2" - }, - "resolutions": { - "bin-wrapper": "npm:bin-wrapper-china", - "rollup": "^2.56.3", - "gifsicle": "5.2.0" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/anncwb/vue-vben-admin.git" - }, - "license": "MIT", - "bugs": { - "url": "https://github.com/anncwb/vue-vben-admin/issues" - }, - "homepage": "https://github.com/anncwb/vue-vben-admin", - "engines": { - "node": "^12 || >=14" + "preview": "npm run build && vite preview", + "preview:dist": "vite preview", + "reinstall": "rimraf pnpm-lock.yaml && rimraf package.lock.json && rimraf node_modules && npm run bootstrap", + "report": "cross-env REPORT=true npm run build", + "serve": "npm run dev", + "test:br": "npx http-server dist --cors --brotli -c-1", + "test:gzip": "npx http-server dist --cors --gzip -c-1", + "test:unit": "jest", + "type:check": "vue-tsc --noEmit --skipLibCheck" }, "lint-staged": { "*.{js,jsx,ts,tsx}": [ - "eslint --fix", - "prettier --write" + "prettier --write", + "eslint --fix" ], "{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": [ "prettier --write--parser json" @@ -177,16 +54,128 @@ "prettier --write" ], "*.vue": [ - "eslint --fix", "prettier --write", + "eslint --fix", "stylelint --fix" ], "*.{scss,less,styl,html}": [ - "stylelint --fix", - "prettier --write" + "prettier --write", + "stylelint --fix" ], "*.md": [ "prettier --write" ] + }, + "config": { + "commitizen": { + "path": "node_modules/cz-git" + } + }, + "dependencies": { + "@ant-design/colors": "^7.0.0", + "@ant-design/icons-vue": "^6.1.0", + "@iconify/iconify": "^3.1.0", + "@logicflow/core": "^1.2.1", + "@logicflow/extension": "^1.2.1", + "@vue/runtime-core": "^3.2.47", + "@vue/shared": "^3.2.47", + "@vueuse/core": "^9.13.0", + "@vueuse/shared": "^9.13.0", + "@zxcvbn-ts/core": "^2.2.1", + "ant-design-vue": "^3.2.16", + "axios": "^1.3.4", + "codemirror": "^5.65.12", + "cropperjs": "^1.5.13", + "crypto-js": "^4.1.1", + "dayjs": "^1.11.7", + "echarts": "^5.4.2", + "exceljs": "^4.3.0", + "intro.js": "^7.0.1", + "lodash-es": "^4.17.21", + "mockjs": "^1.1.0", + "nprogress": "^0.2.0", + "path-to-regexp": "^6.2.1", + "pinia": "2.0.33", + "print-js": "^1.6.0", + "qrcode": "^1.5.1", + "qs": "^6.11.1", + "resize-observer-polyfill": "^1.5.1", + "showdown": "^2.1.0", + "sortablejs": "^1.15.0", + "tinymce": "^5.10.7", + "vditor": "^3.9.1", + "vue": "^3.2.47", + "vue-i18n": "^9.2.2", + "vue-json-pretty": "^2.2.4", + "vue-router": "^4.1.6", + "vue-types": "^5.0.2", + "vuedraggable": "^4.1.0", + "vxe-table": "^4.3.11", + "vxe-table-plugin-export-xlsx": "^3.0.4", + "xe-utils": "^3.5.7", + "xlsx": "^0.18.5" + }, + "devDependencies": { + "@commitlint/cli": "^17.5.1", + "@commitlint/config-conventional": "^17.4.4", + "@iconify/json": "^2.2.43", + "@purge-icons/generated": "^0.9.0", + "@types/codemirror": "^5.60.7", + "@types/crypto-js": "^4.1.1", + "@types/fs-extra": "^11.0.1", + "@types/inquirer": "^8.2.6", + "@types/intro.js": "^5.1.1", + "@types/lodash-es": "^4.17.7", + "@types/mockjs": "^1.0.7", + "@types/node": "^18.15.11", + "@types/nprogress": "^0.2.0", + "@types/qrcode": "^1.5.0", + "@types/qs": "^6.9.7", + "@types/showdown": "^2.0.0", + "@types/sortablejs": "^1.15.1", + "@vben/eslint-config": "workspace:*", + "@vben/stylelint-config": "workspace:*", + "@vben/ts-config": "workspace:*", + "@vitejs/plugin-vue": "^4.1.0", + "@vitejs/plugin-vue-jsx": "^3.0.1", + "@vue/compiler-sfc": "^3.2.47", + "@vue/test-utils": "^2.3.2", + "autoprefixer": "^10.4.14", + "conventional-changelog-cli": "^2.2.2", + "cross-env": "^7.0.3", + "cz-git": "^1.6.1", + "czg": "^1.6.1", + "dotenv": "^16.0.3", + "esno": "^0.16.3", + "fs-extra": "^11.1.1", + "husky": "^8.0.3", + "inquirer": "^9.1.5", + "less": "^4.1.3", + "lint-staged": "13.2.0", + "picocolors": "^1.0.0", + "postcss": "^8.4.21", + "postcss-html": "^1.5.0", + "postcss-less": "^6.0.0", + "prettier": "^2.8.7", + "prettier-plugin-packagejson": "^2.4.3", + "rimraf": "^4.4.1", + "rollup-plugin-visualizer": "^5.9.0", + "sass": "^1.60.0", + "turbo": "^1.8.8", + "typescript": "^5.0.3", + "unbuild": "^1.2.0", + "vite": "^4.3.0-beta.1", + "vite-plugin-compression": "^0.5.1", + "vite-plugin-html": "^3.2.0", + "vite-plugin-mock": "^2.9.6", + "vite-plugin-purge-icons": "^0.9.2", + "vite-plugin-svg-icons": "^2.0.1", + "vite-plugin-windicss": "^1.8.10", + "vue-tsc": "^1.2.0" + }, + "packageManager": "pnpm@8.1.0", + "engines": { + "node": ">=16.15.1", + "pnpm": ">=8.1.0" } } -- Gitblit v1.8.0