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 40aff72 commit 8a301fe
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions Makefile
Expand Up @@ -9,17 +9,17 @@ endif


build: clean # builds for the current platform
@node_modules$/.bin$/tsc -p .
node_modules$/.bin$/tsc -p .

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

coverage: # measures test coverage
@node_modules/.bin/nyc node_modules/.bin/mocha --require source-map-support/register test/*.ts
@node_modules/.bin/nyc report --reporter=text-lcov | node_modules/.bin/coveralls
node_modules/.bin/nyc node_modules/.bin/mocha --require source-map-support/register test/*.ts
node_modules/.bin/nyc report --reporter=text-lcov | node_modules/.bin/coveralls

docs: build # runs the documentation tests
@node_modules$/.bin$/text-run --offline --format dot
node_modules$/.bin$/text-run --offline --format dot

fix: # fixes the fixable issues in the code base
tslint --project tsconfig.json --fix
Expand All @@ -28,7 +28,7 @@ fix: # fixes the fixable issues in the code base
prettier --write **/*.md

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: # lints all files
node_modules$/.bin$/tsc --noEmit
Expand All @@ -38,14 +38,16 @@ lint: # lints all files
node_modules/.bin/prettier -l "**/*.md"

test: # runs all tests
@node_modules$/.bin$/tsc --noEmit &
@node_modules$/.bin$/tslint --project . &
@node_modules/.bin/prettier -l "src/**/*.ts" &
@node_modules/.bin/prettier -l "test/**/*.ts" &
@node_modules/.bin/prettier -l "**/*.md" &
@node_modules$/.bin$/text-run --offline --format dot &
@node_modules/.bin/mocha --reporter dot test/*.ts
node_modules$/.bin$/tsc --noEmit &
node_modules$/.bin$/tslint --project . &
node_modules/.bin/prettier -l "src/**/*.ts" &
node_modules/.bin/prettier -l "test/**/*.ts" &
node_modules/.bin/prettier -l "**/*.md" &
node_modules$/.bin$/text-run --offline --format dot &
node_modules/.bin/mocha --reporter dot test/*.ts
.PHONY: test

unit: # runs the unit tests
@node_modules/.bin/mocha --reporter dot test/*.ts
node_modules/.bin/mocha --reporter dot test/*.ts

.SILENT:

0 comments on commit 8a301fe

Please sign in to comment.