Skip to content

Commit b4acf9e

Browse files
author
Shafeeq Kunnakkadan and Srihari Sriraman
committed
Add help target to Makefile
- And add info on running tests to readme.
1 parent efa86ab commit b4acf9e

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

Makefile

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
1-
test::
1+
default: help
2+
3+
test: ## Run tests
24
lein do clean, doo phantom test once
5+
6+
.PHONY: help
7+
8+
help:
9+
@echo "usage: make target ..."
10+
@echo "available targets:"
11+
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
12+
| sort \
13+
| awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ Here's an example of what you''d get on creating a component
8484
- `:events` are `id`s of the re-frame events you can dispatch
8585
- `:events :refresh` needs to be implemented by the user
8686

87+
## Running tests
88+
89+
`make test` (requires phantomjs)
90+
8791
## License - Apache 2.0
8892

8993
Copyright 2017 Omnyway Inc.

0 commit comments

Comments
 (0)