1 | ESLINT=./node_modules/.bin/eslint
|
2 | TAP=./node_modules/.bin/tap
|
3 |
|
4 | # ------------------------------------------------------------------------------
|
5 |
|
6 | # Builds a JSON representation of the raw AFINN word list
|
7 | build:
|
8 | node ./build/index.js
|
9 |
|
10 | # ------------------------------------------------------------------------------
|
11 |
|
12 | lint:
|
13 | $(ESLINT) ./lib/*.js
|
14 | $(ESLINT) ./build/*.js
|
15 | $(ESLINT) ./test/**/*.js
|
16 |
|
17 | test:
|
18 | @make lint
|
19 | $(TAP) ./test/{unit,integration}/*.js
|
20 |
|
21 | # ------------------------------------------------------------------------------
|
22 |
|
23 | coverage:
|
24 | $(TAP) ./test/{integration,unit}/*.js --coverage --coverage-report=lcov
|
25 |
|
26 | # ------------------------------------------------------------------------------
|
27 |
|
28 | benchmark:
|
29 | node ./test/benchmark/performance.js
|
30 |
|
31 | # ------------------------------------------------------------------------------
|
32 |
|
33 | .PHONY: build lint test coverage benchmark
|