Skip to content

Commit

Permalink
refactor: improved make targets output
Browse files Browse the repository at this point in the history
  • Loading branch information
lquixada committed Dec 21, 2024
1 parent 0ab2481 commit 04846bc
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 ""
Expand All @@ -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:
Expand Down

0 comments on commit 04846bc

Please sign in to comment.