|
| 1 | +include makefiles/*.mk |
| 2 | + |
1 | 3 | .PHONY: all
|
2 | 4 | all: test lint typecheck
|
3 | 5 |
|
@@ -40,120 +42,3 @@ test/fetch-api/api.spec.js: test/fetch-api/api.spec.ts
|
40 | 42 | @echo ""
|
41 | 43 | @echo "=> make $@"
|
42 | 44 | @npx tsc
|
43 |
| - |
44 |
| - |
45 |
| -## |
46 |
| -# Checks |
47 |
| - |
48 |
| -.PHONY: commitlint |
49 |
| -commitlint: node_modules |
50 |
| - npx commitlint --from origin/main --to HEAD --verbose |
51 |
| - |
52 |
| -.PHONY: cov |
53 |
| -cov: |
54 |
| - npx nyc report --reporter=text-lcov > .reports/coverage.lcov && npx codecov |
55 |
| - |
56 |
| -.PHONY: lint |
57 |
| -lint: |
58 |
| - @echo "" |
59 |
| - @echo "=> make $@" |
60 |
| - @npx standard |
61 |
| - |
62 |
| -.PHONY: secure |
63 |
| -secure: |
64 |
| - @echo "" |
65 |
| - @echo "=> make $@" |
66 |
| - @npx snyk test |
67 |
| - |
68 |
| -.PHONY: typecheck |
69 |
| -typecheck: |
70 |
| - @echo "" |
71 |
| - @echo "=> make $@" |
72 |
| - @npx tsc --lib ES6 --noEmit index.d.ts ./test/fetch-api/api.spec.ts |
73 |
| - |
74 |
| - |
75 |
| -## |
76 |
| -# Test groups |
77 |
| - |
78 |
| -.PHONY: test |
79 |
| -test: | test-browser test-node |
80 |
| - |
81 |
| -.PHONY: test-browser |
82 |
| -test-browser: |\ |
83 |
| - test-fetch-browser-native \ |
84 |
| - test-fetch-browser-whatwg \ |
85 |
| - test-fetch-browser-service-worker \ |
86 |
| - test-module-web-cjs \ |
87 |
| - test-module-web-esm \ |
88 |
| - test-module-react-native |
89 |
| - |
90 |
| -.PHONY: test-node |
91 |
| -test-node: |\ |
92 |
| - test-fetch-node-native \ |
93 |
| - test-fetch-node-fetch \ |
94 |
| - test-module-node-cjs \ |
95 |
| - test-module-node-esm |
96 |
| - |
97 |
| - |
98 |
| -## |
99 |
| -# Test units |
100 |
| - |
101 |
| -.PHONY: test-fetch-browser-native |
102 |
| -test-fetch-browser-native: | dist test/fetch-api/api.spec.js |
103 |
| - @echo "" |
104 |
| - @echo "=> make $@" |
105 |
| - @./test/fetch-api/browser/run.sh |
106 |
| - |
107 |
| -.PHONY: test-fetch-browser-whatwg |
108 |
| -test-fetch-browser-whatwg: | dist test/fetch-api/api.spec.js |
109 |
| - @echo "" |
110 |
| - @echo "=> make $@" |
111 |
| - @./test/fetch-api/whatwg/run.sh |
112 |
| - |
113 |
| -.PHONY: test-fetch-browser-service-worker |
114 |
| -test-fetch-browser-service-worker: dist test/fetch-api/api.spec.js |
115 |
| - @echo "" |
116 |
| - @echo "=> make $@" |
117 |
| - @./test/fetch-api/service-worker/run.sh |
118 |
| - |
119 |
| -.PHONY: test-fetch-node-native |
120 |
| -test-fetch-node-native: | dist test/fetch-api/api.spec.js |
121 |
| - @echo "" |
122 |
| - @echo "=> make $@" |
123 |
| - @./test/fetch-api/node/run.sh |
124 |
| - |
125 |
| -.PHONY: test-fetch-node-fetch |
126 |
| -test-fetch-node-fetch: | dist test/fetch-api/api.spec.js |
127 |
| - @echo "" |
128 |
| - @echo "=> make $@" |
129 |
| - @./test/fetch-api/node-fetch/run.sh |
130 |
| - |
131 |
| -.PHONY: test-module-web-cjs |
132 |
| -test-module-web-cjs: | dist |
133 |
| - @echo "" |
134 |
| - @echo "=> make $@" |
135 |
| - @./test/module-system/web.cjs/run.sh |
136 |
| - |
137 |
| -.PHONY: test-module-web-esm |
138 |
| -test-module-web-esm: | dist |
139 |
| - @echo "" |
140 |
| - @echo "=> make $@" |
141 |
| - @./test/module-system/web.esm/run.sh |
142 |
| - |
143 |
| -.PHONY: test-module-node-cjs |
144 |
| -test-module-node-cjs: | dist |
145 |
| - @echo "" |
146 |
| - @echo "=> make $@" |
147 |
| - @./test/module-system/node.cjs/run.sh |
148 |
| - |
149 |
| -.PHONY: test-module-node-esm |
150 |
| -test-module-node-esm: | dist |
151 |
| - @echo "" |
152 |
| - @echo "=> make $@" |
153 |
| - @./test/module-system/node.esm/run.sh |
154 |
| - |
155 |
| -.PHONY: test-module-react-native |
156 |
| -test-module-react-native: | dist |
157 |
| - @echo "" |
158 |
| - @echo "=> make $@" |
159 |
| - @./test/module-system/react-native/run.sh |
0 commit comments