forked from thisandagain/sentiment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
33 lines (22 loc) · 876 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
ESLINT=./node_modules/.bin/eslint
TAP=./node_modules/.bin/tap
# ------------------------------------------------------------------------------
# Builds a JSON representation of the raw AFINN word list
build:
node ./build/index.js
# ------------------------------------------------------------------------------
lint:
$(ESLINT) ./lib/*.js
$(ESLINT) ./build/*.js
$(ESLINT) ./test/**/*.js
test:
@make lint
$(TAP) ./test/{unit,integration}/*.js
# ------------------------------------------------------------------------------
coverage:
$(TAP) ./test/{integration,unit}/*.js --coverage --coverage-report=lcov
# ------------------------------------------------------------------------------
benchmark:
node ./test/benchmark/performance.js
# ------------------------------------------------------------------------------
.PHONY: build lint test coverage benchmark