@rnx-kit/cli 0.12.5 → 0.14.0
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 +216 -225
- 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 +36 -12
- package/coverage/lcov-report/src/index.html +35 -20
- 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 +408 -419
- 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/copy-assets.d.ts.map +1 -1
- package/lib/copy-assets.js +8 -2
- package/lib/copy-assets.js.map +1 -1
- 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 +3 -9
- package/lib/start.js.map +1 -1
- package/package.json +9 -7
- package/react-native.config.js +66 -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/copy-assets.ts +10 -2
- 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 +7 -13
- package/test/__mocks__/child_process.js +1 -1
- 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 +7 -6
- 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/lib/index.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ export { rnxDepCheck, rnxDepCheckCommand } from "./dep-check";
|
|
|
4
4
|
export { rnxStart } from "./start";
|
|
5
5
|
export { rnxTest, rnxTestCommand } from "./test";
|
|
6
6
|
export { rnxWriteThirdPartyNotices } from "./write-third-party-notices";
|
|
7
|
-
export { parseBoolean } from "./parsers";
|
|
7
|
+
export { parseBoolean, parseTransformProfile } from "./parsers";
|
|
8
8
|
export { rnxClean } from "./clean";
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.rnxClean = exports.parseBoolean = exports.rnxWriteThirdPartyNotices = exports.rnxTestCommand = exports.rnxTest = exports.rnxStart = exports.rnxDepCheckCommand = exports.rnxDepCheck = exports.rnxCopyAssetsCommand = exports.copyProjectAssets = exports.rnxBundle = void 0;
|
|
3
|
+
exports.rnxClean = exports.parseTransformProfile = exports.parseBoolean = exports.rnxWriteThirdPartyNotices = exports.rnxTestCommand = exports.rnxTest = exports.rnxStart = exports.rnxDepCheckCommand = exports.rnxDepCheck = exports.rnxCopyAssetsCommand = exports.copyProjectAssets = exports.rnxBundle = void 0;
|
|
4
4
|
var bundle_1 = require("./bundle");
|
|
5
5
|
Object.defineProperty(exports, "rnxBundle", { enumerable: true, get: function () { return bundle_1.rnxBundle; } });
|
|
6
6
|
var copy_assets_1 = require("./copy-assets");
|
|
@@ -18,6 +18,7 @@ var write_third_party_notices_1 = require("./write-third-party-notices");
|
|
|
18
18
|
Object.defineProperty(exports, "rnxWriteThirdPartyNotices", { enumerable: true, get: function () { return write_third_party_notices_1.rnxWriteThirdPartyNotices; } });
|
|
19
19
|
var parsers_1 = require("./parsers");
|
|
20
20
|
Object.defineProperty(exports, "parseBoolean", { enumerable: true, get: function () { return parsers_1.parseBoolean; } });
|
|
21
|
+
Object.defineProperty(exports, "parseTransformProfile", { enumerable: true, get: function () { return parsers_1.parseTransformProfile; } });
|
|
21
22
|
var clean_1 = require("./clean");
|
|
22
23
|
Object.defineProperty(exports, "rnxClean", { enumerable: true, get: function () { return clean_1.rnxClean; } });
|
|
23
24
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mCAAqC;AAA5B,mGAAA,SAAS,OAAA;AAClB,6CAAwE;AAA/D,gHAAA,iBAAiB,OAAA;AAAE,mHAAA,oBAAoB,OAAA;AAChD,yCAA8D;AAArD,wGAAA,WAAW,OAAA;AAAE,+GAAA,kBAAkB,OAAA;AACxC,iCAAmC;AAA1B,iGAAA,QAAQ,OAAA;AACjB,+BAAiD;AAAxC,+FAAA,OAAO,OAAA;AAAE,sGAAA,cAAc,OAAA;AAChC,yEAAwE;AAA/D,sIAAA,yBAAyB,OAAA;AAClC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mCAAqC;AAA5B,mGAAA,SAAS,OAAA;AAClB,6CAAwE;AAA/D,gHAAA,iBAAiB,OAAA;AAAE,mHAAA,oBAAoB,OAAA;AAChD,yCAA8D;AAArD,wGAAA,WAAW,OAAA;AAAE,+GAAA,kBAAkB,OAAA;AACxC,iCAAmC;AAA1B,iGAAA,QAAQ,OAAA;AACjB,+BAAiD;AAAxC,+FAAA,OAAO,OAAA;AAAE,sGAAA,cAAc,OAAA;AAChC,yEAAwE;AAA/D,sIAAA,yBAAyB,OAAA;AAClC,qCAAgE;AAAvD,uGAAA,YAAY,OAAA;AAAE,gHAAA,qBAAqB,OAAA;AAC5C,iCAAmC;AAA1B,iGAAA,QAAQ,OAAA"}
|
package/lib/metro-config.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { TypeScriptValidationOptions } from "@rnx-kit/config";
|
|
1
2
|
import { PluginOptions as CyclicDetectorOptions } from "@rnx-kit/metro-plugin-cyclic-dependencies-detector";
|
|
2
3
|
import { Options as DuplicateDetectorOptions } from "@rnx-kit/metro-plugin-duplicates-checker";
|
|
3
|
-
import type { TypeScriptValidationOptions } from "./types";
|
|
4
4
|
import type { InputConfigT } from "metro-config";
|
|
5
5
|
/**
|
|
6
6
|
* Customize the Metro configuration.
|
|
@@ -10,6 +10,7 @@ import type { InputConfigT } from "metro-config";
|
|
|
10
10
|
* @param detectDuplicateDependencies When true, duplicate dependency checking is enabled with a default set of options. Otherwise, the object allows for fine-grained control over the detection process.
|
|
11
11
|
* @param typescriptValidation When true, TypeScript type-checking is enabled with a default set of options. Otherwise, the object allows for fine-grained control over the type-checking process.
|
|
12
12
|
* @param treeShake When true, tree shaking is enabled.
|
|
13
|
+
* @param print Optional function to use when printing status messages to the Metro console
|
|
13
14
|
*/
|
|
14
|
-
export declare function customizeMetroConfig(metroConfigReadonly: InputConfigT, detectCyclicDependencies: boolean | CyclicDetectorOptions, detectDuplicateDependencies: boolean | DuplicateDetectorOptions, typescriptValidation: boolean | TypeScriptValidationOptions, treeShake: boolean): void;
|
|
15
|
+
export declare function customizeMetroConfig(metroConfigReadonly: InputConfigT, detectCyclicDependencies: boolean | CyclicDetectorOptions, detectDuplicateDependencies: boolean | DuplicateDetectorOptions, typescriptValidation: boolean | TypeScriptValidationOptions, treeShake: boolean, print?: (message: string) => void): void;
|
|
15
16
|
//# sourceMappingURL=metro-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metro-config.d.ts","sourceRoot":"","sources":["../src/metro-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,IAAI,qBAAqB,EACvC,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAEL,OAAO,IAAI,wBAAwB,EACpC,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"metro-config.d.ts","sourceRoot":"","sources":["../src/metro-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAEL,aAAa,IAAI,qBAAqB,EACvC,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAEL,OAAO,IAAI,wBAAwB,EACpC,MAAM,0CAA0C,CAAC;AAYlD,OAAO,KAAK,EAAE,YAAY,EAAqB,MAAM,cAAc,CAAC;AA8FpE;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,mBAAmB,EAAE,YAAY,EACjC,wBAAwB,EAAE,OAAO,GAAG,qBAAqB,EACzD,2BAA2B,EAAE,OAAO,GAAG,wBAAwB,EAC/D,oBAAoB,EAAE,OAAO,GAAG,2BAA2B,EAC3D,SAAS,EAAE,OAAO,EAClB,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAChC,IAAI,CA6CN"}
|
package/lib/metro-config.js
CHANGED
|
@@ -14,10 +14,11 @@ const project_cache_1 = require("./typescript/project-cache");
|
|
|
14
14
|
* Source file in node_modules (external packages) are ignored.
|
|
15
15
|
*
|
|
16
16
|
* @param options TypeScript validation options
|
|
17
|
+
* @param print Optional function to use when printing status messages to the Metro console
|
|
17
18
|
* @returns Hook function
|
|
18
19
|
*/
|
|
19
|
-
function createSerializerHook(options) {
|
|
20
|
-
const projectCache = (0, project_cache_1.createProjectCache)(
|
|
20
|
+
function createSerializerHook(options, print) {
|
|
21
|
+
const projectCache = (0, project_cache_1.createProjectCache)(print);
|
|
21
22
|
const patternNodeModules = /[/\\]node_modules[/\\]/;
|
|
22
23
|
const excludeNodeModules = (p) => !patternNodeModules.test(p);
|
|
23
24
|
const hook = (graph, delta) => {
|
|
@@ -83,8 +84,9 @@ const emptySerializerHook = (_graph, _delta) => {
|
|
|
83
84
|
* @param detectDuplicateDependencies When true, duplicate dependency checking is enabled with a default set of options. Otherwise, the object allows for fine-grained control over the detection process.
|
|
84
85
|
* @param typescriptValidation When true, TypeScript type-checking is enabled with a default set of options. Otherwise, the object allows for fine-grained control over the type-checking process.
|
|
85
86
|
* @param treeShake When true, tree shaking is enabled.
|
|
87
|
+
* @param print Optional function to use when printing status messages to the Metro console
|
|
86
88
|
*/
|
|
87
|
-
function customizeMetroConfig(metroConfigReadonly, detectCyclicDependencies, detectDuplicateDependencies, typescriptValidation, treeShake) {
|
|
89
|
+
function customizeMetroConfig(metroConfigReadonly, detectCyclicDependencies, detectDuplicateDependencies, typescriptValidation, treeShake, print) {
|
|
88
90
|
// We will be making changes to the Metro configuration. Coerce from a
|
|
89
91
|
// type with readonly props to a type where the props are writeable.
|
|
90
92
|
const metroConfig = metroConfigReadonly;
|
|
@@ -123,10 +125,10 @@ function customizeMetroConfig(metroConfigReadonly, detectCyclicDependencies, det
|
|
|
123
125
|
}
|
|
124
126
|
let hook = emptySerializerHook;
|
|
125
127
|
if (typeof typescriptValidation === "object") {
|
|
126
|
-
hook = createSerializerHook(typescriptValidation);
|
|
128
|
+
hook = createSerializerHook(typescriptValidation, print);
|
|
127
129
|
}
|
|
128
130
|
else if (typescriptValidation !== false) {
|
|
129
|
-
hook = createSerializerHook({});
|
|
131
|
+
hook = createSerializerHook({}, print);
|
|
130
132
|
}
|
|
131
133
|
metroConfig.serializer.experimentalSerializerHook = hook;
|
|
132
134
|
}
|
package/lib/metro-config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metro-config.js","sourceRoot":"","sources":["../src/metro-config.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"metro-config.js","sourceRoot":"","sources":["../src/metro-config.ts"],"names":[],"mappings":";;;AACA,kHAG4D;AAC5D,8FAGkD;AAClD,gEAAyE;AACzE,gFAG2C;AAI3C,8DAAgE;AAKhE;;;;;;;;;;GAUG;AACH,SAAS,oBAAoB,CAC3B,OAAoC,EACpC,KAAiC;IAEjC,MAAM,YAAY,GAAG,IAAA,kCAAkB,EAAC,KAAK,CAAC,CAAC;IAE/C,MAAM,kBAAkB,GAAG,wBAAwB,CAAC;IACpD,MAAM,kBAAkB,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAEtE,MAAM,IAAI,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AAW,CAAC,UAAU,CAAC,0BAA0B,GAAG,IAAI,CAAC;AAC3D,CAAC;AApDD,oDAoDC"}
|
package/lib/parsers.d.ts
CHANGED
package/lib/parsers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../src/parsers.ts"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAUjD"}
|
|
1
|
+
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../src/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAUjD;AAED,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAenE"}
|
package/lib/parsers.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.parseBoolean = void 0;
|
|
3
|
+
exports.parseTransformProfile = exports.parseBoolean = void 0;
|
|
4
4
|
function parseBoolean(val) {
|
|
5
5
|
if (val === "false") {
|
|
6
6
|
return false;
|
|
@@ -11,4 +11,19 @@ function parseBoolean(val) {
|
|
|
11
11
|
throw new Error("Invalid boolean value '" + val + "' -- must be true or false");
|
|
12
12
|
}
|
|
13
13
|
exports.parseBoolean = parseBoolean;
|
|
14
|
+
function parseTransformProfile(val) {
|
|
15
|
+
const allowedProfiles = [
|
|
16
|
+
"hermes-stable",
|
|
17
|
+
"hermes-canary",
|
|
18
|
+
"default",
|
|
19
|
+
];
|
|
20
|
+
if (val in allowedProfiles) {
|
|
21
|
+
return val;
|
|
22
|
+
}
|
|
23
|
+
throw new Error("Invalid transform profile '" +
|
|
24
|
+
val +
|
|
25
|
+
"' -- must be one of " +
|
|
26
|
+
allowedProfiles.join(", "));
|
|
27
|
+
}
|
|
28
|
+
exports.parseTransformProfile = parseTransformProfile;
|
|
14
29
|
//# sourceMappingURL=parsers.js.map
|
package/lib/parsers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parsers.js","sourceRoot":"","sources":["../src/parsers.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"parsers.js","sourceRoot":"","sources":["../src/parsers.ts"],"names":[],"mappings":";;;AAEA,SAAgB,YAAY,CAAC,GAAW;IACtC,IAAI,GAAG,KAAK,OAAO,EAAE;QACnB,OAAO,KAAK,CAAC;KACd;IACD,IAAI,GAAG,KAAK,MAAM,EAAE;QAClB,OAAO,IAAI,CAAC;KACb;IACD,MAAM,IAAI,KAAK,CACb,yBAAyB,GAAG,GAAG,GAAG,4BAA4B,CAC/D,CAAC;AACJ,CAAC;AAVD,oCAUC;AAED,SAAgB,qBAAqB,CAAC,GAAW;IAC/C,MAAM,eAAe,GAAuB;QAC1C,eAAe;QACf,eAAe;QACf,SAAS;KACV,CAAC;IACF,IAAI,GAAG,IAAI,eAAe,EAAE;QAC1B,OAAO,GAAuB,CAAC;KAChC;IACD,MAAM,IAAI,KAAK,CACb,6BAA6B;QAC3B,GAAG;QACH,sBAAsB;QACtB,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAC7B,CAAC;AACJ,CAAC;AAfD,sDAeC"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ServerConfig, BundlerPlugins } from "@rnx-kit/config";
|
|
2
2
|
export declare type ServerConfigOverrides = {
|
|
3
3
|
projectRoot?: string;
|
|
4
4
|
assetPlugins?: string[];
|
|
5
5
|
sourceExts?: string[];
|
|
6
6
|
};
|
|
7
|
+
export declare type CliServerConfig = ServerConfig & Required<BundlerPlugins>;
|
|
7
8
|
/**
|
|
8
|
-
* Get the
|
|
9
|
+
* Get the server configuration from the rnx-kit configuration. Apply any overrides.
|
|
9
10
|
*
|
|
10
|
-
* @param overrides Overrides to apply
|
|
11
|
-
* @returns
|
|
11
|
+
* @param overrides Overrides to apply. These take precedence over the values in the rnx-kit configuration.
|
|
12
|
+
* @returns Server configuration
|
|
12
13
|
*/
|
|
13
|
-
export declare function getKitServerConfig(overrides: ServerConfigOverrides):
|
|
14
|
+
export declare function getKitServerConfig(overrides: ServerConfigOverrides): CliServerConfig;
|
|
14
15
|
//# sourceMappingURL=kit-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kit-config.d.ts","sourceRoot":"","sources":["../../src/serve/kit-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"kit-config.d.ts","sourceRoot":"","sources":["../../src/serve/kit-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAKpE,oBAAY,qBAAqB,GAAG;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAEF,oBAAY,eAAe,GAAG,YAAY,GAAG,QAAQ,CAAC,cAAc,CAAC,CAAC;AAEtE;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,qBAAqB,GAC/B,eAAe,CAqBjB"}
|
package/lib/serve/kit-config.js
CHANGED
|
@@ -2,19 +2,29 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getKitServerConfig = void 0;
|
|
4
4
|
const config_1 = require("@rnx-kit/config");
|
|
5
|
+
const bundler_plugin_defaults_1 = require("../bundler-plugin-defaults");
|
|
5
6
|
const properties_1 = require("@rnx-kit/tools-language/properties");
|
|
6
7
|
/**
|
|
7
|
-
* Get the
|
|
8
|
+
* Get the server configuration from the rnx-kit configuration. Apply any overrides.
|
|
8
9
|
*
|
|
9
|
-
* @param overrides Overrides to apply
|
|
10
|
-
* @returns
|
|
10
|
+
* @param overrides Overrides to apply. These take precedence over the values in the rnx-kit configuration.
|
|
11
|
+
* @returns Server configuration
|
|
11
12
|
*/
|
|
12
13
|
function getKitServerConfig(overrides) {
|
|
13
14
|
const kitConfig = (0, config_1.getKitConfig)();
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
let serverConfig = kitConfig === null || kitConfig === void 0 ? void 0 : kitConfig.server;
|
|
16
|
+
if (!serverConfig && kitConfig) {
|
|
17
|
+
const maybeBundleConfig = (0, config_1.getBundleConfig)(kitConfig);
|
|
18
|
+
if (maybeBundleConfig) {
|
|
19
|
+
serverConfig = (0, properties_1.pickValues)(maybeBundleConfig, [
|
|
20
|
+
"detectCyclicDependencies",
|
|
21
|
+
"detectDuplicateDependencies",
|
|
22
|
+
"typescriptValidation",
|
|
23
|
+
//"treeShake", // don't pull in treeShake yet, since it doesn't work with the server
|
|
24
|
+
]);
|
|
25
|
+
}
|
|
16
26
|
}
|
|
17
|
-
return Object.assign(Object.assign({}, (0,
|
|
27
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({}, (0, bundler_plugin_defaults_1.getDefaultBundlerPlugins)()), serverConfig), { treeShake: false }), (0, properties_1.pickValues)(overrides, ["projectRoot", "assetPlugins", "sourceExts"]));
|
|
18
28
|
}
|
|
19
29
|
exports.getKitServerConfig = getKitServerConfig;
|
|
20
30
|
//# sourceMappingURL=kit-config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kit-config.js","sourceRoot":"","sources":["../../src/serve/kit-config.ts"],"names":[],"mappings":";;;AACA,4CAAgE;AAChE,mEAAgE;
|
|
1
|
+
{"version":3,"file":"kit-config.js","sourceRoot":"","sources":["../../src/serve/kit-config.ts"],"names":[],"mappings":";;;AACA,4CAAgE;AAChE,wEAAsE;AACtE,mEAAgE;AAUhE;;;;;GAKG;AACH,SAAgB,kBAAkB,CAChC,SAAgC;IAEhC,MAAM,SAAS,GAAG,IAAA,qBAAY,GAAE,CAAC;IACjC,IAAI,YAAY,GAAG,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,MAAM,CAAC;IACrC,IAAI,CAAC,YAAY,IAAI,SAAS,EAAE;QAC9B,MAAM,iBAAiB,GAAG,IAAA,wBAAe,EAAC,SAAS,CAAC,CAAC;QACrD,IAAI,iBAAiB,EAAE;YACrB,YAAY,GAAG,IAAA,uBAAU,EAAC,iBAAiB,EAAE;gBAC3C,0BAA0B;gBAC1B,6BAA6B;gBAC7B,sBAAsB;gBACtB,qFAAqF;aACtF,CAAC,CAAC;SACJ;KACF;IAED,mEACK,IAAA,kDAAwB,GAAE,GAC1B,YAAY,KACf,SAAS,EAAE,KAAK,KACb,IAAA,uBAAU,EAAC,SAAS,EAAE,CAAC,aAAa,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC,EACvE;AACJ,CAAC;AAvBD,gDAuBC"}
|
package/lib/start.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { Config as CLIConfig } from "@react-native-community/cli-types";
|
|
2
2
|
export declare type CLIStartOptions = {
|
|
3
|
-
host: string;
|
|
4
3
|
port: number;
|
|
4
|
+
host: string;
|
|
5
5
|
projectRoot?: string;
|
|
6
6
|
watchFolders?: string[];
|
|
7
7
|
assetPlugins?: string[];
|
|
8
8
|
sourceExts?: string[];
|
|
9
9
|
maxWorkers?: number;
|
|
10
|
+
resetCache?: boolean;
|
|
10
11
|
customLogReporterPath?: string;
|
|
11
12
|
https?: boolean;
|
|
12
13
|
key?: string;
|
|
13
14
|
cert?: string;
|
|
14
|
-
resetCache?: boolean;
|
|
15
15
|
config?: string;
|
|
16
16
|
interactive: boolean;
|
|
17
17
|
};
|
package/lib/start.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../src/start.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../src/start.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,mCAAmC,CAAC;AA8B7E,oBAAY,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AAkBF,wBAAsB,QAAQ,CAC5B,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EACpB,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,eAAe,GAC1B,OAAO,CAAC,IAAI,CAAC,CAoMf"}
|
package/lib/start.js
CHANGED
|
@@ -35,9 +35,6 @@ function hasWebsocketEndpoints(devServer) {
|
|
|
35
35
|
function rnxStart(_argv, cliConfig, cliOptions) {
|
|
36
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
37
|
const serverConfig = (0, kit_config_1.getKitServerConfig)(cliOptions);
|
|
38
|
-
if (!serverConfig) {
|
|
39
|
-
return Promise.resolve();
|
|
40
|
-
}
|
|
41
38
|
const { createDevServerMiddleware, indexPageMiddleware } = friendlyRequire("@react-native-community/cli-server-api");
|
|
42
39
|
// interactive mode requires raw access to stdin
|
|
43
40
|
let interactive = cliOptions.interactive;
|
|
@@ -84,12 +81,9 @@ function rnxStart(_argv, cliConfig, cliOptions) {
|
|
|
84
81
|
}
|
|
85
82
|
: undefined)));
|
|
86
83
|
// customize the metro config to include plugins, presets, etc.
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
},
|
|
91
|
-
};
|
|
92
|
-
(0, metro_config_1.customizeMetroConfig)(metroConfig, serverConfig.detectCyclicDependencies, serverConfig.detectDuplicateDependencies, serverConfig.typescriptValidation ? typescriptValidationOptions : false, serverConfig.treeShake);
|
|
84
|
+
(0, metro_config_1.customizeMetroConfig)(metroConfig, serverConfig.detectCyclicDependencies, serverConfig.detectDuplicateDependencies, serverConfig.typescriptValidation, serverConfig.treeShake, (message) => {
|
|
85
|
+
terminal.log(message);
|
|
86
|
+
});
|
|
93
87
|
// create middleware -- a collection of plugins which handle incoming
|
|
94
88
|
// http(s) requests, routing them to static pages or JS functions.
|
|
95
89
|
const devServer = createDevServerMiddleware({
|
package/lib/start.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start.js","sourceRoot":"","sources":["../src/start.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,0DAIgC;AAChC,kDAA0B;AAI1B,4CAAoB;AACpB,gDAAwB;AACxB,oDAA4B;AAC5B,wDAAgC;AAChC,iDAAsD;AACtD,mDAAwD;
|
|
1
|
+
{"version":3,"file":"start.js","sourceRoot":"","sources":["../src/start.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,0DAIgC;AAChC,kDAA0B;AAI1B,4CAAoB;AACpB,gDAAwB;AACxB,oDAA4B;AAC5B,wDAAgC;AAChC,iDAAsD;AACtD,mDAAwD;AAgCxD,SAAS,eAAe,CAAI,MAAc;IACxC,IAAI;QACF,OAAO,OAAO,CAAC,MAAM,CAAM,CAAC;KAC7B;IAAC,OAAO,CAAC,EAAE;QACV,MAAM,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CAAC;4BACrD,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,IAAI,YAAE,CAAC,QAAQ,EAAE,CAAC;4BAC9C,MAAM,IAAI,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC;4BACrC,MAAM,GAAG,GAAG,GAAG,QAAQ,MAAM,IAAI,IAAI,IAAI,eAAe,CAAC;4BACzD,gBAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE;gCACtD,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;gCACjB,QAAQ,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;gCACxB,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;4BACnB,CAAC,CAAC,CAAC;4BACH,MAAM;yBACP;wBAED,KAAK,GAAG;4BACN,QAAQ,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC,CAAC;4BACvD,qBAAqB,CAAC,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;4BACtD,MAAM;wBAER,KAAK,GAAG;4BACN,QAAQ,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAC;4BAC9C,qBAAqB,CAAC,SAAS,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;4BACrD,MAAM;qBACT;iBACF;YACH,CAAC,CAAC,CAAC;SACJ;IACH,CAAC;CAAA;AAxMD,4BAwMC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rnx-kit/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Command-line interface for working with kit packages in your repo",
|
|
5
5
|
"homepage": "https://github.com/microsoft/rnx-kit/tree/main/packages/cli",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
"test": "rnx-kit-scripts test"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@rnx-kit/config": "^0.
|
|
22
|
+
"@rnx-kit/config": "^0.5.0",
|
|
23
23
|
"@rnx-kit/console": "^1.0.11",
|
|
24
24
|
"@rnx-kit/dep-check": "^1.12.0",
|
|
25
25
|
"@rnx-kit/metro-plugin-cyclic-dependencies-detector": "^1.0.21",
|
|
26
26
|
"@rnx-kit/metro-plugin-duplicates-checker": "^1.2.15",
|
|
27
27
|
"@rnx-kit/metro-serializer": "^1.0.11",
|
|
28
28
|
"@rnx-kit/metro-serializer-esbuild": "^0.1.0",
|
|
29
|
-
"@rnx-kit/metro-service": "^
|
|
29
|
+
"@rnx-kit/metro-service": "^2.0.0",
|
|
30
30
|
"@rnx-kit/third-party-notices": "^1.2.13",
|
|
31
31
|
"@rnx-kit/tools-language": "^1.3.0",
|
|
32
|
-
"@rnx-kit/tools-node": "^1.2.
|
|
32
|
+
"@rnx-kit/tools-node": "^1.2.7",
|
|
33
33
|
"@rnx-kit/tools-react-native": "^1.2.0",
|
|
34
34
|
"@rnx-kit/typescript-react-native-resolver": "^0.2.0",
|
|
35
35
|
"@rnx-kit/typescript-service": "^1.5.3",
|
|
@@ -53,17 +53,19 @@
|
|
|
53
53
|
"@react-native-community/cli-types": "^6.0.0",
|
|
54
54
|
"@rnx-kit/scripts": "*",
|
|
55
55
|
"@types/metro": "^0.66.0",
|
|
56
|
+
"@types/metro-babel-transformer": "^0.66.0",
|
|
56
57
|
"@types/metro-config": "^0.66.0",
|
|
57
58
|
"@types/qrcode": "^1.4.2",
|
|
58
|
-
"jest-extended": "^0.
|
|
59
|
+
"jest-extended": "^2.0.0",
|
|
59
60
|
"memfs": "^3.4.1",
|
|
61
|
+
"metro-config": "^0.66.2",
|
|
60
62
|
"typescript": "^4.0.0"
|
|
61
63
|
},
|
|
62
64
|
"depcheck": {
|
|
63
65
|
"ignoreMatches": [
|
|
64
66
|
"@react-native-community/cli-clean",
|
|
65
67
|
"metro",
|
|
66
|
-
"metro-
|
|
68
|
+
"metro-babel-transformer",
|
|
67
69
|
"readline"
|
|
68
70
|
]
|
|
69
71
|
},
|
|
@@ -73,7 +75,7 @@
|
|
|
73
75
|
"jest": {
|
|
74
76
|
"preset": "@rnx-kit/scripts",
|
|
75
77
|
"setupFilesAfterEnv": [
|
|
76
|
-
"jest-extended"
|
|
78
|
+
"jest-extended/all"
|
|
77
79
|
]
|
|
78
80
|
}
|
|
79
81
|
}
|