Skip to content

Commit

Permalink
Prettier tests in one swoop
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgo committed Oct 20, 2020
1 parent 64fb985 commit 0a1f60c
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,18 @@ docs: # runs the documentation tests

fix: # runs the fixers
node_modules/.bin/tslint --project . --fix
node_modules/.bin/prettier --write 'src/'
node_modules/.bin/prettier --write 'text-run/'
node_modules/.bin/prettier --write "*.md"
node_modules/.bin/prettier --write "*.yml"
node_modules/.bin/prettier --write "*.json"
node_modules/.bin/prettier --write .

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

lint: # runs all linters
node_modules/.bin/tslint --project .
node_modules/.bin/prettier -l 'src/'
node_modules/.bin/prettier -l 'text-run/'
node_modules/.bin/prettier -l '*.md'
node_modules/.bin/prettier -l '*.yml'
node_modules/.bin/prettier -l '*.json'
node_modules/.bin/prettier -l .

test: # runs all tests
@node_modules/.bin/tslint --project . &
@node_modules/.bin/prettier -l 'src/' &
@node_modules/.bin/prettier -l 'text-run/' &
@node_modules/.bin/prettier -l '*.md' &
@node_modules/.bin/prettier -l '*.yml' &
@node_modules/.bin/prettier -l '*.json' &
@node_modules/.bin/text-run --offline --format dot &
@node_modules/.bin/prettier -l . &
@node_modules/.bin/mocha src/test.ts

unit: # runs the unit tests
Expand Down

0 comments on commit 0a1f60c

Please sign in to comment.