@nx/react-native 16.4.0-beta.1 → 16.4.0-beta.13
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/migrations.json +17 -0
- package/package.json +10 -10
- package/src/executors/run-ios/run-ios.impl.ts +1 -1
- package/src/generators/init/init.js +0 -2
- package/src/generators/init/init.spec.ts +0 -43
- package/src/generators/library/files/lib/tsconfig.json__tmpl__ +1 -1
- package/src/utils/versions.d.ts +3 -3
- package/src/utils/versions.js +3 -3
package/migrations.json
CHANGED
|
@@ -1331,6 +1331,23 @@
|
|
|
1331
1331
|
"alwaysAddToPackageJson": false
|
|
1332
1332
|
}
|
|
1333
1333
|
}
|
|
1334
|
+
},
|
|
1335
|
+
"16.4.0": {
|
|
1336
|
+
"version": "16.4.0-beta.5",
|
|
1337
|
+
"packages": {
|
|
1338
|
+
"react-native": {
|
|
1339
|
+
"version": "0.71.10",
|
|
1340
|
+
"alwaysAddToPackageJson": false
|
|
1341
|
+
},
|
|
1342
|
+
"@react-native-async-storage/async-storage": {
|
|
1343
|
+
"version": "1.18.2",
|
|
1344
|
+
"alwaysAddToPackageJson": false
|
|
1345
|
+
},
|
|
1346
|
+
"react-native-safe-area-context": {
|
|
1347
|
+
"version": "4.5.3",
|
|
1348
|
+
"alwaysAddToPackageJson": false
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1334
1351
|
}
|
|
1335
1352
|
}
|
|
1336
1353
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/react-native",
|
|
3
|
-
"version": "16.4.0-beta.
|
|
3
|
+
"version": "16.4.0-beta.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for React Native contains generators for managing React Native applications and libraries within an Nx workspace. It provides: \n\n-Integration with libraries such as Jest, Detox, and Storybook.\n-Scaffolding for creating buildable libraries that can be published to npm.\n-Utilities for automatic workspace refactoring.",
|
|
6
6
|
"keywords": [
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"main": "./index",
|
|
26
26
|
"types": "index.d.ts",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@nrwl/react-native": "16.4.0-beta.
|
|
29
|
-
"@nx/detox": "16.4.0-beta.
|
|
30
|
-
"@nx/devkit": "16.4.0-beta.
|
|
31
|
-
"@nx/jest": "16.4.0-beta.
|
|
32
|
-
"@nx/js": "16.4.0-beta.
|
|
33
|
-
"@nx/linter": "16.4.0-beta.
|
|
34
|
-
"@nx/react": "16.4.0-beta.
|
|
35
|
-
"@nx/workspace": "16.4.0-beta.
|
|
28
|
+
"@nrwl/react-native": "16.4.0-beta.13",
|
|
29
|
+
"@nx/detox": "16.4.0-beta.13",
|
|
30
|
+
"@nx/devkit": "16.4.0-beta.13",
|
|
31
|
+
"@nx/jest": "16.4.0-beta.13",
|
|
32
|
+
"@nx/js": "16.4.0-beta.13",
|
|
33
|
+
"@nx/linter": "16.4.0-beta.13",
|
|
34
|
+
"@nx/react": "16.4.0-beta.13",
|
|
35
|
+
"@nx/workspace": "16.4.0-beta.13",
|
|
36
36
|
"chalk": "^4.1.0",
|
|
37
37
|
"enhanced-resolve": "^5.8.3",
|
|
38
38
|
"fs-extra": "^11.1.0",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "d81afedfcc8d07db8cdb9b0e9286de0321ee184e"
|
|
59
59
|
}
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.reactNativeInitSchematic = exports.updateDependencies = exports.reactNativeInitGenerator = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
|
-
const add_babel_inputs_1 = require("@nx/js/src/utils/add-babel-inputs");
|
|
7
6
|
const jest_1 = require("@nx/jest");
|
|
8
7
|
const detox_1 = require("@nx/detox");
|
|
9
8
|
const versions_1 = require("@nx/react/src/utils/versions");
|
|
@@ -13,7 +12,6 @@ const add_git_ignore_entry_1 = require("./lib/add-git-ignore-entry");
|
|
|
13
12
|
function reactNativeInitGenerator(host, schema) {
|
|
14
13
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
15
14
|
(0, add_git_ignore_entry_1.addGitIgnoreEntry)(host);
|
|
16
|
-
yield (0, add_babel_inputs_1.addBabelInputs)(host);
|
|
17
15
|
const tasks = [];
|
|
18
16
|
tasks.push(yield (0, js_1.initGenerator)(host, Object.assign(Object.assign({}, schema), { skipFormat: true })));
|
|
19
17
|
if (!schema.skipPackageJson) {
|
|
@@ -35,47 +35,4 @@ describe('init', () => {
|
|
|
35
35
|
expect(content).toMatch(/# React Native/);
|
|
36
36
|
expect(content).toMatch(/# Nested node_modules/);
|
|
37
37
|
});
|
|
38
|
-
|
|
39
|
-
describe('babel config', () => {
|
|
40
|
-
it('should create babel config if not present', async () => {
|
|
41
|
-
updateJson<NxJsonConfiguration>(tree, 'nx.json', (json) => {
|
|
42
|
-
json.namedInputs = {
|
|
43
|
-
sharedGlobals: ['{workspaceRoot}/exiting-file.json'],
|
|
44
|
-
};
|
|
45
|
-
return json;
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
await reactNativeInitGenerator(tree, {
|
|
49
|
-
unitTestRunner: 'none',
|
|
50
|
-
e2eTestRunner: 'none',
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
expect(tree.exists('babel.config.json')).toBe(true);
|
|
54
|
-
const sharedGloabls = readJson<NxJsonConfiguration>(tree, 'nx.json')
|
|
55
|
-
.namedInputs.sharedGlobals;
|
|
56
|
-
expect(sharedGloabls).toContain('{workspaceRoot}/exiting-file.json');
|
|
57
|
-
expect(sharedGloabls).toContain('{workspaceRoot}/babel.config.json');
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
it('should not overwrite existing babel config', async () => {
|
|
61
|
-
tree.write('babel.config.json', '{ "preset": ["preset-awesome"] }');
|
|
62
|
-
|
|
63
|
-
await reactNativeInitGenerator(tree, {
|
|
64
|
-
unitTestRunner: 'none',
|
|
65
|
-
e2eTestRunner: 'none',
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
const existing = readJson(tree, 'babel.config.json');
|
|
69
|
-
expect(existing).toEqual({ preset: ['preset-awesome'] });
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
it('should not overwrite existing babel config (.js)', async () => {
|
|
73
|
-
tree.write('/babel.config.js', 'module.exports = () => {};');
|
|
74
|
-
await reactNativeInitGenerator(tree, {
|
|
75
|
-
unitTestRunner: 'none',
|
|
76
|
-
e2eTestRunner: 'none',
|
|
77
|
-
});
|
|
78
|
-
expect(tree.exists('babel.config.json')).toBe(false);
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
38
|
});
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const nxVersion: any;
|
|
2
|
-
export declare const reactNativeVersion = "0.71.
|
|
2
|
+
export declare const reactNativeVersion = "0.71.10";
|
|
3
3
|
export declare const typesReactNativeVersion = "0.71.7";
|
|
4
4
|
export declare const typesNodeVersion = "18.14.4";
|
|
5
5
|
export declare const metroVersion = "0.74.1";
|
|
@@ -16,5 +16,5 @@ export declare const jestReactNativeVersion = "18.0.0";
|
|
|
16
16
|
export declare const reactNativeSvgTransformerVersion = "1.0.0";
|
|
17
17
|
export declare const reactNativeSvgVersion = "13.9.0";
|
|
18
18
|
export declare const babelRuntimeVersion = "7.21.0";
|
|
19
|
-
export declare const reactNativeAsyncStorageVersion = "1.18.
|
|
20
|
-
export declare const reactNativeSafeAreaContextVersion = "4.5.
|
|
19
|
+
export declare const reactNativeAsyncStorageVersion = "1.18.2";
|
|
20
|
+
export declare const reactNativeSafeAreaContextVersion = "4.5.3";
|
package/src/utils/versions.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.reactNativeSafeAreaContextVersion = exports.reactNativeAsyncStorageVersion = exports.babelRuntimeVersion = exports.reactNativeSvgVersion = exports.reactNativeSvgTransformerVersion = exports.jestReactNativeVersion = exports.testingLibraryJestNativeVersion = exports.testingLibraryReactNativeVersion = exports.typesReactVersion = exports.reactTestRendererVersion = exports.reactDomVersion = exports.reactVersion = 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
|
-
exports.reactNativeVersion = '0.71.
|
|
5
|
+
exports.reactNativeVersion = '0.71.10';
|
|
6
6
|
exports.typesReactNativeVersion = '0.71.7';
|
|
7
7
|
exports.typesNodeVersion = '18.14.4';
|
|
8
8
|
exports.metroVersion = '0.74.1';
|
|
@@ -19,5 +19,5 @@ exports.jestReactNativeVersion = '18.0.0';
|
|
|
19
19
|
exports.reactNativeSvgTransformerVersion = '1.0.0';
|
|
20
20
|
exports.reactNativeSvgVersion = '13.9.0';
|
|
21
21
|
exports.babelRuntimeVersion = '7.21.0';
|
|
22
|
-
exports.reactNativeAsyncStorageVersion = '1.18.
|
|
23
|
-
exports.reactNativeSafeAreaContextVersion = '4.5.
|
|
22
|
+
exports.reactNativeAsyncStorageVersion = '1.18.2';
|
|
23
|
+
exports.reactNativeSafeAreaContextVersion = '4.5.3';
|