Skip to content

Commit 20aeb77

Browse files
committed
build(Makefile): 添加 lint 的相关脚本
1 parent eacbd4c commit 20aeb77

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

Makefile

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,11 @@ preview-docs:
127127

128128
########################### test ###################################
129129

130-
.PHONY: test test-go test-ts lint-ts
130+
.PHONY: test test-go test-ts
131131
.PHONY: test-ts-core test-ts-components test-ts-admin test-ts-themes
132132
.PHONY: test-ts-docs
133133
.PHONY: test-ts-plugin-about test-ts-plugin-api
134134

135-
lint-ts:
136-
pnpm run lint
137-
138135
# 执行 Go 测试
139136
test-go: mk-coverage
140137
go vet -v ./...
@@ -171,6 +168,17 @@ test-ts: build-ts mk-coverage
171168
# 执行测试内容
172169
test: test-go test-ts
173170

171+
############################# lint ###############################
172+
.PHONY: lint lint-ts lint-go
173+
174+
lint-ts:
175+
pnpm run lint
176+
177+
lint-go:
178+
go vet ./cmfx
179+
180+
lint: lint-ts lint-go
181+
174182
############################# changelog ###############################
175183

176184
# 生成 CHANGELOG.md 文件,接受 from 和 to 参数,用于指定生成的范围,一般为 git tag 值。

0 commit comments

Comments
 (0)