Skip to content

Commit 0ac3ff7

Browse files
committed
refactor: improved make targets output
1 parent c376265 commit 0ac3ff7

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

Makefile

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ all: test lint typecheck
33

44
.PHONY: clean
55
clean:
6+
@echo ""
7+
@echo "=> cleaning dependencies and builds..."
68
@rm -Rf node_modules dist
79

810
.PHONY: commit
911
commit:
10-
npx cz
12+
@npx cz
1113

1214
.PHONY: publish
1315
publish:
@@ -29,7 +31,9 @@ server:
2931
# Builds
3032

3133
node_modules: package.json
32-
npm install && /usr/bin/touch node_modules
34+
@echo ""
35+
@echo "=> installing dependencies..."
36+
@npm install && /usr/bin/touch node_modules
3337

3438
dist: package.json rollup.config.js $(wildcard src/*.js) node_modules
3539
@echo ""
@@ -47,11 +51,15 @@ test/fetch-api/api.spec.js: test/fetch-api/api.spec.ts
4751

4852
.PHONY: commitlint
4953
commitlint: node_modules
50-
npx commitlint --from origin/main --to HEAD --verbose
54+
@echo ""
55+
@echo "=> linting commits..."
56+
@npx commitlint --from origin/main --to HEAD --verbose
5157

5258
.PHONY: cov
5359
cov:
54-
npx nyc report --reporter=text-lcov > .reports/coverage.lcov && npx codecov
60+
@echo ""
61+
@echo "=> checking code coverage..."
62+
@npx nyc report --reporter=text-lcov > .reports/coverage.lcov && npx codecov
5563

5664
.PHONY: lint
5765
lint:

0 commit comments

Comments
 (0)