1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-11-01 12:53:56 +08:00
Files
408CSFamily/fairy.config.ts
chufan 7454b0380c refactor(chore): 迁移至 fairy-cli 工程化并升级 @142vip 依赖
- 新增 fairy.config.ts,单包仓覆盖 commitmsg/preinstall,移除 simple-git-hooks
- 升级 fairy-cli、utils、vuepress;check:commit 改为 fa commit --quiet
- 删除 scripts/core/verify-commit.ts,保留 scripts/ci 供 CI/Docker 安装依赖
2026-10-09 16:51:56 +08:00

31 lines
890 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { defineFairyConfig } from '@142vip/fairy-cli'
/**
* 本仓为单包 VuePress 文档站(无 `pnpm-workspace.yaml`),工程化基座为 `@142vip/fairy-cli`。
*
* - `pnpm i` 会执行 `@142vip/fairy-cli` postinstall,合并默认钩子并写入 `.git/hooks`
* - 覆盖默认 `commitmsg`(去掉 Monorepo `-s`);关闭 `precommit`
* - `pnpm check:commit` / `commit-msg`:`npx fa commit --quiet`
* - `pnpm release`:`npx fa release`(`release.vip` + `checkBranch`)
*/
export default defineFairyConfig({
hooks: {
precommit: false,
commitmsg: 'npx fa commit --quiet',
preinstall: [
'npx only-allow pnpm',
'sh -c \'if [ -d ./scripts ]; then find ./scripts -maxdepth 1 -type f -exec chmod +x {} +; fi\'',
],
},
commit: {
quiet: true,
},
release: {
vip: true,
checkBranch: [
'next',
'main',
],
},
})