mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-06 09:08:51 +08:00
chore: 🚀 包管理工具迁移至pnpm
This commit is contained in:
parent
1cea4bb2f8
commit
49bb29d6bf
3
.github/CONTRIBUTING.md
vendored
3
.github/CONTRIBUTING.md
vendored
@ -53,6 +53,9 @@ npm run commit
|
||||
# 或者
|
||||
yarn commit
|
||||
|
||||
# 或者
|
||||
pnpm commit
|
||||
|
||||
## 执行命令后根据修改类型选择
|
||||
```
|
||||
|
||||
|
||||
4
.github/workflows/alipay.yml
vendored
4
.github/workflows/alipay.yml
vendored
@ -46,5 +46,5 @@ jobs:
|
||||
- name: upload
|
||||
run: |
|
||||
npm i uni-mini-ci -g
|
||||
yarn install
|
||||
yarn upload:mp-alipay
|
||||
pnpm install
|
||||
pnpm upload:mp-alipay
|
||||
|
||||
4
.github/workflows/npm-publish.yml
vendored
4
.github/workflows/npm-publish.yml
vendored
@ -18,10 +18,10 @@ jobs:
|
||||
registry-url: https://registry.npmjs.org
|
||||
|
||||
- name: Install Dependencies
|
||||
run: yarn
|
||||
run: pnpm
|
||||
|
||||
- name: Run Compiler
|
||||
run: yarn compiler
|
||||
run: pnpm compiler
|
||||
|
||||
- name: Publish Package
|
||||
run: |
|
||||
|
||||
4
.github/workflows/oss.yml
vendored
4
.github/workflows/oss.yml
vendored
@ -20,8 +20,8 @@ jobs:
|
||||
|
||||
- name: Install Dependencies and Build Docs
|
||||
run: |
|
||||
yarn install
|
||||
yarn build:docs
|
||||
pnpm install
|
||||
pnpm build:docs
|
||||
|
||||
- name: Setup Aliyun OSS
|
||||
uses: manyuanrong/setup-ossutil@master
|
||||
|
||||
4
.github/workflows/weixin.yml
vendored
4
.github/workflows/weixin.yml
vendored
@ -50,5 +50,5 @@ jobs:
|
||||
- name: upload
|
||||
run: |
|
||||
npm i uni-mini-ci -g
|
||||
yarn install
|
||||
yarn upload:mp-weixin
|
||||
pnpm install
|
||||
pnpm upload:mp-weixin
|
||||
|
||||
3
.npmrc
Normal file
3
.npmrc
Normal file
@ -0,0 +1,3 @@
|
||||
registry=https://registry.npmmirror.com/
|
||||
engine-strict=true
|
||||
strict-peer-dependencies=false
|
||||
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -8,7 +8,7 @@
|
||||
// "editor.formatOnSave": true,
|
||||
// #每次保存的时候将代码按eslint格式进行修复
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.eslint": true
|
||||
"source.fixAll.eslint": "explicit"
|
||||
},
|
||||
// 添加 vue 支持
|
||||
"eslint.validate": [
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
/*
|
||||
* @Author: weisheng
|
||||
* @Date: 2022-11-01 17:12:57
|
||||
* @LastEditTime: 2023-10-31 21:36:16
|
||||
* @LastEditTime: 2024-01-01 22:23:31
|
||||
* @LastEditors: weisheng
|
||||
* @Description: 组件发版问答
|
||||
* @FilePath: \wot-design-uni\build\release.js
|
||||
* @FilePath: /wot-design-uni/build/release.js
|
||||
* 记得注释
|
||||
*/
|
||||
const inquirer = require('inquirer')
|
||||
@ -39,16 +39,16 @@ inquirer
|
||||
// 项目版本更新
|
||||
switch (answers['version']) {
|
||||
case '🐛 patch 小版本':
|
||||
execSync('yarn release-patch')
|
||||
execSync('pnpm release-patch')
|
||||
break
|
||||
case '✨ minor 中版本':
|
||||
execSync('yarn release-minor')
|
||||
execSync('pnpm release-minor')
|
||||
break
|
||||
case '🚀 major 大版本':
|
||||
execSync('yarn release-major')
|
||||
execSync('pnpm release-major')
|
||||
break
|
||||
default:
|
||||
execSync('yarn release-minor')
|
||||
execSync('pnpm release-minor')
|
||||
break
|
||||
}
|
||||
// 生成日志
|
||||
@ -62,7 +62,7 @@ inquirer
|
||||
package.version = version
|
||||
writeFileSync(path.resolve(src, 'package.json'), JSON.stringify(package))
|
||||
// 生成制品
|
||||
execSync('yarn lint')
|
||||
execSync('pnpm lint')
|
||||
execSync('git add -A ')
|
||||
execSync(`git commit -am "build: compile ${version}"`)
|
||||
execSync(`git tag -a v${version} -am "chore(release): ${version}"`)
|
||||
|
||||
@ -42,6 +42,7 @@
|
||||
"docs:serve": "vitepress serve docs",
|
||||
"dev:docs": "vitepress dev docs --port 5174",
|
||||
"build:docs": "npm run build:h5 && vitepress build docs && node build/demoCopy.js",
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"prepare": "husky install",
|
||||
"lint": "eslint --fix --ext .js,.vue,.ts src",
|
||||
"commit": "git-cz",
|
||||
|
||||
10464
pnpm-lock.yaml
generated
Normal file
10464
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user