Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/actions/setup-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ description: Setup Node
runs:
using: "composite"
steps:
- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v7
with:
node-version: lts/*
cache: yarn
cache: pnpm

- run: yarn install --frozen-lockfile
- run: pnpm install --frozen-lockfile
shell: bash
4 changes: 2 additions & 2 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:

- name: Commit and Push
run: |
yarn prettier
pnpm prettier
git config user.name noneflow[bot]
git config user.email 129742071+noneflow[bot]@users.noreply.github.com
git add .
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:

- name: Build and Publish Doc Package
run: |
yarn build:plugin --out-dir ../packages/nonebot-plugin-docs/nonebot_plugin_docs/dist
pnpm build:plugin --out-dir ../packages/nonebot-plugin-docs/nonebot_plugin_docs/dist
cd packages/nonebot-plugin-docs/
uv version ${{ steps.version.outputs.VERSION }}
uv build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:

- name: Archive Files
run: |
yarn archive $(uv version --short)
yarn prettier
pnpm archive $(uv version --short)
pnpm prettier

- name: Push Tag
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/website-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: ./.github/actions/build-api-doc

- name: Build Doc
run: yarn build
run: pnpm build

- name: Get Branch Name
run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/website-preview-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: ./.github/actions/build-api-doc

- name: Build Doc
run: yarn build
run: pnpm build

- name: Export Context
run: |
Expand Down
1 change: 0 additions & 1 deletion .yarnrc

This file was deleted.

8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

NoneBot 使用 [uv](https://docs.astral.sh/uv/) 管理项目依赖,由于 pre-commit 也经其管理,所以在此一并说明。

下面的命令能在已安装 uv 和 yarn 的情况下帮你快速配置开发环境。
下面的命令能在已安装 uv 和 pnpm 的情况下帮你快速配置开发环境。

```bash
# 安装 python 依赖
Expand Down Expand Up @@ -55,11 +55,11 @@ nonemoji commit [-e EMOJI] [-m MESSAGE] [-- ...]

NoneBot2 的文档使用 [docusaurus](https://docusaurus.io/),它有一些 [Markdown 特性](https://docusaurus.io/zh-CN/docs/markdown-features) 可能会帮助到你。

如果你需要在本地预览修改后的文档,可以使用 yarn 安装文档依赖后启动 dev server,如下所示:
如果你需要在本地预览修改后的文档,可以使用 pnpm 安装文档依赖后启动 dev server,如下所示:

```bash
yarn install
yarn start
pnpm install
pnpm start
```

NoneBot2 文档并没有具体的行文风格规范,但我们建议你尽量写得简单易懂。
Expand Down
19 changes: 8 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
{
"name": "root",
"private": true,
"packageManager": "yarn@1.22.22",
"workspaces": [
"website"
],
"packageManager": "pnpm@11.14.0",
"scripts": {
"archive": "yarn workspace nonebot docusaurus docs:version",
"build": "yarn workspace nonebot build",
"build:plugin": "cross-env BASE_URL='/website/' yarn workspace nonebot build",
"start": "yarn workspace nonebot start",
"serve": "yarn workspace nonebot serve",
"clear": "yarn workspace nonebot clear",
"archive": "pnpm --filter nonebot docusaurus docs:version",
"build": "pnpm --filter nonebot build",
"build:plugin": "cross-env BASE_URL='/website/' pnpm --filter nonebot build",
"start": "pnpm --filter nonebot start",
"serve": "pnpm --filter nonebot serve",
"clear": "pnpm --filter nonebot clear",
"prettier": "prettier --config ./.prettierrc --write \"./website/\"",
"lint": "yarn lint:js && yarn lint:style",
"lint": "pnpm lint:js && pnpm lint:style",
"lint:js": "eslint --cache --report-unused-disable-directives \"**/*.{js,jsx,ts,tsx,mjs}\"",
"lint:js:fix": "eslint --cache --report-unused-disable-directives --fix \"**/*.{js,jsx,ts,tsx,mjs}\"",
"lint:style": "stylelint \"**/*.css\"",
Expand Down
Loading
Loading