Skip to content
Draft
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
4 changes: 2 additions & 2 deletions .github/workflows/policy-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:

- name: Check PR title
if: github.event.pull_request.user.login != 'renovate[bot]'
uses: zendev-lab/zendev/actions/validate-title@v0.4.0
uses: zendev-lab/zendev/actions/validate-title@7d8bcbf6134f62b7c7eaadb763f9a0d434717c44 # Shared message validation
with:
text: ${{ github.event.pull_request.title }}

- name: Check PR body
uses: zendev-lab/zendev/actions/validate-body@v0.4.0
uses: zendev-lab/zendev/actions/validate-body@7d8bcbf6134f62b7c7eaadb763f9a0d434717c44 # Shared Markdown scanner
with:
body: ${{ github.event.pull_request.body }}
template: .github/pull_request_template.md
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

仓库根:

| 命令 | 说明 |
| :--------------- | :------------------------------- |
| `vp install` | 安装依赖 |
| `vp run dev` | 各 app 开发服务(过滤 `apps/*`) |
| `vp run build` | 全部应用生产构建 → `apps/*/dist` |
| `vp run preview` | 预览构建结果 |
| `vp check` | 格式 + lint + 类型 |
| 命令 | 说明 |
| :--------------- | :-------------------------------------------- |
| `vp install` | 安装依赖 |
| `vp run dev` | 各 app 开发服务(过滤 `apps/*`) |
| `vp run build` | 全部应用 Astro 检查与生产构建 → `apps/*/dist` |
| `vp run preview` | 预览构建结果 |
| `vp check` | 格式 + lint + 类型 |

另有 `vp fmt`、`vp lint`、`vp test`(见 AGENTS)。Pre-commit、[prek](https://github.com/j178/prek):`vp install` 会跑 `prepare` 写入钩子;首次克隆可再执行 `prek install-hooks`。

Expand Down Expand Up @@ -55,7 +55,7 @@ hosting/ → 静态资源子模块(见下)

串联示例:`vp run build:cf:root && vp run deploy:cf:root`。

发布需 `wrangler login` 或环境变量 **`CLOUDFLARE_API_TOKEN`**(及按需 **`CLOUDFLARE_ACCOUNT_ID`**)。干净环境:`corepack enable && pnpm install --frozen-lockfile`。
发布需 `wrangler login` 或环境变量 **`CLOUDFLARE_API_TOKEN`**(及按需 **`CLOUDFLARE_ACCOUNT_ID`**)。干净环境:`vp install --frozen-lockfile`。

### 旧域名跳转

Expand Down
2 changes: 1 addition & 1 deletion apps/root/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "module",
"scripts": {
"dev": "astro dev",
"build": "astro build",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro",
"format": "vp fmt . --write",
Expand Down
2 changes: 1 addition & 1 deletion apps/slides/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "module",
"scripts": {
"dev": "astro dev",
"build": "astro build",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro",
"format": "vp fmt . --write",
Expand Down
4 changes: 2 additions & 2 deletions prek.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ hooks = [{ id = "typos", args = ["--force-exclude"] }]

[[repos]]
repo = "https://github.com/zendev-lab/zendev"
rev = "v0.2.0"
hooks = [{ id = "zendev-commit-msg" }]
rev = "7d8bcbf6134f62b7c7eaadb763f9a0d434717c44"
hooks = [{ id = "zendev-message-check" }]

[[repos]]
repo = "local"
Expand Down
Loading