UNPKG

636 BPlain TextView Raw
1# Paths
2TAP = ./node_modules/.bin/tap
3JSHINT = ./node_modules/.bin/jshint
4
5# ------------------------------------------------------------------------------
6
7# Builds a JSON representation of the raw AFINN word list
8build:
9 node ./build/index.js
10
11# Governance tests
12lint:
13 $(JSHINT) ./lib/*.js
14 $(JSHINT) ./build/*.js
15 $(JSHINT) ./test/**/*.js
16
17# Unit tests
18unit:
19 $(TAP) ./test/unit/*.js
20
21# Benchmarks
22benchmark:
23 node test/benchmark/index.js
24
25# Run entire test suite
26test:
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