From b08b6ed1bd6f72444f64d081982cb98f573a7087 Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Fri, 25 Aug 2023 17:19:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index 6c48697..9880de1 100644 --- a/package.json +++ b/package.json @@ -7,30 +7,18 @@ "url": "https://github.com/jeecgboot/jeecgboot-vue3" }, "scripts": { - "bootstrap": "pnpm install", - "serve": "npm run dev", - "dev": "vite", + "install": "pnpm install", "clean:cache": "rimraf node_modules/.cache/ && rimraf node_modules/.vite", - "clean:lib": "rimraf node_modules", + "dev": "vite", "build": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=8192 vite build && esno ./build/script/postBuild.ts", - "build-report": "cross-env REPORT=true npm run build", - "build:no-cache": "pnpm clean:cache && npm run build", - "type:check": "vue-tsc --noEmit --skipLibCheck", + "build:report": "pnpm clean:cache && cross-env REPORT=true npm run build", "preview": "npm run build && vite preview", - "preview:dist": "vite preview", - "log": "conventional-changelog -p angular -i CHANGELOG.md -s", - "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 -c ./.husky/lintstagedrc.js", - "lint:pretty": "pretty-quick --staged", - "test:unit": "jest", - "test:unit-coverage": "jest --coverage", - "test:gzip": "http-server dist --cors --gzip -c-1", - "test:br": "http-server dist --cors --brotli -c-1", - "reinstall": "rimraf pnpm-lock.yaml && yarn.lock && rimraf package.lock.json && rimraf node_modules && npm run bootstrap", - "prepare": "husky install", - "gen:icon": "esno ./build/generate/icon/index.ts" + "reinstall": "rimraf pnpm-lock.yaml && yarn.lock && rimraf package.lock.json && rimraf node_modules && npm run install", + "clean:lib": "rimraf node_modules", + "gen:icon": "esno ./build/generate/icon/index.ts", + "batch:prettier": "prettier --write \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\"", + "upgrade:log": "conventional-changelog -p angular -i CHANGELOG.md -s", + "husky:install": "husky install" }, "dependencies": { "@jeecg/online": "3.5.3-beta3",