Skip to content

Commit

Permalink
Silent Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgo committed Oct 28, 2020
1 parent 5add8e3 commit f4c4d9c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build: clean # builds for the current platform
${CURDIR}/node_modules/.bin/tsc -p .

clean: # Removes all build artifacts
@rm -rf dist
rm -rf dist

coverage: build # measures test coverage
${CURDIR}/node_modules/.bin/nyc node_modules/.bin/mocha --require source-map-support/register src/test.ts
Expand All @@ -18,20 +18,22 @@ fix: # runs the fixers
${CURDIR}/node_modules/.bin/prettier --write .

help: # prints all make targets
@cat Makefile | grep '^[^ ]*:' | grep -v '.PHONY' | grep -v help | sed 's/:.*#/#/' | column -s "#" -t
cat Makefile | grep '^[^ ]*:' | grep -v '.PHONY' | grep -v help | sed 's/:.*#/#/' | column -s "#" -t

lint: # runs all linters
${CURDIR}/node_modules/.bin/tslint --project .
${CURDIR}/node_modules/.bin/prettier -l .

test: # runs all tests
@${CURDIR}/node_modules/.bin/tslint --project . &
@${CURDIR}/node_modules/.bin/prettier -l . &
@${CURDIR}/node_modules/.bin/text-run --offline --format=dot &
@${CURDIR}/node_modules/.bin/mocha src/test.ts
${CURDIR}/node_modules/.bin/tslint --project . &
${CURDIR}/node_modules/.bin/prettier -l . &
${CURDIR}/node_modules/.bin/text-run --offline --format=dot &
${CURDIR}/node_modules/.bin/mocha src/test.ts

unit: # runs the unit tests
@${CURDIR}/node_modules/.bin/mocha src/test.ts
${CURDIR}/node_modules/.bin/mocha src/test.ts

test-win:
@${CURDIR}/node_modules/.bin/mocha src/test.ts
${CURDIR}/node_modules/.bin/mocha src/test.ts

.SILENT:

0 comments on commit f4c4d9c

Please sign in to comment.