@rnx-kit/cli 0.12.6 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +116 -0
- package/README.md +90 -65
- package/coverage/clover.xml +92 -104
- package/coverage/coverage-final.json +7 -6
- package/coverage/lcov-report/index.html +29 -29
- package/coverage/lcov-report/src/bundle/index.html +29 -29
- package/coverage/lcov-report/src/bundle/kit-config.ts.html +63 -117
- package/coverage/lcov-report/src/bundle/metro.ts.html +40 -163
- package/coverage/lcov-report/src/bundle/overrides.ts.html +28 -58
- package/coverage/lcov-report/src/bundler-plugin-defaults.ts.html +115 -0
- package/coverage/lcov-report/src/copy-assets.ts.html +1 -1
- package/coverage/lcov-report/src/index.html +26 -11
- package/coverage/lcov-report/src/metro-config.ts.html +49 -31
- package/coverage/lcov-report/src/typescript/index.html +1 -1
- package/coverage/lcov-report/src/typescript/project-cache.ts.html +5 -5
- package/coverage/lcov.info +173 -193
- package/lib/bundle/kit-config.d.ts +9 -15
- package/lib/bundle/kit-config.d.ts.map +1 -1
- package/lib/bundle/kit-config.js +29 -43
- package/lib/bundle/kit-config.js.map +1 -1
- package/lib/bundle/metro.d.ts +7 -11
- package/lib/bundle/metro.d.ts.map +1 -1
- package/lib/bundle/metro.js +10 -40
- package/lib/bundle/metro.js.map +1 -1
- package/lib/bundle/overrides.d.ts +11 -9
- package/lib/bundle/overrides.d.ts.map +1 -1
- package/lib/bundle/overrides.js +10 -18
- package/lib/bundle/overrides.js.map +1 -1
- package/lib/bundle/types.d.ts +4 -17
- package/lib/bundle/types.d.ts.map +1 -1
- package/lib/bundle.d.ts +8 -7
- package/lib/bundle.d.ts.map +1 -1
- package/lib/bundle.js +3 -19
- package/lib/bundle.js.map +1 -1
- package/lib/bundler-plugin-defaults.d.ts +3 -0
- package/lib/bundler-plugin-defaults.d.ts.map +1 -0
- package/lib/bundler-plugin-defaults.js +13 -0
- package/lib/bundler-plugin-defaults.js.map +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib/metro-config.d.ts +3 -2
- package/lib/metro-config.d.ts.map +1 -1
- package/lib/metro-config.js +7 -5
- package/lib/metro-config.js.map +1 -1
- package/lib/parsers.d.ts +2 -0
- package/lib/parsers.d.ts.map +1 -1
- package/lib/parsers.js +16 -1
- package/lib/parsers.js.map +1 -1
- package/lib/serve/kit-config.d.ts +6 -5
- package/lib/serve/kit-config.d.ts.map +1 -1
- package/lib/serve/kit-config.js +16 -6
- package/lib/serve/kit-config.js.map +1 -1
- package/lib/start.d.ts +2 -2
- package/lib/start.d.ts.map +1 -1
- package/lib/start.js +4 -11
- package/lib/start.js.map +1 -1
- package/package.json +9 -7
- package/react-native.config.js +65 -59
- package/src/bundle/kit-config.ts +42 -60
- package/src/bundle/metro.ts +15 -56
- package/src/bundle/overrides.ts +24 -34
- package/src/bundle/types.ts +17 -23
- package/src/bundle.ts +18 -36
- package/src/bundler-plugin-defaults.ts +10 -0
- package/src/index.ts +1 -1
- package/src/metro-config.ts +12 -6
- package/src/parsers.ts +19 -0
- package/src/serve/kit-config.ts +23 -11
- package/src/start.ts +8 -15
- package/test/bundle/__mocks__/@rnx-kit/config.js +2 -3
- package/test/bundle/__mocks__/@rnx-kit/console.js +1 -0
- package/test/bundle/__mocks__/@rnx-kit/metro-service.js +1 -0
- package/test/bundle/kit-config.test.ts +102 -100
- package/test/bundle/metro.test.ts +58 -98
- package/test/bundle/overrides.test.ts +29 -25
- package/test/copy-assets/assembleAarBundle.test.ts +1 -0
- package/lib/types.d.ts +0 -5
- package/lib/types.d.ts.map +0 -1
- package/lib/types.js +0 -3
- package/lib/types.js.map +0 -1
- package/src/types.ts +0 -4
package/coverage/clover.xml
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
4
|
-
<metrics statements="
|
|
2
|
+
<coverage generated="1657112300805" clover="3.2.0">
|
|
3
|
+
<project timestamp="1657112300805" name="All files">
|
|
4
|
+
<metrics statements="283" coveredstatements="139" conditionals="169" coveredconditionals="81" methods="45" coveredmethods="24" elements="497" coveredelements="244" complexity="0" loc="283" ncloc="283" packages="3" files="7" classes="7"/>
|
|
5
5
|
<package name="src">
|
|
6
|
-
<metrics statements="
|
|
6
|
+
<metrics statements="209" coveredstatements="110" conditionals="131" coveredconditionals="61" methods="29" coveredmethods="17"/>
|
|
7
|
+
<file name="bundler-plugin-defaults.ts" path="/home/runner/work/rnx-kit/rnx-kit/packages/cli/src/bundler-plugin-defaults.ts">
|
|
8
|
+
<metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
|
|
9
|
+
<line num="4" count="10" type="stmt"/>
|
|
10
|
+
</file>
|
|
7
11
|
<file name="copy-assets.ts" path="/home/runner/work/rnx-kit/rnx-kit/packages/cli/src/copy-assets.ts">
|
|
8
12
|
<metrics statements="151" coveredstatements="82" conditionals="99" coveredconditionals="46" methods="18" coveredmethods="14"/>
|
|
9
13
|
<line num="60" count="2" type="stmt"/>
|
|
@@ -159,126 +163,110 @@
|
|
|
159
163
|
<line num="542" count="0" type="stmt"/>
|
|
160
164
|
</file>
|
|
161
165
|
<file name="metro-config.ts" path="/home/runner/work/rnx-kit/rnx-kit/packages/cli/src/metro-config.ts">
|
|
162
|
-
<metrics statements="57" coveredstatements="27" conditionals="32" coveredconditionals="
|
|
163
|
-
<line num="
|
|
164
|
-
<line num="
|
|
165
|
-
<line num="
|
|
166
|
-
<line num="
|
|
167
|
-
<line num="
|
|
168
|
-
<line num="
|
|
169
|
-
<line num="
|
|
170
|
-
<line num="
|
|
171
|
-
<line num="
|
|
172
|
-
<line num="
|
|
173
|
-
<line num="
|
|
174
|
-
<line num="
|
|
175
|
-
<line num="
|
|
176
|
-
<line num="
|
|
177
|
-
<line num="68" count="0" type="stmt"/>
|
|
178
|
-
<line num="69" count="0" type="stmt"/>
|
|
179
|
-
<line num="70" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
166
|
+
<metrics statements="57" coveredstatements="27" conditionals="32" coveredconditionals="15" methods="10" coveredmethods="2"/>
|
|
167
|
+
<line num="38" count="9" type="stmt"/>
|
|
168
|
+
<line num="40" count="9" type="stmt"/>
|
|
169
|
+
<line num="41" count="9" type="stmt"/>
|
|
170
|
+
<line num="43" count="9" type="stmt"/>
|
|
171
|
+
<line num="44" count="0" type="stmt"/>
|
|
172
|
+
<line num="45" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
173
|
+
<line num="46" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
174
|
+
<line num="50" count="0" type="stmt"/>
|
|
175
|
+
<line num="55" count="0" type="stmt"/>
|
|
176
|
+
<line num="57" count="0" type="stmt"/>
|
|
177
|
+
<line num="60" count="0" type="stmt"/>
|
|
178
|
+
<line num="62" count="0" type="stmt"/>
|
|
179
|
+
<line num="65" count="0" type="stmt"/>
|
|
180
|
+
<line num="71" count="0" type="stmt"/>
|
|
180
181
|
<line num="72" count="0" type="stmt"/>
|
|
181
|
-
<line num="73" count="0" type="
|
|
182
|
-
<line num="74" count="0" type="
|
|
183
|
-
<line num="
|
|
182
|
+
<line num="73" count="0" type="stmt"/>
|
|
183
|
+
<line num="74" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
184
|
+
<line num="76" count="0" type="stmt"/>
|
|
185
|
+
<line num="77" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
186
|
+
<line num="78" count="0" type="stmt"/>
|
|
184
187
|
<line num="79" count="0" type="stmt"/>
|
|
185
|
-
<line num="80" count="0" type="stmt"/>
|
|
186
|
-
<line num="81" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
187
188
|
<line num="83" count="0" type="stmt"/>
|
|
188
189
|
<line num="84" count="0" type="stmt"/>
|
|
189
|
-
<line num="85" count="0" type="
|
|
190
|
-
<line num="
|
|
191
|
-
<line num="
|
|
192
|
-
<line num="
|
|
193
|
-
<line num="
|
|
194
|
-
<line num="
|
|
195
|
-
<line num="
|
|
196
|
-
<line num="
|
|
197
|
-
<line num="
|
|
198
|
-
<line num="
|
|
199
|
-
<line num="
|
|
200
|
-
<line num="
|
|
201
|
-
<line num="
|
|
202
|
-
<line num="
|
|
203
|
-
<line num="
|
|
204
|
-
<line num="
|
|
205
|
-
<line num="
|
|
206
|
-
<line num="
|
|
207
|
-
<line num="
|
|
208
|
-
<line num="143" count="6" type="cond" truecount="2" falsecount="0"/>
|
|
190
|
+
<line num="85" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
191
|
+
<line num="87" count="0" type="stmt"/>
|
|
192
|
+
<line num="88" count="0" type="stmt"/>
|
|
193
|
+
<line num="89" count="0" type="stmt"/>
|
|
194
|
+
<line num="94" count="0" type="stmt"/>
|
|
195
|
+
<line num="95" count="0" type="stmt"/>
|
|
196
|
+
<line num="96" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
197
|
+
<line num="97" count="0" type="stmt"/>
|
|
198
|
+
<line num="101" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
199
|
+
<line num="103" count="0" type="stmt"/>
|
|
200
|
+
<line num="108" count="9" type="stmt"/>
|
|
201
|
+
<line num="111" count="2" type="stmt"/>
|
|
202
|
+
<line num="135" count="10" type="stmt"/>
|
|
203
|
+
<line num="137" count="10" type="stmt"/>
|
|
204
|
+
<line num="138" count="10" type="cond" truecount="2" falsecount="0"/>
|
|
205
|
+
<line num="139" count="1" type="stmt"/>
|
|
206
|
+
<line num="140" count="9" type="cond" truecount="2" falsecount="0"/>
|
|
207
|
+
<line num="141" count="5" type="stmt"/>
|
|
208
|
+
<line num="143" count="10" type="cond" truecount="2" falsecount="0"/>
|
|
209
209
|
<line num="144" count="1" type="stmt"/>
|
|
210
|
-
<line num="145" count="
|
|
211
|
-
<line num="146" count="5" type="
|
|
212
|
-
<line num="
|
|
213
|
-
<line num="
|
|
214
|
-
<line num="
|
|
215
|
-
<line num="
|
|
216
|
-
<line num="
|
|
217
|
-
<line num="167" count="
|
|
218
|
-
<line num="
|
|
219
|
-
<line num="
|
|
210
|
+
<line num="145" count="9" type="cond" truecount="2" falsecount="0"/>
|
|
211
|
+
<line num="146" count="5" type="stmt"/>
|
|
212
|
+
<line num="149" count="10" type="cond" truecount="2" falsecount="0"/>
|
|
213
|
+
<line num="150" count="4" type="stmt"/>
|
|
214
|
+
<line num="151" count="4" type="stmt"/>
|
|
215
|
+
<line num="152" count="6" type="cond" truecount="2" falsecount="0"/>
|
|
216
|
+
<line num="163" count="4" type="stmt"/>
|
|
217
|
+
<line num="167" count="2" type="stmt"/>
|
|
218
|
+
<line num="170" count="10" type="stmt"/>
|
|
219
|
+
<line num="171" count="10" type="cond" truecount="1" falsecount="1"/>
|
|
220
|
+
<line num="172" count="0" type="stmt"/>
|
|
221
|
+
<line num="173" count="10" type="cond" truecount="2" falsecount="0"/>
|
|
222
|
+
<line num="174" count="9" type="stmt"/>
|
|
223
|
+
<line num="176" count="10" type="stmt"/>
|
|
220
224
|
</file>
|
|
221
225
|
</package>
|
|
222
226
|
<package name="src.bundle">
|
|
223
|
-
<metrics statements="
|
|
227
|
+
<metrics statements="25" coveredstatements="25" conditionals="20" coveredconditionals="20" methods="6" coveredmethods="6"/>
|
|
224
228
|
<file name="kit-config.ts" path="/home/runner/work/rnx-kit/rnx-kit/packages/cli/src/bundle/kit-config.ts">
|
|
225
|
-
<metrics statements="
|
|
226
|
-
<line num="21" count="
|
|
227
|
-
<line num="22" count="
|
|
228
|
-
<line num="
|
|
229
|
-
<line num="
|
|
230
|
-
<line num="
|
|
231
|
-
<line num="34" count="
|
|
232
|
-
<line num="
|
|
233
|
-
<line num="
|
|
234
|
-
<line num="41" count="1" type="stmt"/>
|
|
235
|
-
<line num="45" count="5" type="stmt"/>
|
|
229
|
+
<metrics statements="14" coveredstatements="14" conditionals="14" coveredconditionals="14" methods="4" coveredmethods="4"/>
|
|
230
|
+
<line num="21" count="10" type="cond" truecount="2" falsecount="0"/>
|
|
231
|
+
<line num="22" count="7" type="stmt"/>
|
|
232
|
+
<line num="24" count="3" type="cond" truecount="4" falsecount="0"/>
|
|
233
|
+
<line num="25" count="2" type="stmt"/>
|
|
234
|
+
<line num="27" count="1" type="stmt"/>
|
|
235
|
+
<line num="34" count="10" type="cond" truecount="4" falsecount="0"/>
|
|
236
|
+
<line num="36" count="10" type="stmt"/>
|
|
237
|
+
<line num="58" count="7" type="stmt"/>
|
|
236
238
|
<line num="59" count="7" type="cond" truecount="2" falsecount="0"/>
|
|
237
|
-
<line num="
|
|
238
|
-
<line num="
|
|
239
|
-
<line num="
|
|
240
|
-
<line num="
|
|
241
|
-
<line num="
|
|
242
|
-
<line num="84" count="4" type="cond" truecount="1" falsecount="1"/>
|
|
243
|
-
<line num="85" count="0" type="stmt"/>
|
|
244
|
-
<line num="88" count="4" type="stmt"/>
|
|
245
|
-
<line num="93" count="4" type="stmt"/>
|
|
246
|
-
<line num="94" count="6" type="stmt"/>
|
|
239
|
+
<line num="62" count="7" type="cond" truecount="2" falsecount="0"/>
|
|
240
|
+
<line num="64" count="7" type="stmt"/>
|
|
241
|
+
<line num="66" count="7" type="stmt"/>
|
|
242
|
+
<line num="67" count="10" type="stmt"/>
|
|
243
|
+
<line num="74" count="10" type="stmt"/>
|
|
247
244
|
</file>
|
|
248
245
|
<file name="metro.ts" path="/home/runner/work/rnx-kit/rnx-kit/packages/cli/src/bundle/metro.ts">
|
|
249
|
-
<metrics statements="
|
|
250
|
-
<line num="
|
|
251
|
-
<line num="
|
|
252
|
-
<line num="
|
|
253
|
-
<line num="
|
|
254
|
-
<line num="
|
|
255
|
-
<line num="
|
|
256
|
-
<line num="
|
|
257
|
-
<line num="44" count="15" type="stmt"/>
|
|
258
|
-
<line num="68" count="0" type="stmt"/>
|
|
259
|
-
<line num="70" count="0" type="stmt"/>
|
|
260
|
-
<line num="73" count="0" type="stmt"/>
|
|
261
|
-
<line num="81" count="0" type="stmt"/>
|
|
262
|
-
<line num="84" count="0" type="stmt"/>
|
|
263
|
-
<line num="85" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
264
|
-
<line num="87" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
265
|
-
<line num="90" count="0" type="stmt"/>
|
|
246
|
+
<metrics statements="7" coveredstatements="7" conditionals="4" coveredconditionals="4" methods="1" coveredmethods="1"/>
|
|
247
|
+
<line num="26" count="4" type="stmt"/>
|
|
248
|
+
<line num="28" count="4" type="stmt"/>
|
|
249
|
+
<line num="36" count="4" type="stmt"/>
|
|
250
|
+
<line num="43" count="4" type="stmt"/>
|
|
251
|
+
<line num="44" count="4" type="cond" truecount="2" falsecount="0"/>
|
|
252
|
+
<line num="46" count="4" type="cond" truecount="2" falsecount="0"/>
|
|
253
|
+
<line num="49" count="4" type="stmt"/>
|
|
266
254
|
</file>
|
|
267
255
|
<file name="overrides.ts" path="/home/runner/work/rnx-kit/rnx-kit/packages/cli/src/bundle/overrides.ts">
|
|
268
256
|
<metrics statements="4" coveredstatements="4" conditionals="2" coveredconditionals="2" methods="1" coveredmethods="1"/>
|
|
269
|
-
<line num="
|
|
270
|
-
<line num="
|
|
271
|
-
<line num="
|
|
272
|
-
<line num="
|
|
257
|
+
<line num="28" count="9" type="stmt"/>
|
|
258
|
+
<line num="39" count="9" type="cond" truecount="2" falsecount="0"/>
|
|
259
|
+
<line num="40" count="8" type="stmt"/>
|
|
260
|
+
<line num="41" count="8" type="stmt"/>
|
|
273
261
|
</file>
|
|
274
262
|
</package>
|
|
275
263
|
<package name="src.typescript">
|
|
276
264
|
<metrics statements="49" coveredstatements="4" conditionals="18" coveredconditionals="0" methods="10" coveredmethods="1"/>
|
|
277
265
|
<file name="project-cache.ts" path="/home/runner/work/rnx-kit/rnx-kit/packages/cli/src/typescript/project-cache.ts">
|
|
278
266
|
<metrics statements="49" coveredstatements="4" conditionals="18" coveredconditionals="0" methods="10" coveredmethods="1"/>
|
|
279
|
-
<line num="63" count="
|
|
280
|
-
<line num="64" count="
|
|
281
|
-
<line num="70" count="
|
|
267
|
+
<line num="63" count="9" type="stmt"/>
|
|
268
|
+
<line num="64" count="9" type="stmt"/>
|
|
269
|
+
<line num="70" count="9" type="stmt"/>
|
|
282
270
|
<line num="74" count="0" type="stmt"/>
|
|
283
271
|
<line num="75" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
284
272
|
<line num="76" count="0" type="stmt"/>
|
|
@@ -324,7 +312,7 @@
|
|
|
324
312
|
<line num="197" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
325
313
|
<line num="198" count="0" type="stmt"/>
|
|
326
314
|
<line num="200" count="0" type="stmt"/>
|
|
327
|
-
<line num="205" count="
|
|
315
|
+
<line num="205" count="9" type="stmt"/>
|
|
328
316
|
</file>
|
|
329
317
|
</package>
|
|
330
318
|
</project>
|