@nrwl/react-native 14.2.0-rc.4 → 14.2.2
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 +1 -1
- package/migrations.json +43 -0
- package/package.json +10 -10
- package/plugins/metro-resolver.d.ts +1 -1
- package/plugins/metro-resolver.js +9 -9
- package/plugins/metro-resolver.js.map +1 -1
- package/src/generators/application/application.js +2 -2
- package/src/generators/application/application.js.map +1 -1
- package/src/generators/application/application.spec.ts +4 -0
- package/src/generators/application/files/app/metro.config.js.template +1 -1
- package/src/generators/application/lib/nomalize-options.spec.ts +23 -5
- package/src/generators/application/lib/normalize-options.d.ts +2 -1
- package/src/generators/application/lib/normalize-options.js +3 -2
- package/src/generators/application/lib/normalize-options.js.map +1 -1
- package/src/generators/application/schema.d.ts +1 -0
- package/src/generators/application/schema.json +5 -0
- package/src/generators/init/init.js +1 -1
- package/src/generators/init/init.js.map +1 -1
- package/src/generators/stories/stories-app.spec.ts +1 -0
- package/src/generators/stories/stories-lib.spec.ts +1 -0
- package/src/generators/storybook-configuration/configuration.spec.ts +1 -0
- package/src/generators/upgrade-native/schema.d.ts +1 -0
- package/src/generators/upgrade-native/schema.json +5 -0
- package/src/generators/upgrade-native/upgrade-native.js +1 -1
- package/src/generators/upgrade-native/upgrade-native.js.map +1 -1
- package/src/migrations/update-14-2-1/rename-blockList-metro-config.d.ts +6 -0
- package/src/migrations/update-14-2-1/rename-blockList-metro-config.js +33 -0
- package/src/migrations/update-14-2-1/rename-blockList-metro-config.js.map +1 -0
- package/src/migrations/update-14-2-1/rename-blockList-metro-config.spec.ts +190 -0
- package/src/utils/pod-install-task.d.ts +1 -1
- package/src/utils/pod-install-task.js +5 -1
- package/src/utils/pod-install-task.js.map +1 -1
- package/src/utils/testing-generators.js +1 -0
- package/src/utils/testing-generators.js.map +1 -1
- package/src/utils/versions.d.ts +5 -6
- package/src/utils/versions.js +6 -7
- package/src/utils/versions.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
## [14.2.2](https://github.com/nrwl/nx/compare/14.2.1...14.2.2) (2022-06-08)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @nrwl/react-native
|
package/migrations.json
CHANGED
|
@@ -41,6 +41,12 @@
|
|
|
41
41
|
"cli": "nx",
|
|
42
42
|
"description": "changes 'main' tag to project's className",
|
|
43
43
|
"factory": "./src/migrations/update-14-0-2/change-main-to-class-name-14-0-2"
|
|
44
|
+
},
|
|
45
|
+
"rename-blockList-metro-config-14-2-1": {
|
|
46
|
+
"version": "14.2.1-beta.0",
|
|
47
|
+
"cli": "nx",
|
|
48
|
+
"description": "Rename blacklistRE to blockList in metro.config.js",
|
|
49
|
+
"factory": "./src/migrations/update-14-2-1/rename-blockList-metro-config"
|
|
44
50
|
}
|
|
45
51
|
},
|
|
46
52
|
"packageJsonUpdates": {
|
|
@@ -599,6 +605,43 @@
|
|
|
599
605
|
"alwaysAddToPackageJson": false
|
|
600
606
|
}
|
|
601
607
|
}
|
|
608
|
+
},
|
|
609
|
+
"14.2.1": {
|
|
610
|
+
"version": "14.2.1-beta.0",
|
|
611
|
+
"packages": {
|
|
612
|
+
"metro": {
|
|
613
|
+
"version": "0.71.0",
|
|
614
|
+
"alwaysAddToPackageJson": false
|
|
615
|
+
},
|
|
616
|
+
"metro-resolver": {
|
|
617
|
+
"version": "0.71.0",
|
|
618
|
+
"alwaysAddToPackageJson": false
|
|
619
|
+
},
|
|
620
|
+
"metro-babel-register": {
|
|
621
|
+
"version": "0.71.0",
|
|
622
|
+
"alwaysAddToPackageJson": false
|
|
623
|
+
},
|
|
624
|
+
"metro-config": {
|
|
625
|
+
"version": "0.71.0",
|
|
626
|
+
"alwaysAddToPackageJson": false
|
|
627
|
+
},
|
|
628
|
+
"metro-react-native-babel-preset": {
|
|
629
|
+
"version": "0.71.0",
|
|
630
|
+
"alwaysAddToPackageJson": false
|
|
631
|
+
},
|
|
632
|
+
"@testing-library/jest-native": {
|
|
633
|
+
"version": "4.0.5",
|
|
634
|
+
"alwaysAddToPackageJson": false
|
|
635
|
+
},
|
|
636
|
+
"@babel/runtime": {
|
|
637
|
+
"version": "7.18.3",
|
|
638
|
+
"alwaysAddToPackageJson": false
|
|
639
|
+
},
|
|
640
|
+
"@types/react-native": {
|
|
641
|
+
"version": "0.67.8",
|
|
642
|
+
"alwaysAddToPackageJson": false
|
|
643
|
+
}
|
|
644
|
+
}
|
|
602
645
|
}
|
|
603
646
|
}
|
|
604
647
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/react-native",
|
|
3
|
-
"version": "14.2.
|
|
3
|
+
"version": "14.2.2",
|
|
4
4
|
"description": "React Native brings React's declarative UI framework to iOS and Android. With React Native, you use native UI controls and have full access to the native platform.\n\nThe Nx Plugin for React Native contains generators for managing React Native applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Jest, Detox, and Storybook.\n\n- Scaffolding for creating buildable libraries that can be published to npm.\n\n- Utilities for automatic workspace refactoring.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Monorepo",
|
|
@@ -24,18 +24,18 @@
|
|
|
24
24
|
"main": "index.js",
|
|
25
25
|
"types": "index.d.ts",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@nrwl/detox": "14.2.
|
|
28
|
-
"@nrwl/devkit": "14.2.
|
|
29
|
-
"@nrwl/jest": "14.2.
|
|
30
|
-
"@nrwl/linter": "14.2.
|
|
31
|
-
"@nrwl/react": "14.2.
|
|
32
|
-
"@nrwl/storybook": "14.2.
|
|
33
|
-
"@nrwl/workspace": "14.2.
|
|
27
|
+
"@nrwl/detox": "14.2.2",
|
|
28
|
+
"@nrwl/devkit": "14.2.2",
|
|
29
|
+
"@nrwl/jest": "14.2.2",
|
|
30
|
+
"@nrwl/linter": "14.2.2",
|
|
31
|
+
"@nrwl/react": "14.2.2",
|
|
32
|
+
"@nrwl/storybook": "14.2.2",
|
|
33
|
+
"@nrwl/workspace": "14.2.2",
|
|
34
34
|
"chalk": "^4.1.0",
|
|
35
35
|
"enhanced-resolve": "^5.8.3",
|
|
36
36
|
"fs-extra": "^10.1.0",
|
|
37
37
|
"ignore": "^5.0.4",
|
|
38
|
-
"metro-resolver": "^0.
|
|
38
|
+
"metro-resolver": "^0.71.0",
|
|
39
39
|
"node-fetch": "^2.6.7",
|
|
40
40
|
"tsconfig-paths": "^3.9.0"
|
|
41
41
|
},
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
},
|
|
50
50
|
"schematics": "./generators.json",
|
|
51
51
|
"typings": "./index.d.ts",
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "869ebd817fe6e8f9931d1b6a64c90cb50f294958"
|
|
53
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getResolveRequest(extensions: string[]): (_context: any, realModuleName: string, platform: string | null
|
|
1
|
+
export declare function getResolveRequest(extensions: string[]): (_context: any, realModuleName: string, platform: string | null) => any;
|
|
@@ -16,18 +16,18 @@ const devkit_1 = require("@nrwl/devkit");
|
|
|
16
16
|
* workspace root in order modules and assets to be registered and watched.
|
|
17
17
|
*/
|
|
18
18
|
function getResolveRequest(extensions) {
|
|
19
|
-
return function (_context, realModuleName, platform
|
|
19
|
+
return function (_context, realModuleName, platform) {
|
|
20
20
|
const DEBUG = process.env.NX_REACT_NATIVE_DEBUG === 'true';
|
|
21
21
|
if (DEBUG)
|
|
22
|
-
console.log(chalk.cyan(`[Nx] Resolving: ${
|
|
22
|
+
console.log(chalk.cyan(`[Nx] Resolving: ${realModuleName}`));
|
|
23
23
|
const { resolveRequest } = _context, context = tslib_1.__rest(_context, ["resolveRequest"]);
|
|
24
24
|
const resolvedPath = defaultMetroResolver(context, realModuleName, platform, DEBUG) ||
|
|
25
|
-
tsconfigPathsResolver(context, extensions, realModuleName,
|
|
26
|
-
pnpmResolver(extensions, context, realModuleName,
|
|
25
|
+
tsconfigPathsResolver(context, extensions, realModuleName, platform, DEBUG) ||
|
|
26
|
+
pnpmResolver(extensions, context, realModuleName, DEBUG);
|
|
27
27
|
if (resolvedPath) {
|
|
28
28
|
return resolvedPath;
|
|
29
29
|
}
|
|
30
|
-
throw new Error(`Cannot resolve ${chalk.bold(
|
|
30
|
+
throw new Error(`Cannot resolve ${chalk.bold(realModuleName)}`);
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
exports.getResolveRequest = getResolveRequest;
|
|
@@ -49,7 +49,7 @@ function defaultMetroResolver(context, realModuleName, platform, debug) {
|
|
|
49
49
|
* @returns path if resolved, else undefined
|
|
50
50
|
* This pnpm resolver is inspired from https://github.com/vjpr/pnpm-react-native-example/blob/main/packages/pnpm-expo-helper/util/make-resolver.js
|
|
51
51
|
*/
|
|
52
|
-
function pnpmResolver(extensions, context, realModuleName,
|
|
52
|
+
function pnpmResolver(extensions, context, realModuleName, debug) {
|
|
53
53
|
try {
|
|
54
54
|
const pnpmResolve = getPnpmResolver(extensions);
|
|
55
55
|
const lookupStartPath = (0, path_1.dirname)(context.originModulePath);
|
|
@@ -60,14 +60,14 @@ function pnpmResolver(extensions, context, realModuleName, moduleName, debug) {
|
|
|
60
60
|
}
|
|
61
61
|
catch (_a) {
|
|
62
62
|
if (debug)
|
|
63
|
-
console.log(chalk.cyan(`[Nx] Unable to resolve with default PNPM resolver: ${
|
|
63
|
+
console.log(chalk.cyan(`[Nx] Unable to resolve with default PNPM resolver: ${realModuleName}`));
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
67
|
* This function try to resolve files that are specified in tsconfig's paths
|
|
68
68
|
* @returns path if resolved, else undefined
|
|
69
69
|
*/
|
|
70
|
-
function tsconfigPathsResolver(context, extensions, realModuleName,
|
|
70
|
+
function tsconfigPathsResolver(context, extensions, realModuleName, platform, debug) {
|
|
71
71
|
const tsConfigPathMatcher = getMatcher(debug);
|
|
72
72
|
const match = tsConfigPathMatcher(realModuleName, undefined, undefined, extensions.map((ext) => `.${ext}`));
|
|
73
73
|
if (match) {
|
|
@@ -75,7 +75,7 @@ function tsconfigPathsResolver(context, extensions, realModuleName, moduleName,
|
|
|
75
75
|
}
|
|
76
76
|
else {
|
|
77
77
|
if (debug) {
|
|
78
|
-
console.log(chalk.red(`[Nx] Failed to resolve ${chalk.bold(
|
|
78
|
+
console.log(chalk.red(`[Nx] Failed to resolve ${chalk.bold(realModuleName)}`));
|
|
79
79
|
console.log(chalk.cyan(`[Nx] The following tsconfig paths was used:\n:${chalk.bold(JSON.stringify(paths, null, 2))}`));
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metro-resolver.js","sourceRoot":"","sources":["../../../../packages/react-native/plugins/metro-resolver.ts"],"names":[],"mappings":";;;;AAAA,gDAAgD;AAEhD,mDAA6D;AAC7D,+BAA+B;AAC/B,uDAA0E;AAC1E,+BAAqC;AACrC,yBAAyB;AACzB,yCAA6C;AAE7C;;;;;GAKG;AACH,SAAgB,iBAAiB,CAAC,UAAoB;IACpD,OAAO,UACL,QAAa,EACb,cAAsB,EACtB,QAAuB
|
|
1
|
+
{"version":3,"file":"metro-resolver.js","sourceRoot":"","sources":["../../../../packages/react-native/plugins/metro-resolver.ts"],"names":[],"mappings":";;;;AAAA,gDAAgD;AAEhD,mDAA6D;AAC7D,+BAA+B;AAC/B,uDAA0E;AAC1E,+BAAqC;AACrC,yBAAyB;AACzB,yCAA6C;AAE7C;;;;;GAKG;AACH,SAAgB,iBAAiB,CAAC,UAAoB;IACpD,OAAO,UACL,QAAa,EACb,cAAsB,EACtB,QAAuB;QAEvB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,KAAK,MAAM,CAAC;QAE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ib/create-application-files");
|
|
|
17
17
|
const add_detox_1 = require("./lib/add-detox");
|
|
18
18
|
function reactNativeApplicationGenerator(host, schema) {
|
|
19
19
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
const options = (0, normalize_options_1.normalizeOptions)(schema);
|
|
20
|
+
const options = (0, normalize_options_1.normalizeOptions)(host, schema);
|
|
21
21
|
(0, create_application_files_1.createApplicationFiles)(host, options);
|
|
22
22
|
(0, add_project_1.addProject)(host, options);
|
|
23
23
|
const initTask = yield (0, init_1.default)(host, Object.assign(Object.assign({}, options), { skipFormat: true }));
|
|
@@ -25,7 +25,7 @@ function reactNativeApplicationGenerator(host, schema) {
|
|
|
25
25
|
const jestTask = yield (0, add_jest_1.addJest)(host, options.unitTestRunner, options.projectName, options.appProjectRoot, options.js);
|
|
26
26
|
const detoxTask = yield (0, add_detox_1.addDetox)(host, options);
|
|
27
27
|
const symlinkTask = (0, symlink_task_1.runSymlink)(host.root, options.appProjectRoot);
|
|
28
|
-
const podInstallTask = (0, pod_install_task_1.runPodInstall)((0, path_1.join)(host.root, options.iosProjectRoot));
|
|
28
|
+
const podInstallTask = (0, pod_install_task_1.runPodInstall)((0, path_1.join)(host.root, options.iosProjectRoot), options.install);
|
|
29
29
|
const chmodTaskGradlew = (0, chmod_task_1.runChmod)((0, path_1.join)(host.root, options.androidProjectRoot, 'gradlew'), 0o775);
|
|
30
30
|
const chmodTaskGradlewBat = (0, chmod_task_1.runChmod)((0, path_1.join)(host.root, options.androidProjectRoot, 'gradlew.bat'), 0o775);
|
|
31
31
|
if (!options.skipFormat) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.js","sourceRoot":"","sources":["../../../../../../packages/react-native/src/generators/application/application.ts"],"names":[],"mappings":";;;;AAAA,2FAAqF;AAErF,mEAA6D;AAC7D,uDAAkD;AAClD,2DAAsD;AACtD,yDAAqD;AACrD,mDAA+C;AAC/C,yCAMsB;AACtB,+DAA2D;AAC3D,uCAAyC;AACzC,+BAA4B;AAC5B,mDAA+C;AAC/C,6EAAwE;AACxE,+CAA2C;AAE3C,SAAsB,+BAA+B,CACnD,IAAU,EACV,MAAc;;QAEd,MAAM,OAAO,GAAG,IAAA,oCAAgB,EAAC,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"application.js","sourceRoot":"","sources":["../../../../../../packages/react-native/src/generators/application/application.ts"],"names":[],"mappings":";;;;AAAA,2FAAqF;AAErF,mEAA6D;AAC7D,uDAAkD;AAClD,2DAAsD;AACtD,yDAAqD;AACrD,mDAA+C;AAC/C,yCAMsB;AACtB,+DAA2D;AAC3D,uCAAyC;AACzC,+BAA4B;AAC5B,mDAA+C;AAC/C,6EAAwE;AACxE,+CAA2C;AAE3C,SAAsB,+BAA+B,CACnD,IAAU,EACV,MAAc;;QAEd,MAAM,OAAO,GAAG,IAAA,oCAAgB,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAE/C,IAAA,iDAAsB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACtC,IAAA,wBAAU,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAE1B,MAAM,QAAQ,GAAG,MAAM,IAAA,cAAa,EAAC,IAAI,kCAAO,OAAO,KAAE,UAAU,EAAE,IAAI,IAAG,CAAC;QAC7E,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAU,EAC/B,IAAI,EACJ,OAAO,CAAC,WAAW,EACnB,OAAO,CAAC,cAAc,EACtB,CAAC,IAAA,0BAAiB,EAAC,OAAO,CAAC,cAAc,EAAE,mBAAmB,CAAC,CAAC,EAChE,OAAO,CAAC,MAAM,EACd,OAAO,CAAC,uBAAuB,CAChC,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,IAAA,kBAAO,EAC5B,IAAI,EACJ,OAAO,CAAC,cAAc,EACtB,OAAO,CAAC,WAAW,EACnB,OAAO,CAAC,cAAc,EACtB,OAAO,CAAC,EAAE,CACX,CAAC;QACF,MAAM,SAAS,GAAG,MAAM,IAAA,oBAAQ,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAChD,MAAM,WAAW,GAAG,IAAA,yBAAU,EAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;QAClE,MAAM,cAAc,GAAG,IAAA,gCAAa,EAClC,IAAA,WAAI,EAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC,EACvC,OAAO,CAAC,OAAO,CAChB,CAAC;QACF,MAAM,gBAAgB,GAAG,IAAA,qBAAQ,EAC/B,IAAA,WAAI,EAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB,EAAE,SAAS,CAAC,EACtD,KAAK,CACN,CAAC;QACF,MAAM,mBAAmB,GAAG,IAAA,qBAAQ,EAClC,IAAA,WAAI,EAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB,EAAE,aAAa,CAAC,EAC1D,KAAK,CACN,CAAC;QAEF,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YACvB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;QAED,OAAO,IAAA,sCAAgB,EACrB,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,mBAAmB,CACpB,CAAC;IACJ,CAAC;CAAA;AAtDD,0EAsDC;AAED,kBAAe,+BAA+B,CAAC;AAClC,QAAA,+BAA+B,GAAG,IAAA,2BAAkB,EAC/D,+BAA+B,CAChC,CAAC"}
|
|
@@ -22,6 +22,7 @@ describe('app', () => {
|
|
|
22
22
|
displayName: 'myApp',
|
|
23
23
|
linter: Linter.EsLint,
|
|
24
24
|
e2eTestRunner: 'none',
|
|
25
|
+
install: false,
|
|
25
26
|
});
|
|
26
27
|
const workspaceJson = readWorkspaceConfiguration(appTree);
|
|
27
28
|
const projects = getProjects(appTree);
|
|
@@ -37,6 +38,7 @@ describe('app', () => {
|
|
|
37
38
|
tags: 'one,two',
|
|
38
39
|
linter: Linter.EsLint,
|
|
39
40
|
e2eTestRunner: 'none',
|
|
41
|
+
install: false,
|
|
40
42
|
});
|
|
41
43
|
|
|
42
44
|
const { projects } = readJson(appTree, '/workspace.json');
|
|
@@ -53,6 +55,7 @@ describe('app', () => {
|
|
|
53
55
|
displayName: 'myApp',
|
|
54
56
|
linter: Linter.EsLint,
|
|
55
57
|
e2eTestRunner: 'none',
|
|
58
|
+
install: false,
|
|
56
59
|
});
|
|
57
60
|
expect(appTree.exists('apps/my-app/src/app/App.tsx')).toBeTruthy();
|
|
58
61
|
expect(appTree.exists('apps/my-app/src/main.tsx')).toBeTruthy();
|
|
@@ -71,6 +74,7 @@ describe('app', () => {
|
|
|
71
74
|
displayName: 'myApp',
|
|
72
75
|
linter: Linter.EsLint,
|
|
73
76
|
e2eTestRunner: 'none',
|
|
77
|
+
install: false,
|
|
74
78
|
});
|
|
75
79
|
|
|
76
80
|
const tsconfig = readJson(appTree, 'apps/my-app/tsconfig.json');
|
|
@@ -21,7 +21,7 @@ module.exports = (async () => {
|
|
|
21
21
|
assetExts: assetExts.filter((ext) => ext !== 'svg'),
|
|
22
22
|
sourceExts: [...sourceExts, 'svg'],
|
|
23
23
|
resolverMainFields: ['sbmodern', 'browser', 'main'],
|
|
24
|
-
|
|
24
|
+
blockList: exclusionList([/\.\/dist\/.*/]),
|
|
25
25
|
},
|
|
26
26
|
},
|
|
27
27
|
{
|
|
@@ -1,15 +1,24 @@
|
|
|
1
|
+
import { Tree } from '@nrwl/devkit';
|
|
2
|
+
import { createTreeWithEmptyWorkspace } from '@nrwl/devkit/testing';
|
|
1
3
|
import { Linter } from '@nrwl/linter';
|
|
2
4
|
import { Schema } from '../schema';
|
|
3
5
|
import { normalizeOptions } from './normalize-options';
|
|
4
6
|
|
|
5
7
|
describe('Normalize Options', () => {
|
|
8
|
+
let appTree: Tree;
|
|
9
|
+
|
|
10
|
+
beforeEach(() => {
|
|
11
|
+
appTree = createTreeWithEmptyWorkspace();
|
|
12
|
+
});
|
|
13
|
+
|
|
6
14
|
it('should normalize options with name in kebab case', () => {
|
|
7
15
|
const schema: Schema = {
|
|
8
16
|
name: 'my-app',
|
|
9
17
|
linter: Linter.EsLint,
|
|
10
18
|
e2eTestRunner: 'none',
|
|
19
|
+
install: false,
|
|
11
20
|
};
|
|
12
|
-
const options = normalizeOptions(schema);
|
|
21
|
+
const options = normalizeOptions(appTree, schema);
|
|
13
22
|
expect(options).toEqual({
|
|
14
23
|
androidProjectRoot: 'apps/my-app/android',
|
|
15
24
|
appProjectRoot: 'apps/my-app',
|
|
@@ -24,6 +33,7 @@ describe('Normalize Options', () => {
|
|
|
24
33
|
entryFile: 'src/main.tsx',
|
|
25
34
|
e2eTestRunner: 'none',
|
|
26
35
|
unitTestRunner: 'jest',
|
|
36
|
+
install: false,
|
|
27
37
|
});
|
|
28
38
|
});
|
|
29
39
|
|
|
@@ -31,8 +41,9 @@ describe('Normalize Options', () => {
|
|
|
31
41
|
const schema: Schema = {
|
|
32
42
|
name: 'myApp',
|
|
33
43
|
e2eTestRunner: 'none',
|
|
44
|
+
install: false,
|
|
34
45
|
};
|
|
35
|
-
const options = normalizeOptions(schema);
|
|
46
|
+
const options = normalizeOptions(appTree, schema);
|
|
36
47
|
expect(options).toEqual({
|
|
37
48
|
androidProjectRoot: 'apps/my-app/android',
|
|
38
49
|
appProjectRoot: 'apps/my-app',
|
|
@@ -46,6 +57,7 @@ describe('Normalize Options', () => {
|
|
|
46
57
|
entryFile: 'src/main.tsx',
|
|
47
58
|
e2eTestRunner: 'none',
|
|
48
59
|
unitTestRunner: 'jest',
|
|
60
|
+
install: false,
|
|
49
61
|
});
|
|
50
62
|
});
|
|
51
63
|
|
|
@@ -54,8 +66,9 @@ describe('Normalize Options', () => {
|
|
|
54
66
|
name: 'my-app',
|
|
55
67
|
directory: 'directory',
|
|
56
68
|
e2eTestRunner: 'none',
|
|
69
|
+
install: false,
|
|
57
70
|
};
|
|
58
|
-
const options = normalizeOptions(schema);
|
|
71
|
+
const options = normalizeOptions(appTree, schema);
|
|
59
72
|
expect(options).toEqual({
|
|
60
73
|
androidProjectRoot: 'apps/directory/my-app/android',
|
|
61
74
|
appProjectRoot: 'apps/directory/my-app',
|
|
@@ -70,6 +83,7 @@ describe('Normalize Options', () => {
|
|
|
70
83
|
entryFile: 'src/main.tsx',
|
|
71
84
|
e2eTestRunner: 'none',
|
|
72
85
|
unitTestRunner: 'jest',
|
|
86
|
+
install: false,
|
|
73
87
|
});
|
|
74
88
|
});
|
|
75
89
|
|
|
@@ -77,8 +91,9 @@ describe('Normalize Options', () => {
|
|
|
77
91
|
const schema: Schema = {
|
|
78
92
|
name: 'directory/my-app',
|
|
79
93
|
e2eTestRunner: 'none',
|
|
94
|
+
install: false,
|
|
80
95
|
};
|
|
81
|
-
const options = normalizeOptions(schema);
|
|
96
|
+
const options = normalizeOptions(appTree, schema);
|
|
82
97
|
expect(options).toEqual({
|
|
83
98
|
androidProjectRoot: 'apps/directory/my-app/android',
|
|
84
99
|
appProjectRoot: 'apps/directory/my-app',
|
|
@@ -92,6 +107,7 @@ describe('Normalize Options', () => {
|
|
|
92
107
|
entryFile: 'src/main.tsx',
|
|
93
108
|
e2eTestRunner: 'none',
|
|
94
109
|
unitTestRunner: 'jest',
|
|
110
|
+
install: false,
|
|
95
111
|
});
|
|
96
112
|
});
|
|
97
113
|
|
|
@@ -100,8 +116,9 @@ describe('Normalize Options', () => {
|
|
|
100
116
|
name: 'my-app',
|
|
101
117
|
displayName: 'My App',
|
|
102
118
|
e2eTestRunner: 'none',
|
|
119
|
+
install: false,
|
|
103
120
|
};
|
|
104
|
-
const options = normalizeOptions(schema);
|
|
121
|
+
const options = normalizeOptions(appTree, schema);
|
|
105
122
|
expect(options).toEqual({
|
|
106
123
|
androidProjectRoot: 'apps/my-app/android',
|
|
107
124
|
appProjectRoot: 'apps/my-app',
|
|
@@ -115,6 +132,7 @@ describe('Normalize Options', () => {
|
|
|
115
132
|
entryFile: 'src/main.tsx',
|
|
116
133
|
e2eTestRunner: 'none',
|
|
117
134
|
unitTestRunner: 'jest',
|
|
135
|
+
install: false,
|
|
118
136
|
});
|
|
119
137
|
});
|
|
120
138
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Tree } from '@nrwl/devkit';
|
|
1
2
|
import { Schema } from '../schema';
|
|
2
3
|
export interface NormalizedSchema extends Schema {
|
|
3
4
|
className: string;
|
|
@@ -9,4 +10,4 @@ export interface NormalizedSchema extends Schema {
|
|
|
9
10
|
parsedTags: string[];
|
|
10
11
|
entryFile: string;
|
|
11
12
|
}
|
|
12
|
-
export declare function normalizeOptions(options: Schema): NormalizedSchema;
|
|
13
|
+
export declare function normalizeOptions(host: Tree, options: Schema): NormalizedSchema;
|
|
@@ -3,8 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.normalizeOptions = void 0;
|
|
4
4
|
const devkit_1 = require("@nrwl/devkit");
|
|
5
5
|
const path_1 = require("path");
|
|
6
|
-
function normalizeOptions(options) {
|
|
6
|
+
function normalizeOptions(host, options) {
|
|
7
7
|
const { fileName, className } = (0, devkit_1.names)(options.name);
|
|
8
|
+
const { appsDir } = (0, devkit_1.getWorkspaceLayout)(host);
|
|
8
9
|
const directoryName = options.directory
|
|
9
10
|
? (0, devkit_1.names)(options.directory).fileName
|
|
10
11
|
: '';
|
|
@@ -12,7 +13,7 @@ function normalizeOptions(options) {
|
|
|
12
13
|
? `${directoryName}/${fileName}`
|
|
13
14
|
: fileName;
|
|
14
15
|
const appProjectName = projectDirectory.replace(new RegExp('/', 'g'), '-');
|
|
15
|
-
const appProjectRoot =
|
|
16
|
+
const appProjectRoot = (0, devkit_1.joinPathFragments)(appsDir, projectDirectory);
|
|
16
17
|
const iosProjectRoot = (0, path_1.join)(appProjectRoot, 'ios');
|
|
17
18
|
const androidProjectRoot = (0, path_1.join)(appProjectRoot, 'android');
|
|
18
19
|
const parsedTags = options.tags
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize-options.js","sourceRoot":"","sources":["../../../../../../../packages/react-native/src/generators/application/lib/normalize-options.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"normalize-options.js","sourceRoot":"","sources":["../../../../../../../packages/react-native/src/generators/application/lib/normalize-options.ts"],"names":[],"mappings":";;;AAAA,yCAKsB;AACtB,+BAA4B;AAc5B,SAAgB,gBAAgB,CAC9B,IAAU,EACV,OAAe;IAEf,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAA,cAAK,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,2BAAkB,EAAC,IAAI,CAAC,CAAC;IAE7C,MAAM,aAAa,GAAG,OAAO,CAAC,SAAS;QACrC,CAAC,CAAC,IAAA,cAAK,EAAC,OAAO,CAAC,SAAS,CAAC,CAAC,QAAQ;QACnC,CAAC,CAAC,EAAE,CAAC;IACP,MAAM,gBAAgB,GAAG,aAAa;QACpC,CAAC,CAAC,GAAG,aAAa,IAAI,QAAQ,EAAE;QAChC,CAAC,CAAC,QAAQ,CAAC;IAEb,MAAM,cAAc,GAAG,gBAAgB,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;IAE3E,MAAM,cAAc,GAAG,IAAA,0BAAiB,EAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC;IACpE,MAAM,cAAc,GAAG,IAAA,WAAI,EAAC,cAAc,EAAE,KAAK,CAAC,CAAC;IACnD,MAAM,kBAAkB,GAAG,IAAA,WAAI,EAAC,cAAc,EAAE,SAAS,CAAC,CAAC;IAE3D,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI;QAC7B,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QAC9C,CAAC,CAAC,EAAE,CAAC;IAEP,MAAM,SAAS,GAAG,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,cAAc,CAAC;IAE9D;;;;;OAKG;IACH,uCACK,OAAO,KACV,cAAc,EAAE,OAAO,CAAC,cAAc,IAAI,MAAM,EAChD,aAAa,EAAE,OAAO,CAAC,aAAa,IAAI,OAAO,EAC/C,IAAI,EAAE,QAAQ,EACd,SAAS,EACT,aAAa,EAAE,SAAS,CAAC,WAAW,EAAE,EACtC,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,SAAS,EAC7C,WAAW,EAAE,cAAc,EAC3B,cAAc;QACd,cAAc;QACd,kBAAkB;QAClB,UAAU;QACV,SAAS,IACT;AACJ,CAAC;AA/CD,4CA+CC"}
|
|
@@ -35,7 +35,7 @@ function updateDependencies(host) {
|
|
|
35
35
|
return (0, devkit_1.addDependenciesToPackageJson)(host, {
|
|
36
36
|
react: versions_1.reactVersion,
|
|
37
37
|
'react-native': versions_2.reactNativeVersion,
|
|
38
|
-
}, Object.assign({ '@nrwl/react-native': versions_2.nxVersion, '@types/node': versions_2.typesNodeVersion, '@types/react': versions_1.typesReactVersion, '@types/react-native': versions_2.typesReactNativeVersion, '@react-native-community/cli': versions_2.reactNativeCommunityCli, '@react-native-community/cli-platform-android': versions_2.reactNativeCommunityCliAndroid, '@react-native-community/cli-platform-ios': versions_2.reactNativeCommunityCliIos, '@testing-library/react-native': versions_2.testingLibraryReactNativeVersion, '@testing-library/jest-native': versions_2.testingLibraryJestNativeVersion, 'jest-react-native': versions_2.jestReactNativeVersion, metro: versions_2.metroVersion, 'metro-resolver': versions_2.metroVersion, 'metro-babel-register': versions_2.metroVersion, 'metro-react-native-babel-preset': versions_2.metroVersion, 'react-test-renderer':
|
|
38
|
+
}, Object.assign({ '@nrwl/react-native': versions_2.nxVersion, '@types/node': versions_2.typesNodeVersion, '@types/react': versions_1.typesReactVersion, '@types/react-native': versions_2.typesReactNativeVersion, '@react-native-community/cli': versions_2.reactNativeCommunityCli, '@react-native-community/cli-platform-android': versions_2.reactNativeCommunityCliAndroid, '@react-native-community/cli-platform-ios': versions_2.reactNativeCommunityCliIos, '@testing-library/react-native': versions_2.testingLibraryReactNativeVersion, '@testing-library/jest-native': versions_2.testingLibraryJestNativeVersion, 'jest-react-native': versions_2.jestReactNativeVersion, metro: versions_2.metroVersion, 'metro-resolver': versions_2.metroVersion, 'metro-babel-register': versions_2.metroVersion, 'metro-react-native-babel-preset': versions_2.metroVersion, 'react-test-renderer': versions_1.reactTestRendererVersion, 'react-native-svg-transformer': versions_2.reactNativeSvgTransformerVersion, 'react-native-svg': versions_2.reactNativeSvgVersion, 'react-native-config': versions_2.reactNativeConfigVersion, '@react-native-async-storage/async-storage': versions_2.reactNativeAsyncStorageAsyncStorageVersion }, (isPnpm
|
|
39
39
|
? {
|
|
40
40
|
'metro-config': versions_2.metroVersion,
|
|
41
41
|
'@babel/runtime': versions_2.babelRuntimeVersion, // @babel/runtime is used by react-native-svg
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../../../packages/react-native/src/generators/init/init.ts"],"names":[],"mappings":";;;;AAAA,yCAOsB;AAEtB,2FAAqF;AACrF,qCAA+C;AAC/C,uCAAiD;AACjD,
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../../../packages/react-native/src/generators/init/init.ts"],"names":[],"mappings":";;;;AAAA,yCAOsB;AAEtB,2FAAqF;AACrF,qCAA+C;AAC/C,uCAAiD;AACjD,6DAIwC;AAExC,mDAiB8B;AAE9B,qEAA+D;AAC/D,yEAAmE;AAEnE,SAAsB,wBAAwB,CAAC,IAAU,EAAE,MAAc;;QACvE,IAAA,wCAAiB,EAAC,IAAI,CAAC,CAAC;QACxB,IAAA,4CAAmB,EAAC,IAAI,CAAC,CAAC;QAE1B,M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uBAAY,EACnB,gBAAgB,EAAE,uBAAY,EAC9B,sBAAsB,EAAE,uBAAY,EACpC,iCAAiC,EAAE,uBAAY,EAC/C,qBAAqB,EAAE,mCAAwB,EAC/C,8BAA8B,EAAE,2CAAgC,EAChE,kBAAkB,EAAE,gCAAqB,EACzC,qBAAqB,EAAE,mCAAwB,EAC/C,2CAA2C,EACzC,qDAA0C,IACzC,CAAC,MAAM;QACR,CAAC,CAAC;YACE,cAAc,EAAE,uBAAY;YAC5B,gBAAgB,EAAE,8BAAmB,EAAE,6CAA6C;SACrF;QACH,CAAC,CAAC,EAAE,CAAC,EAEV,CAAC;AACJ,CAAC;AAtCD,gDAsCC;AAED,SAAS,cAAc,CAAC,IAAU;IAChC,OAAO,IAAA,0CAAiC,EAAC,IAAI,EAAE,CAAC,oBAAoB,CAAC,EAAE,EAAE,CAAC,CAAC;AAC7E,CAAC;AAED,kBAAe,wBAAwB,CAAC;AAC3B,QAAA,wBAAwB,GAAG,IAAA,2BAAkB,EACxD,wBAAwB,CACzB,CAAC"}
|
|
@@ -28,6 +28,11 @@
|
|
|
28
28
|
"type": "string",
|
|
29
29
|
"enum": ["detox", "none"],
|
|
30
30
|
"default": "detox"
|
|
31
|
+
},
|
|
32
|
+
"install": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"description": "Runs `pod install` for native modules before building iOS app.",
|
|
35
|
+
"default": true
|
|
31
36
|
}
|
|
32
37
|
},
|
|
33
38
|
"required": ["name"]
|
|
@@ -26,7 +26,7 @@ function reactNativeUpgradeNativeGenerator(host, schema) {
|
|
|
26
26
|
(0, fs_extra_1.removeSync)(iosProjectRoot);
|
|
27
27
|
(0, fs_extra_1.removeSync)(androidProjectRoot);
|
|
28
28
|
(0, create_native_files_1.createNativeFiles)(host, schema, root);
|
|
29
|
-
const podInstallTask = (0, pod_install_task_1.runPodInstall)(iosProjectRoot);
|
|
29
|
+
const podInstallTask = (0, pod_install_task_1.runPodInstall)(iosProjectRoot, schema.install);
|
|
30
30
|
const chmodTaskGradlew = (0, chmod_task_1.runChmod)((0, path_1.join)(androidProjectRoot, 'gradlew'), 0o775);
|
|
31
31
|
const chmodTaskGradlewBat = (0, chmod_task_1.runChmod)((0, path_1.join)(androidProjectRoot, 'gradlew.bat'), 0o775);
|
|
32
32
|
return (0, run_tasks_in_serial_1.runTasksInSerial)(podInstallTask, chmodTaskGradlew, chmodTaskGradlewBat);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade-native.js","sourceRoot":"","sources":["../../../../../../packages/react-native/src/generators/upgrade-native/upgrade-native.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,2FAAqF;AAErF,yCAMsB;AACtB,+BAA4B;AAC5B,mEAA8D;AAC9D,uCAAkD;AAElD,mEAA6D;AAC7D,uDAAkD;AAElD,SAAsB,iCAAiC,CACrD,IAAU,EACV,MAAoC;;QAEpC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;QAC1E,MAAM,cAAc,GAAG,IAAA,0BAAiB,EAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QACjE,MAAM,kBAAkB,GAAG,IAAA,0BAAiB,EAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;QAEzE,IACE,WAAW,KAAK,aAAa;YAC7B,CAAC,IAAA,qBAAU,EAAC,cAAc,CAAC;YAC3B,CAAC,IAAA,qBAAU,EAAC,kBAAkB,CAAC,EAC/B;YACA,MAAM,IAAI,KAAK,CAAC,2CAA2C,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;SAC3E;QAED,IAAA,qBAAU,EAAC,cAAc,CAAC,CAAC;QAC3B,IAAA,qBAAU,EAAC,kBAAkB,CAAC,CAAC;QAE/B,IAAA,uCAAiB,EAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;QAEtC,MAAM,cAAc,GAAG,IAAA,gCAAa,EAAC,cAAc,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"upgrade-native.js","sourceRoot":"","sources":["../../../../../../packages/react-native/src/generators/upgrade-native/upgrade-native.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,2FAAqF;AAErF,yCAMsB;AACtB,+BAA4B;AAC5B,mEAA8D;AAC9D,uCAAkD;AAElD,mEAA6D;AAC7D,uDAAkD;AAElD,SAAsB,iCAAiC,CACrD,IAAU,EACV,MAAoC;;QAEpC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;QAC1E,MAAM,cAAc,GAAG,IAAA,0BAAiB,EAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QACjE,MAAM,kBAAkB,GAAG,IAAA,0BAAiB,EAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;QAEzE,IACE,WAAW,KAAK,aAAa;YAC7B,CAAC,IAAA,qBAAU,EAAC,cAAc,CAAC;YAC3B,CAAC,IAAA,qBAAU,EAAC,kBAAkB,CAAC,EAC/B;YACA,MAAM,IAAI,KAAK,CAAC,2CAA2C,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;SAC3E;QAED,IAAA,qBAAU,EAAC,cAAc,CAAC,CAAC;QAC3B,IAAA,qBAAU,EAAC,kBAAkB,CAAC,CAAC;QAE/B,IAAA,uCAAiB,EAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;QAEtC,MAAM,cAAc,GAAG,IAAA,gCAAa,EAAC,cAAc,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;QACrE,MAAM,gBAAgB,GAAG,IAAA,qBAAQ,EAAC,IAAA,WAAI,EAAC,kBAAkB,EAAE,SAAS,CAAC,EAAE,KAAK,CAAC,CAAC;QAC9E,MAAM,mBAAmB,GAAG,IAAA,qBAAQ,EAClC,IAAA,WAAI,EAAC,kBAAkB,EAAE,aAAa,CAAC,EACvC,KAAK,CACN,CAAC;QAEF,OAAO,IAAA,sCAAgB,EACrB,cAAc,EACd,gBAAgB,EAChB,mBAAmB,CACpB,CAAC;IACJ,CAAC;CAAA;AAjCD,8EAiCC;AAED,kBAAe,iCAAiC,CAAC;AACpC,QAAA,iCAAiC,GAAG,IAAA,2BAAkB,EACjE,iCAAiC,CAClC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const devkit_1 = require("@nrwl/devkit");
|
|
5
|
+
/**
|
|
6
|
+
* Rename blacklistRE to blockList in metro.config.js
|
|
7
|
+
* @param tree
|
|
8
|
+
*/
|
|
9
|
+
function update(tree) {
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
|
+
const projects = (0, devkit_1.getProjects)(tree);
|
|
12
|
+
projects.forEach((project) => {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
const metroConfigPath = `${project.root}/metro.config.js`;
|
|
15
|
+
if (((_b = (_a = project.targets) === null || _a === void 0 ? void 0 : _a.start) === null || _b === void 0 ? void 0 : _b.executor) !== '@nrwl/react-native:start' ||
|
|
16
|
+
!tree.exists(metroConfigPath))
|
|
17
|
+
return;
|
|
18
|
+
try {
|
|
19
|
+
const metroConfigContent = tree.read(metroConfigPath, 'utf-8');
|
|
20
|
+
if (!metroConfigContent.includes('blacklistRE:')) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
tree.write(metroConfigPath, metroConfigContent.replace('blacklistRE:', 'blockList:'));
|
|
24
|
+
}
|
|
25
|
+
catch (_c) {
|
|
26
|
+
devkit_1.logger.error((0, devkit_1.stripIndents) `Unable to update ${metroConfigPath} for project ${project.root}.`);
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
yield (0, devkit_1.formatFiles)(tree);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
exports.default = update;
|
|
33
|
+
//# sourceMappingURL=rename-blockList-metro-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rename-blockList-metro-config.js","sourceRoot":"","sources":["../../../../../../packages/react-native/src/migrations/update-14-2-1/rename-blockList-metro-config.ts"],"names":[],"mappings":";;;AAAA,yCAMsB;AAEtB;;;GAGG;AACH,SAA8B,MAAM,CAAC,IAAU;;QAC7C,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAEnC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;;YAC3B,MAAM,eAAe,GAAG,GAAG,OAAO,CAAC,IAAI,kBAAkB,CAAC;YAC1D,IACE,CAAA,MAAA,MAAA,OAAO,CAAC,OAAO,0CAAE,KAAK,0CAAE,QAAQ,MAAK,0BAA0B;gBAC/D,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC;gBAE7B,OAAO;YAET,IAAI;gBACF,MAAM,kBAAkB,GAAG,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;gBAC/D,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE;oBAChD,OAAO;iBACR;gBACD,IAAI,CAAC,KAAK,CACR,eAAe,EACf,kBAAkB,CAAC,OAAO,CAAC,cAAc,EAAE,YAAY,CAAC,CACzD,CAAC;aACH;YAAC,WAAM;gBACN,eAAM,CAAC,KAAK,CACV,IAAA,qBAAY,EAAA,oBAAoB,eAAe,gBAAgB,OAAO,CAAC,IAAI,GAAG,CAC/E,CAAC;aACH;QACH,CAAC,CAAC,CAAC;QACH,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAAA;AA3BD,yBA2BC"}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { addProjectConfiguration, Tree, getProjects } from '@nrwl/devkit';
|
|
2
|
+
import { createTreeWithEmptyWorkspace } from '@nrwl/devkit/testing';
|
|
3
|
+
|
|
4
|
+
import update from './rename-blockList-metro-config';
|
|
5
|
+
|
|
6
|
+
describe('Rename blacklistRE to blockList in metro.config.js for react native apps', () => {
|
|
7
|
+
let tree: Tree;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
tree = createTreeWithEmptyWorkspace();
|
|
11
|
+
addProjectConfiguration(tree, 'products', {
|
|
12
|
+
root: 'apps/products',
|
|
13
|
+
sourceRoot: 'apps/products/src',
|
|
14
|
+
targets: {
|
|
15
|
+
start: {
|
|
16
|
+
executor: '@nrwl/react-native:start',
|
|
17
|
+
options: {
|
|
18
|
+
port: 8081,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it(`should udpate metro.config.js and Rename blacklistRE to blockList`, async () => {
|
|
26
|
+
tree.write(
|
|
27
|
+
'apps/products/metro.config.js',
|
|
28
|
+
`
|
|
29
|
+
const { withNxMetro } = require('@nrwl/react-native');
|
|
30
|
+
const { getDefaultConfig } = require('metro-config');
|
|
31
|
+
|
|
32
|
+
module.exports = (async () => {
|
|
33
|
+
const {
|
|
34
|
+
resolver: { sourceExts, assetExts },
|
|
35
|
+
} = await getDefaultConfig();
|
|
36
|
+
// console.log(getModulesRunBeforeMainModule);
|
|
37
|
+
return withNxMetro(
|
|
38
|
+
{
|
|
39
|
+
transformer: {
|
|
40
|
+
getTransformOptions: async () => ({
|
|
41
|
+
transform: {
|
|
42
|
+
experimentalImportSupport: false,
|
|
43
|
+
inlineRequires: true,
|
|
44
|
+
},
|
|
45
|
+
}),
|
|
46
|
+
babelTransformerPath: require.resolve('react-native-svg-transformer'),
|
|
47
|
+
},
|
|
48
|
+
resolver: {
|
|
49
|
+
assetExts: assetExts.filter((ext) => ext !== 'svg'),
|
|
50
|
+
sourceExts: [...sourceExts, 'svg'],
|
|
51
|
+
resolverMainFields: ['sbmodern', 'browser', 'main'],
|
|
52
|
+
blacklistRE: exclusionList([/\.\/dist\/.*/]),
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
// Change this to true to see debugging info.
|
|
57
|
+
// Useful if you have issues resolving modules
|
|
58
|
+
debug: false,
|
|
59
|
+
// all the file extensions used for imports other than 'ts', 'tsx', 'js', 'jsx'
|
|
60
|
+
extensions: [],
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
})();
|
|
64
|
+
`
|
|
65
|
+
);
|
|
66
|
+
await update(tree);
|
|
67
|
+
|
|
68
|
+
expect(tree.read('apps/products/metro.config.js', 'utf-8')).toEqual(`
|
|
69
|
+
const { withNxMetro } = require('@nrwl/react-native');
|
|
70
|
+
const { getDefaultConfig } = require('metro-config');
|
|
71
|
+
|
|
72
|
+
module.exports = (async () => {
|
|
73
|
+
const {
|
|
74
|
+
resolver: { sourceExts, assetExts },
|
|
75
|
+
} = await getDefaultConfig();
|
|
76
|
+
// console.log(getModulesRunBeforeMainModule);
|
|
77
|
+
return withNxMetro(
|
|
78
|
+
{
|
|
79
|
+
transformer: {
|
|
80
|
+
getTransformOptions: async () => ({
|
|
81
|
+
transform: {
|
|
82
|
+
experimentalImportSupport: false,
|
|
83
|
+
inlineRequires: true,
|
|
84
|
+
},
|
|
85
|
+
}),
|
|
86
|
+
babelTransformerPath: require.resolve('react-native-svg-transformer'),
|
|
87
|
+
},
|
|
88
|
+
resolver: {
|
|
89
|
+
assetExts: assetExts.filter((ext) => ext !== 'svg'),
|
|
90
|
+
sourceExts: [...sourceExts, 'svg'],
|
|
91
|
+
resolverMainFields: ['sbmodern', 'browser', 'main'],
|
|
92
|
+
blockList: exclusionList([/\.\/dist\/.*/]),
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
// Change this to true to see debugging info.
|
|
97
|
+
// Useful if you have issues resolving modules
|
|
98
|
+
debug: false,
|
|
99
|
+
// all the file extensions used for imports other than 'ts', 'tsx', 'js', 'jsx'
|
|
100
|
+
extensions: [],
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
})();
|
|
104
|
+
`);
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
it(`should not udpate metro.config.js if blacklistRE does not exist`, async () => {
|
|
108
|
+
tree.write(
|
|
109
|
+
'apps/products/metro.config.js',
|
|
110
|
+
`
|
|
111
|
+
const { withNxMetro } = require('@nrwl/react-native');
|
|
112
|
+
const { getDefaultConfig } = require('metro-config');
|
|
113
|
+
|
|
114
|
+
module.exports = (async () => {
|
|
115
|
+
const {
|
|
116
|
+
resolver: { sourceExts, assetExts },
|
|
117
|
+
} = await getDefaultConfig();
|
|
118
|
+
// console.log(getModulesRunBeforeMainModule);
|
|
119
|
+
return withNxMetro(
|
|
120
|
+
{
|
|
121
|
+
transformer: {
|
|
122
|
+
getTransformOptions: async () => ({
|
|
123
|
+
transform: {
|
|
124
|
+
experimentalImportSupport: false,
|
|
125
|
+
inlineRequires: true,
|
|
126
|
+
},
|
|
127
|
+
}),
|
|
128
|
+
babelTransformerPath: require.resolve('react-native-svg-transformer'),
|
|
129
|
+
},
|
|
130
|
+
resolver: {
|
|
131
|
+
assetExts: assetExts.filter((ext) => ext !== 'svg'),
|
|
132
|
+
sourceExts: [...sourceExts, 'svg'],
|
|
133
|
+
resolverMainFields: ['sbmodern', 'browser', 'main'],
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
projectRoot: __dirname,
|
|
138
|
+
// Change this to true to see debugging info.
|
|
139
|
+
// Useful if you have issues resolving modules
|
|
140
|
+
debug: false,
|
|
141
|
+
// all the file extensions used for imports other than 'ts', 'tsx', 'js', 'jsx'
|
|
142
|
+
extensions: [],
|
|
143
|
+
}
|
|
144
|
+
);
|
|
145
|
+
})();
|
|
146
|
+
`
|
|
147
|
+
);
|
|
148
|
+
await update(tree);
|
|
149
|
+
|
|
150
|
+
expect(tree.read('apps/products/metro.config.js', 'utf-8')).toEqual(
|
|
151
|
+
`
|
|
152
|
+
const { withNxMetro } = require('@nrwl/react-native');
|
|
153
|
+
const { getDefaultConfig } = require('metro-config');
|
|
154
|
+
|
|
155
|
+
module.exports = (async () => {
|
|
156
|
+
const {
|
|
157
|
+
resolver: { sourceExts, assetExts },
|
|
158
|
+
} = await getDefaultConfig();
|
|
159
|
+
// console.log(getModulesRunBeforeMainModule);
|
|
160
|
+
return withNxMetro(
|
|
161
|
+
{
|
|
162
|
+
transformer: {
|
|
163
|
+
getTransformOptions: async () => ({
|
|
164
|
+
transform: {
|
|
165
|
+
experimentalImportSupport: false,
|
|
166
|
+
inlineRequires: true,
|
|
167
|
+
},
|
|
168
|
+
}),
|
|
169
|
+
babelTransformerPath: require.resolve('react-native-svg-transformer'),
|
|
170
|
+
},
|
|
171
|
+
resolver: {
|
|
172
|
+
assetExts: assetExts.filter((ext) => ext !== 'svg'),
|
|
173
|
+
sourceExts: [...sourceExts, 'svg'],
|
|
174
|
+
resolverMainFields: ['sbmodern', 'browser', 'main'],
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
projectRoot: __dirname,
|
|
179
|
+
// Change this to true to see debugging info.
|
|
180
|
+
// Useful if you have issues resolving modules
|
|
181
|
+
debug: false,
|
|
182
|
+
// all the file extensions used for imports other than 'ts', 'tsx', 'js', 'jsx'
|
|
183
|
+
extensions: [],
|
|
184
|
+
}
|
|
185
|
+
);
|
|
186
|
+
})();
|
|
187
|
+
`
|
|
188
|
+
);
|
|
189
|
+
});
|
|
190
|
+
});
|
|
@@ -4,5 +4,5 @@ import { GeneratorCallback } from '@nrwl/devkit';
|
|
|
4
4
|
* @param iosDirectory ios directory that contains Podfile
|
|
5
5
|
* @returns resolve with 0 if not error, reject with error otherwise
|
|
6
6
|
*/
|
|
7
|
-
export declare function runPodInstall(iosDirectory: string): GeneratorCallback;
|
|
7
|
+
export declare function runPodInstall(iosDirectory: string, install?: boolean): GeneratorCallback;
|
|
8
8
|
export declare function podInstall(iosDirectory: string): Promise<void>;
|
|
@@ -20,12 +20,16 @@ ${chalk.bold('sudo xcode-select --switch /Applications/Xcode.app')}
|
|
|
20
20
|
* @param iosDirectory ios directory that contains Podfile
|
|
21
21
|
* @returns resolve with 0 if not error, reject with error otherwise
|
|
22
22
|
*/
|
|
23
|
-
function runPodInstall(iosDirectory) {
|
|
23
|
+
function runPodInstall(iosDirectory, install = true) {
|
|
24
24
|
return () => {
|
|
25
25
|
if ((0, os_1.platform)() !== 'darwin') {
|
|
26
26
|
devkit_1.logger.info('Skipping `pod install` on non-darwin platform');
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
|
+
if (!install) {
|
|
30
|
+
devkit_1.logger.info('Skipping `pod install`');
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
29
33
|
devkit_1.logger.info(`Running \`pod install\` from "${iosDirectory}"`);
|
|
30
34
|
return podInstall(iosDirectory);
|
|
31
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pod-install-task.js","sourceRoot":"","sources":["../../../../../packages/react-native/src/utils/pod-install-task.ts"],"names":[],"mappings":";;;AAAA,iDAAsC;AACtC,2BAA8B;AAC9B,+BAA+B;AAC/B,yCAAyD;AAEzD,MAAM,sBAAsB,GAAG;UACrB,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC;;;;EAIjC,KAAK,CAAC,IAAI,CAAC,gCAAgC,CAAC;;;EAG5C,KAAK,CAAC,IAAI,CAAC,oDAAoD,CAAC;CACjE,CAAC;AAEF;;;;GAIG;AACH,SAAgB,aAAa,
|
|
1
|
+
{"version":3,"file":"pod-install-task.js","sourceRoot":"","sources":["../../../../../packages/react-native/src/utils/pod-install-task.ts"],"names":[],"mappings":";;;AAAA,iDAAsC;AACtC,2BAA8B;AAC9B,+BAA+B;AAC/B,yCAAyD;AAEzD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,sBAAsB,CAAC,CAAC,CAAC;QAC5C,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAnBD,gCAmBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing-generators.js","sourceRoot":"","sources":["../../../../../packages/react-native/src/utils/testing-generators.ts"],"names":[],"mappings":";;;;AAAA,yCAAoE;AACpE,uEAAyE;AACzE,yCAAsC;AAEtC,SAAsB,SAAS,CAAC,IAAU,EAAE,OAAe;;QACzD,MAAM,IAAA,qBAAoB,EAAC,IAAI,EAAE;YAC/B,MAAM,EAAE,eAAM,CAAC,MAAM;YACrB,UAAU,EAAE,IAAI;YAChB,KAAK,EAAE,KAAK;YACZ,cAAc,EAAE,MAAM;YACtB,IAAI,EAAE,OAAO;YACb,aAAa,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"testing-generators.js","sourceRoot":"","sources":["../../../../../packages/react-native/src/utils/testing-generators.ts"],"names":[],"mappings":";;;;AAAA,yCAAoE;AACpE,uEAAyE;AACzE,yCAAsC;AAEtC,SAAsB,SAAS,CAAC,IAAU,EAAE,OAAe;;QACzD,MAAM,IAAA,qBAAoB,EAAC,IAAI,EAAE;YAC/B,MAAM,EAAE,eAAM,CAAC,MAAM;YACrB,UAAU,EAAE,IAAI;YAChB,KAAK,EAAE,KAAK;YACZ,cAAc,EAAE,MAAM;YACtB,IAAI,EAAE,OAAO;YACb,aAAa,EAAE,MAAM;YACrB,OAAO,EAAE,KAAK;SACf,CAAC,CAAC;IACL,CAAC;CAAA;AAVD,8BAUC;AAED,SAAsB,SAAS,CAAC,IAAU,EAAE,OAAe;;QACzD,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,cAAK,EAAC,OAAO,CAAC,CAAC;QAEpC,IAAI,CAAC,KAAK,CAAC,SAAS,QAAQ,eAAe,EAAE,8BAA8B,CAAC,CAAC;QAE7E,IAAA,gCAAuB,EAAC,IAAI,EAAE,QAAQ,EAAE;YACtC,IAAI,EAAE,EAAE;YACR,IAAI,EAAE,QAAQ,QAAQ,EAAE;YACxB,WAAW,EAAE,SAAS;YACtB,UAAU,EAAE,QAAQ,QAAQ,MAAM;YAClC,OAAO,EAAE,EAAE;SACZ,CAAC,CAAC;IACL,CAAC;CAAA;AAZD,8BAYC"}
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
export declare const nxVersion: any;
|
|
2
2
|
export declare const reactNativeVersion = "0.68.2";
|
|
3
|
-
export declare const typesReactNativeVersion = "0.67.
|
|
3
|
+
export declare const typesReactNativeVersion = "0.67.8";
|
|
4
4
|
export declare const typesNodeVersion = "16.11.7";
|
|
5
|
-
export declare const metroVersion = "0.
|
|
5
|
+
export declare const metroVersion = "0.71.0";
|
|
6
6
|
export declare const reactNativeCommunityCli = "7.0.3";
|
|
7
7
|
export declare const reactNativeCommunityCliIos = "7.0.1";
|
|
8
8
|
export declare const reactNativeCommunityCliAndroid = "7.0.1";
|
|
9
9
|
export declare const reactNativeConfigVersion = "1.4.5";
|
|
10
|
-
export declare const reactNativeAsyncStorageAsyncStorageVersion = "1.
|
|
10
|
+
export declare const reactNativeAsyncStorageAsyncStorageVersion = "1.17.5";
|
|
11
11
|
export declare const testingLibraryReactNativeVersion = "9.1.0";
|
|
12
|
-
export declare const testingLibraryJestNativeVersion = "4.0.
|
|
12
|
+
export declare const testingLibraryJestNativeVersion = "4.0.5";
|
|
13
13
|
export declare const jestReactNativeVersion = "18.0.0";
|
|
14
|
-
export declare const reactTestRendererVersion = "18.1.0";
|
|
15
14
|
export declare const reactNativeSvgTransformerVersion = "1.0.0";
|
|
16
15
|
export declare const reactNativeSvgVersion = "12.3.0";
|
|
17
|
-
export declare const babelRuntimeVersion = "7.
|
|
16
|
+
export declare const babelRuntimeVersion = "7.18.3";
|
package/src/utils/versions.js
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.babelRuntimeVersion = exports.reactNativeSvgVersion = exports.reactNativeSvgTransformerVersion = exports.
|
|
3
|
+
exports.babelRuntimeVersion = exports.reactNativeSvgVersion = exports.reactNativeSvgTransformerVersion = exports.jestReactNativeVersion = exports.testingLibraryJestNativeVersion = exports.testingLibraryReactNativeVersion = exports.reactNativeAsyncStorageAsyncStorageVersion = exports.reactNativeConfigVersion = exports.reactNativeCommunityCliAndroid = exports.reactNativeCommunityCliIos = exports.reactNativeCommunityCli = exports.metroVersion = exports.typesNodeVersion = exports.typesReactNativeVersion = exports.reactNativeVersion = exports.nxVersion = void 0;
|
|
4
4
|
exports.nxVersion = require('../../package.json').version;
|
|
5
5
|
exports.reactNativeVersion = '0.68.2';
|
|
6
|
-
exports.typesReactNativeVersion = '0.67.
|
|
6
|
+
exports.typesReactNativeVersion = '0.67.8';
|
|
7
7
|
exports.typesNodeVersion = '16.11.7';
|
|
8
|
-
exports.metroVersion = '0.
|
|
8
|
+
exports.metroVersion = '0.71.0';
|
|
9
9
|
exports.reactNativeCommunityCli = '7.0.3';
|
|
10
10
|
exports.reactNativeCommunityCliIos = '7.0.1';
|
|
11
11
|
exports.reactNativeCommunityCliAndroid = '7.0.1';
|
|
12
12
|
exports.reactNativeConfigVersion = '1.4.5';
|
|
13
|
-
exports.reactNativeAsyncStorageAsyncStorageVersion = '1.
|
|
13
|
+
exports.reactNativeAsyncStorageAsyncStorageVersion = '1.17.5';
|
|
14
14
|
exports.testingLibraryReactNativeVersion = '9.1.0';
|
|
15
|
-
exports.testingLibraryJestNativeVersion = '4.0.
|
|
15
|
+
exports.testingLibraryJestNativeVersion = '4.0.5';
|
|
16
16
|
exports.jestReactNativeVersion = '18.0.0';
|
|
17
|
-
exports.reactTestRendererVersion = '18.1.0';
|
|
18
17
|
exports.reactNativeSvgTransformerVersion = '1.0.0';
|
|
19
18
|
exports.reactNativeSvgVersion = '12.3.0';
|
|
20
|
-
exports.babelRuntimeVersion = '7.
|
|
19
|
+
exports.babelRuntimeVersion = '7.18.3';
|
|
21
20
|
//# sourceMappingURL=versions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../packages/react-native/src/utils/versions.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC;AAElD,QAAA,kBAAkB,GAAG,QAAQ,CAAC;AAC9B,QAAA,uBAAuB,GAAG,QAAQ,CAAC;AAEnC,QAAA,gBAAgB,GAAG,SAAS,CAAC;AAE7B,QAAA,YAAY,GAAG,QAAQ,CAAC;AAExB,QAAA,uBAAuB,GAAG,OAAO,CAAC;AAClC,QAAA,0BAA0B,GAAG,OAAO,CAAC;AACrC,QAAA,8BAA8B,GAAG,OAAO,CAAC;AAEzC,QAAA,wBAAwB,GAAG,OAAO,CAAC;AACnC,QAAA,0CAA0C,GAAG,QAAQ,CAAC;AAEtD,QAAA,gCAAgC,GAAG,OAAO,CAAC;AAC3C,QAAA,+BAA+B,GAAG,OAAO,CAAC;AAE1C,QAAA,sBAAsB,GAAG,QAAQ,CAAC;AAElC,QAAA,
|
|
1
|
+
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../packages/react-native/src/utils/versions.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC;AAElD,QAAA,kBAAkB,GAAG,QAAQ,CAAC;AAC9B,QAAA,uBAAuB,GAAG,QAAQ,CAAC;AAEnC,QAAA,gBAAgB,GAAG,SAAS,CAAC;AAE7B,QAAA,YAAY,GAAG,QAAQ,CAAC;AAExB,QAAA,uBAAuB,GAAG,OAAO,CAAC;AAClC,QAAA,0BAA0B,GAAG,OAAO,CAAC;AACrC,QAAA,8BAA8B,GAAG,OAAO,CAAC;AAEzC,QAAA,wBAAwB,GAAG,OAAO,CAAC;AACnC,QAAA,0CAA0C,GAAG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