From 04846bc8821780f5f467c43ae84bed07dd0c2c73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Quixada=CC=81?= <195494+lquixada@users.noreply.github.com> Date: Fri, 13 Dec 2024 12:13:53 -0500 Subject: [PATCH] refactor: improved make targets output --- Makefile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index c0ca39e5..5cc35fd3 100644 --- a/Makefile +++ b/Makefile @@ -3,11 +3,13 @@ all: test lint typecheck .PHONY: clean clean: + @echo "" + @echo "=> cleaning dependencies and builds..." @rm -Rf node_modules dist .PHONY: commit commit: - npx cz + @npx cz .PHONY: publish publish: @@ -29,7 +31,9 @@ server: # Builds node_modules: package.json - npm install && /usr/bin/touch node_modules + @echo "" + @echo "=> installing dependencies..." + @npm install && /usr/bin/touch node_modules dist: package.json rollup.config.js $(wildcard src/*.js) node_modules @echo "" @@ -47,11 +51,15 @@ test/fetch-api/api.spec.js: test/fetch-api/api.spec.ts .PHONY: commitlint commitlint: node_modules - npx commitlint --from origin/main --to HEAD --verbose + @echo "" + @echo "=> linting commits..." + @npx commitlint --from origin/main --to HEAD --verbose .PHONY: cov cov: - npx nyc report --reporter=text-lcov > .reports/coverage.lcov && npx codecov + @echo "" + @echo "=> checking code coverage..." + @npx nyc report --reporter=text-lcov > .reports/coverage.lcov && npx codecov .PHONY: lint lint: