/
Makefile
57 lines (37 loc) · 1.32 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
all: test lint typecheck
node_modules: package.json
npm install && /usr/bin/touch node_modules
build: node_modules
npx rollup -c && /usr/bin/touch dist
commitlint: node_modules
npx commitlint --from origin/main --to HEAD --verbose
cov:
npx nyc report --reporter=text-lcov > .reports/coverage.lcov && npx codecov
lint:
npx standard
release:
npx standard-version
secure:
npx snyk test
test: test-fetch test-module
test-fetch: test-fetch-browser test-fetch-whatwg test-fetch-node
test-fetch-browser: build
./test/fetch/browser/run.sh
test-fetch-whatwg: build
./test/fetch/whatwg/run.sh
test-fetch-node: build
./test/fetch/node/run.sh
test-module: test-module-web-cjs test-module-web-esm test-module-node-cjs test-module-node-esm test-module-react-native
test-module-web-cjs: build
./test/module/web.cjs/run.sh
test-module-web-esm: build
./test/module/web.esm/run.sh
test-module-node-cjs: build
./test/module/node.cjs/run.sh
test-module-node-esm: build
./test/module/node.esm/run.sh
test-module-react-native: build
./test/module/react-native/run.sh
typecheck:
npx tsc --lib ES6 index.d.ts
.PHONY: all build deploy lint test test-fetch test-fetch-browser test-fetch-whatwg test-fetch-node test-module test-module-web-cjs test-module-web-esm test-module-node-cjs test-module-node-esm test-module-react-native typecheck