UNPKG

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