1 | # Paths
|
2 | TAP = ./node_modules/.bin/tap
|
3 | JSHINT = ./node_modules/.bin/jshint
|
4 |
|
5 | # ------------------------------------------------------------------------------
|
6 |
|
7 | # Builds a JSON representation of the raw AFINN word list
|
8 | build:
|
9 | node ./build/index.js
|
10 |
|
11 | # Governance tests
|
12 | lint:
|
13 | $(JSHINT) ./lib/*.js
|
14 | $(JSHINT) ./build/*.js
|
15 | $(JSHINT) ./test/**/*.js
|
16 |
|
17 | # Unit tests
|
18 | unit:
|
19 | $(TAP) ./test/unit/*.js
|
20 |
|
21 | # Benchmarks
|
22 | benchmark:
|
23 | node test/benchmark/index.js
|
24 |
|
25 | # Run entire test suite
|
26 | test:
|
27 | @make lint
|
28 | @make unit
|
29 | @make benchmark
|
30 |
|
31 | # ------------------------------------------------------------------------------
|
32 |
|
33 | .PHONY: build lint unit benchmark test |
\ | No newline at end of file |