切换pnpm安装依赖

pull/237/head
zhangdaiscott 2022-11-10 14:45:15 +08:00
parent 7abd3e5204
commit 8890e52e47
4 changed files with 16283 additions and 9 deletions

1
.npmrc Normal file
View File

@ -0,0 +1 @@
shamefully-hoist=true

View File

@ -62,7 +62,7 @@ git clone https://github.com/jeecgboot/jeecgboot-vue3.git
```bash ```bash
cd jeecgboot-vue3 cd jeecgboot-vue3
yarn install pnpm install
``` ```
@ -81,14 +81,14 @@ VITE_GLOB_DOMAIN_URL=http://localhost:8080/jeecg-boot
- run - run
```bash ```bash
yarn serve pnpm serve
``` ```
- build - build
```bash ```bash
yarn build pnpm build
``` ```
@ -124,9 +124,9 @@ VITE_GLOB_DOMAIN_URL=http://jeecg-boot-system:8080/jeecg-boot
- 编译项目 - 编译项目
```bash ```bash
yarn install pnpm install
yarn build pnpm build
``` ```
- 启动容器 - 启动容器

View File

@ -7,14 +7,14 @@
"url": "https://github.com/jeecgboot/jeecgboot-vue3" "url": "https://github.com/jeecgboot/jeecgboot-vue3"
}, },
"scripts": { "scripts": {
"bootstrap": "yarn install --registry https://registry.npm.taobao.org || npm install --ignore-scripts --registry https://registry.npm.taobao.org", "bootstrap": "pnpm install",
"serve": "npm run dev", "serve": "npm run dev",
"dev": "vite", "dev": "vite",
"clean:cache": "rimraf node_modules/.cache/ && rimraf node_modules/.vite", "clean:cache": "rimraf node_modules/.cache/ && rimraf node_modules/.vite",
"clean:lib": "rimraf node_modules", "clean:lib": "rimraf node_modules",
"build": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=8192 vite build && esno ./build/script/postBuild.ts", "build": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=8192 vite build && esno ./build/script/postBuild.ts",
"build:test": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build --mode test && esno ./build/script/postBuild.ts", "build:test": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build --mode test && esno ./build/script/postBuild.ts",
"build:no-cache": "yarn clean:cache && npm run build", "build:no-cache": "pnpm clean:cache && npm run build",
"report": "cross-env REPORT=true npm run build", "report": "cross-env REPORT=true npm run build",
"type:check": "vue-tsc --noEmit --skipLibCheck", "type:check": "vue-tsc --noEmit --skipLibCheck",
"preview": "npm run build && vite preview", "preview": "npm run build && vite preview",
@ -29,7 +29,7 @@
"test:unit-coverage": "jest --coverage", "test:unit-coverage": "jest --coverage",
"test:gzip": "http-server dist --cors --gzip -c-1", "test:gzip": "http-server dist --cors --gzip -c-1",
"test:br": "http-server dist --cors --brotli -c-1", "test:br": "http-server dist --cors --brotli -c-1",
"reinstall": "rimraf yarn.lock && rimraf package.lock.json && rimraf node_modules && npm run bootstrap", "reinstall": "rimraf pnpm-lock.yaml && yarn.lock && rimraf package.lock.json && rimraf node_modules && npm run bootstrap",
"prepare": "husky install", "prepare": "husky install",
"gen:icon": "esno ./build/generate/icon/index.ts" "gen:icon": "esno ./build/generate/icon/index.ts"
}, },
@ -162,7 +162,7 @@
"vite-plugin-compression": "^0.5.1", "vite-plugin-compression": "^0.5.1",
"vite-plugin-html": "^3.2.0", "vite-plugin-html": "^3.2.0",
"vite-plugin-imagemin": "^0.6.1", "vite-plugin-imagemin": "^0.6.1",
"vite-plugin-mkcert": "^1.9.0", "vite-plugin-mkcert": "^1.10.1",
"vite-plugin-mock": "^2.9.6", "vite-plugin-mock": "^2.9.6",
"vite-plugin-optimize-persist": "^0.1.2", "vite-plugin-optimize-persist": "^0.1.2",
"vite-plugin-package-config": "^0.1.1", "vite-plugin-package-config": "^0.1.1",

16273
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff