-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (22 loc) · 757 Bytes
/
Makefile
File metadata and controls
32 lines (22 loc) · 757 Bytes
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
MOCHA := ./node_modules/.bin/_mocha
ESLINT := ./node_modules/.bin/eslint
ROLLUP := ./node_modules/.bin/rollup
ISTANBUL := ./node_modules/.bin/istanbul
all: lint test
ci: lint test-cover
REACT_VERSION=16
clean-install:
rm -rf node_modules/
npm install
npm install --no-save react@${REACT_VERSION} react-dom@${REACT_VERSION} react-test-renderer@${REACT_VERSION}
lint:
$(ESLINT) .
test:
$(MOCHA) --reporter dot --ui tdd --compilers js:babel/register test/**/*_test.js
test-cover:
$(ISTANBUL) cover --report lcov $(MOCHA) -- --reporter dot --ui tdd --compilers js:babel/register test/**/*_test.js
build:
$(ROLLUP) --config
ensure-built: build
[ -z "$(shell git status -s dist/)" ]
.PHONY: clean-install lint test test-cover build ensure-built