forked from wheresrhys/fetch-mock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (31 loc) · 825 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
34
35
36
37
38
39
40
41
42
43
44
export PATH := $(PATH):./node_modules/.bin
.PHONY: test docs
test-dev:
karma start --browsers=Chrome
test-chrome:
karma start --single-run --browsers=Chrome
test-firefox:
karma start --single-run --browsers=Firefox
test-unit:
mocha test/server.js
test-node6: transpile
node test/node6.js
lint-ci:
eslint --ignore-pattern test/fixtures/* src test
lint:
eslint --cache --fix .
prettier --write *.md
coverage-report:
nyc --reporter=lcovonly --reporter=text mocha test/server.js
cat ./coverage/lcov.info | coveralls
local-coverage:
nyc --reporter=html --reporter=text mocha test/server.js
transpile:
babel src --out-dir es5
bundle:
webpack --mode development \
--output-library fetchMock \
--entry ./es5/client.js \
--output-filename ./es5/client-bundle.js
docs:
cd docs; jekyll serve build --watch