mirror of
https://github.com/142vip/408CSFamily.git
synced 2026-11-01 21:03:54 +08:00
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 安装依赖
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
#
|
||||
# 依赖安装脚本
|
||||
# 依赖安装脚本(CI / Docker / 本地)
|
||||
# 使用:
|
||||
# ./scripts/ci
|
||||
# ./scripts/ci --ignore-scripts # Docker 构建阶段跳过 lifecycle
|
||||
#
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
import { commitLiner } from '@142vip/commit-linter'
|
||||
import { VipColor, VipConsole, vipLogger } from '@142vip/utils'
|
||||
|
||||
/**
|
||||
* 验证Git Commit信息
|
||||
*/
|
||||
function verifyCommitMain(): void {
|
||||
const { type, scope, subject, commit } = commitLiner()
|
||||
|
||||
// 提交符合规范,打印相关信息
|
||||
VipConsole.log(`type: ${type}, scope: ${scope}, subject: ${subject}`)
|
||||
vipLogger.logByBlank(`${VipColor.greenBright('Git Commit: ')} ${VipColor.green(commit)}`)
|
||||
}
|
||||
|
||||
void verifyCommitMain()
|
||||
Reference in New Issue
Block a user