forked from wheresrhys/fetch-mock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (33 loc) · 860 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
45
46
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
prettier *.md
dtslint --expectOnly types
lint:
eslint --cache --fix .
prettier --write *.md
dtslint --expectOnly types
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
build: transpile
if [ ! -d "cjs" ]; then mkdir cjs; fi
cp -r src/* cjs
rollup -c rollup.config.js
docs:
cd docs; jekyll serve build --watch