- CLI 定义迁移至 src/bashly.yml(bashly 1.4 生成参数解析),入口收敛为 src/root_command.sh - 源码按功能域重组:config/storage/integrate/media/pipeline,消除扁平散落 - 新增零依赖测试框架 tests/(123 用例)与 CI 流水线(lint + test + build + 产物一致性) - build.sh 支持版本单一来源注入与 --check 产物校验;新增 lint.sh(bash -n + shellcheck 零容忍) - 删除旧单文件 media_organizer.sh 与旧扁平模块
28 lines
703 B
Makefile
28 lines
703 B
Makefile
# ============================================================================
|
||
# 任务统一入口
|
||
#
|
||
# make build 构建分发脚本 dist/media_organizer(bashly generate)
|
||
# make test 运行单元测试
|
||
# make lint ShellCheck + bash -n 静态检查
|
||
# make check lint + test + 产物一致性(可接 CI)
|
||
# make clean 删除构建产物
|
||
#
|
||
# 直接调用底层脚本亦可(./build.sh、./tests/run.sh、./lint.sh)。
|
||
# ============================================================================
|
||
.PHONY: build test lint check clean
|
||
|
||
build:
|
||
./build.sh
|
||
|
||
test:
|
||
./tests/run.sh
|
||
|
||
lint:
|
||
./lint.sh
|
||
|
||
check: lint test
|
||
./build.sh --check
|
||
|
||
clean:
|
||
rm -f dist/media_organizer
|