@nrwl/react-native 13.4.5-beta.6 → 13.4.7-beta.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/README.md CHANGED
@@ -17,38 +17,9 @@
17
17
 
18
18
  # React Native Plugin for Nx
19
19
 
20
- ## What is Nx?
20
+ # Smart, Fast and Extensible Build System
21
21
 
22
- 🔎 **Smart, Fast and Extensible Build System**
23
-
24
- Nx is a smart, fast and extensible build system. It comes with first class monorepo support and powerful integrations.
25
-
26
- ### Best-in-Class Support for Monorepos
27
-
28
- <strong>Nx</strong> provides distributed graph-based task execution and computation caching.
29
-
30
- <strong>Nx</strong> is smart. It analyzes your workspace and figures out what can be affected by every code change.
31
- That's why Nx doesn't rebuild and retest everything on every commit--<strong>it only rebuilds what is necessary</strong>
32
- .
33
-
34
- <strong>Nx</strong> partitions commands into a graph of smaller tasks. Nx then runs those tasks in parallel,
35
- and <strong>it can even distribute them across multiple machines without any configuration</strong>.
36
-
37
- <strong>Nx also uses a distributed computation cache.</strong> If someone has already built or tested similar code, Nx
38
- will use their results to speed up the command for everyone else.
39
-
40
- ### Holistic Dev Experience Powered by an Advanced CLI and Editor Plugins
41
-
42
- <strong>Nx</strong> helps scale your development from one team building one application to many teams building multiple
43
- frontend and backend applications all in the same workspace. <strong >When using Nx, developers have a holistic dev
44
- experience powered by an advanced CLI</strong > (with editor plugins), capabilities for controlled code sharing and
45
- consistent code generation.
46
-
47
- ### Rich Plugin Ecosystem
48
-
49
- <strong>Nx</strong> is an open platform with plugins for many modern tools and frameworks. It has support for
50
- TypeScript, React, Angular, Cypress, Jest, Prettier, Nest.js, Next.js, Storybook, Ionic among others. With Nx, you get a
51
- consistent dev experience regardless of the tools used.
22
+ Nx is a next generation build system with first class monorepo support and powerful integrations.
52
23
 
53
24
 
54
25
  ## Getting Started
@@ -77,8 +48,9 @@ The `create-nx-workspace` command will ask you to select a preset, which will co
77
48
 
78
49
  ```
79
50
  ? What to create in the new workspace (Use arrow keys)
80
- empty [an empty workspace with a layout that works best for building apps]
81
- npm [an empty workspace set up to publish npm packages (similar to and compatible with yarn workspaces)]
51
+ apps [an empty workspace with no plugins with a layout that works best for building apps]
52
+ core [an empty workspace with no plugins set up to publish npm packages (similar to yarn workspaces)]
53
+ ts [an empty workspace with the JS/TS plugin preinstalled]
82
54
  react [a workspace with a single React application]
83
55
  angular [a workspace with a single Angular application]
84
56
  next.js [a workspace with a single Next.js application]
@@ -86,12 +58,20 @@ The `create-nx-workspace` command will ask you to select a preset, which will co
86
58
  nest [a workspace with a single Nest application]
87
59
  express [a workspace with a single Express application]
88
60
  web components [a workspace with a single app built using web components]
61
+ react-native [a workspace with a single React Native application]
89
62
  react-express [a workspace with a full stack application (React + Express)]
90
- angular-nest [a workspace with a full stack application (Angular + Nest)]
91
63
  ```
92
64
 
93
65
  Select the preset that works best for you.
94
66
 
67
+ ### Adding Nx to an Existing Monorepo
68
+
69
+ Run:
70
+
71
+ ```bash
72
+ npx add-nx-to-monorepo@latest
73
+ ```
74
+
95
75
 
96
76
  ## Table of Contents
97
77
 
package/migrations.json CHANGED
@@ -326,6 +326,11 @@
326
326
  "@babel/runtime": {
327
327
  "version": "7.16.7",
328
328
  "alwaysAddToPackageJson": false
329
+ },
330
+ "react-native-config": {
331
+ "version": "1.4.5",
332
+ "alwaysAddToPackageJson": false,
333
+ "addToPackageJson": "devDependencies"
329
334
  }
330
335
  }
331
336
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrwl/react-native",
3
- "version": "13.4.5-beta.6",
3
+ "version": "13.4.7-beta.1",
4
4
  "description": "React Native Plugin for Nx",
5
5
  "keywords": [
6
6
  "Monorepo",
@@ -24,12 +24,12 @@
24
24
  "main": "index.js",
25
25
  "types": "index.d.ts",
26
26
  "dependencies": {
27
- "@nrwl/detox": "13.4.5-beta.6",
28
- "@nrwl/devkit": "13.4.5-beta.6",
29
- "@nrwl/jest": "13.4.5-beta.6",
30
- "@nrwl/linter": "13.4.5-beta.6",
31
- "@nrwl/react": "13.4.5-beta.6",
32
- "@nrwl/workspace": "13.4.5-beta.6",
27
+ "@nrwl/detox": "13.4.7-beta.1",
28
+ "@nrwl/devkit": "13.4.7-beta.1",
29
+ "@nrwl/jest": "13.4.7-beta.1",
30
+ "@nrwl/linter": "13.4.7-beta.1",
31
+ "@nrwl/react": "13.4.7-beta.1",
32
+ "@nrwl/workspace": "13.4.7-beta.1",
33
33
  "chalk": "^4.1.0",
34
34
  "enhanced-resolve": "^5.8.3",
35
35
  "fs-extra": "^9.1.0",
package/project.json CHANGED
@@ -44,17 +44,17 @@
44
44
  "output": "/"
45
45
  },
46
46
  {
47
- "input": "./packages/react-native/src",
47
+ "input": "packages/react-native/src",
48
48
  "glob": "**/*.!(ts)",
49
49
  "output": "/src"
50
50
  },
51
51
  {
52
- "input": "./packages/react-native",
52
+ "input": "packages/react-native",
53
53
  "glob": "*.rb",
54
54
  "output": "/"
55
55
  },
56
56
  {
57
- "input": "./packages/react-native",
57
+ "input": "packages/react-native",
58
58
  "glob": "**/*.json",
59
59
  "ignore": ["**/tsconfig*.json"],
60
60
  "output": "/"
@@ -1,4 +1,5 @@
1
1
  apply plugin: "com.android.application"
2
+ apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle"
2
3
 
3
4
  import com.android.build.OutputFile
4
5
 
@@ -208,6 +209,7 @@ dependencies {
208
209
  implementation fileTree(dir: "libs", include: ["*.jar"])
209
210
  //noinspection GradleDynamicVersion
210
211
  implementation "com.facebook.react:react-native:+" // From node_modules
212
+ implementation project(':react-native-config')
211
213
 
212
214
  implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
213
215
 
@@ -4,6 +4,7 @@ import android.app.Application;
4
4
  import android.content.Context;
5
5
  import com.facebook.react.PackageList;
6
6
  import com.facebook.react.ReactApplication;
7
+ import com.lugg.ReactNativeConfig.ReactNativeConfigPackage;
7
8
  import com.facebook.react.ReactInstanceManager;
8
9
  import com.facebook.react.ReactNativeHost;
9
10
  import com.facebook.react.ReactPackage;
@@ -1,5 +1,8 @@
1
1
  rootProject.name = '<%= className %>'
2
2
 
3
+ include ':react-native-config'
4
+ project(':react-native-config').projectDir = new File(rootProject.projectDir, '../../../node_modules/react-native-config/android')
5
+
3
6
  apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle");
4
7
  applyNativeModulesSettingsGradle(settings)
5
8
 
@@ -7,6 +7,7 @@
7
7
  "@testing-library/react-native": "*",
8
8
  "react": "*",
9
9
  "react-native": "*",
10
+ "react-native-config": "*",
10
11
  "react-native-svg": "*"
11
12
  }
12
13
  }
@@ -37,7 +37,7 @@ function updateDependencies(host) {
37
37
  return (0, devkit_1.addDependenciesToPackageJson)(host, {
38
38
  react: versions_1.reactVersion,
39
39
  'react-native': versions_2.reactNativeVersion,
40
- }, Object.assign({ '@nrwl/react-native': versions_2.nxVersion, '@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, 'metro-react-native-babel-preset': versions_2.metroReactNativeBabelPresetVersion, '@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, 'react-test-renderer': versions_2.reactTestRendererVersion, 'react-native-svg-transformer': versions_2.reactNativeSvgTransformerVersion, 'react-native-svg': versions_2.reactNativeSvgVersion }, (isPnpm
40
+ }, Object.assign({ '@nrwl/react-native': versions_2.nxVersion, '@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, 'metro-react-native-babel-preset': versions_2.metroReactNativeBabelPresetVersion, '@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, 'react-test-renderer': versions_2.reactTestRendererVersion, 'react-native-svg-transformer': versions_2.reactNativeSvgTransformerVersion, 'react-native-svg': versions_2.reactNativeSvgVersion, 'react-native-config': versions_2.reactNativeConfigVersion }, (isPnpm
41
41
  ? {
42
42
  'metro-config': versions_2.metroVersion,
43
43
  '@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,iGAA4F;AAC5F,yCAOsB;AAEtB,2FAAqF;AACrF,qCAA+C;AAC/C,uCAAiD;AACjD,6DAGwC;AAExC,mDAgB8B;AAE9B,qEAA+D;AAC/D,yEAAmE;AAEnE,SAAsB,wBAAwB,CAAC,IAAU,EAAE,MAAc;;QACvE,IAAA,6CAAoB,EAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC;QACjD,IAAA,wCAAiB,EAAC,IAAI,CAAC,CAAC;QACxB,IAAA,4CAAmB,EAAC,IAAI,CAAC,CAAC;QAE1B,MAAM,KAAK,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC;QAE/D,IAAI,CAAC,MAAM,CAAC,cAAc,IAAI,MAAM,CAAC,cAAc,KAAK,MAAM,EAAE;YAC9D,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YAC7C,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SACtB;QAED,IAAI,CAAC,MAAM,CAAC,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kit");
5
5
  const ignore_1 = require("ignore");
6
6
  const gitignore_entries_1 = require("./gitignore-entries");
7
7
  function addGitIgnoreEntry(host) {
8
- var _a;
9
8
  if (!host.exists('.gitignore')) {
10
9
  devkit_1.logger.warn(`Couldn't find .gitignore file to update`);
11
10
  return;
12
11
  }
13
- let content = (_a = host.read('.gitignore')) === null || _a === void 0 ? void 0 : _a.toString('utf-8').trimRight();
12
+ let content = host.read('.gitignore', 'utf-8').trimEnd();
14
13
  const ig = (0, ignore_1.default)();
15
- ig.add(host.read('.gitignore').toString());
14
+ ig.add(host.read('.gitignore', 'utf-8'));
16
15
  if (!ig.ignores('apps/example/ios/Pods/Folly')) {
17
16
  content = `${content}\n${gitignore_entries_1.gitIgnoreEntriesForReactNative}/\n`;
18
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"add-git-ignore-entry.js","sourceRoot":"","sources":["../../../../../../../packages/react-native/src/generators/init/lib/add-git-ignore-entry.ts"],"names":[],"mappings":";;;AAAA,yCAA4C;AAC5C,mCAA4B;AAC5B,2DAAqE;AAErE,SAAgB,iBAAiB,CAAC,IAAU;;IAC1C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE;QAC9B,eAAM,CAAC,IAAI,CAAC,yCAAyC,CAAC,CAAC;QACvD,OAAO;KACR;IAED,IAAI,OAAO,GAAG,MAAA,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,0CAAE,QAAQ,CAAC,OAAO,EAAE,SAAS,EAAE,CAAC;IAErE,MAAM,EAAE,GAAG,IAAA,gBAAM,GAAE,CAAC;IACpB,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;IAE3C,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,6BAA6B,CAAC,EAAE;QAC9C,OAAO,GAAG,GAAG,OAAO,KAAK,kDAA8B,KAAK,CAAC;KAC9D;IAED,0EAA0E;IAC1E,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,2BAA2B,CAAC,EAAE;QAC5C,OAAO,GAAG,GAAG,OAAO,6CAA6C,CAAC;KACnE;IAED,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;AACpC,CAAC;AArBD,8CAqBC"}
1
+ {"version":3,"file":"add-git-ignore-entry.js","sourceRoot":"","sources":["../../../../../../../packages/react-native/src/generators/init/lib/add-git-ignore-entry.ts"],"names":[],"mappings":";;;AAAA,yCAA4C;AAC5C,mCAA4B;AAC5B,2DAAqE;AAErE,SAAgB,iBAAiB,CAAC,IAAU;IAC1C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE;QAC9B,eAAM,CAAC,IAAI,CAAC,yCAAyC,CAAC,CAAC;QACvD,OAAO;KACR;IAED,IAAI,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC;IAEzD,MAAM,EAAE,GAAG,IAAA,gBAAM,GAAE,CAAC;IACpB,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC;IAEzC,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,6BAA6B,CAAC,EAAE;QAC9C,OAAO,GAAG,GAAG,OAAO,KAAK,kDAA8B,KAAK,CAAC;KAC9D;IAED,0EAA0E;IAC1E,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,2BAA2B,CAAC,EAAE;QAC5C,OAAO,GAAG,GAAG,OAAO,6CAA6C,CAAC;KACnE;IAED,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;AACpC,CAAC;AArBD,8CAqBC"}
@@ -1,5 +1,5 @@
1
1
  import { findAllNpmDependencies } from './find-all-npm-dependencies';
2
- import { ProjectGraph } from '@nrwl/devkit';
2
+ import { DependencyType, ProjectGraph } from '@nrwl/devkit';
3
3
 
4
4
  test('findAllNpmDependencies', () => {
5
5
  const graph: ProjectGraph = {
@@ -61,26 +61,34 @@ test('findAllNpmDependencies', () => {
61
61
  },
62
62
  dependencies: {
63
63
  myapp: [
64
- { type: 'static', source: 'myapp', target: 'lib1' },
65
- { type: 'static', source: 'myapp', target: 'lib2' },
64
+ { type: DependencyType.static, source: 'myapp', target: 'lib1' },
65
+ { type: DependencyType.static, source: 'myapp', target: 'lib2' },
66
66
  {
67
- type: 'static',
67
+ type: DependencyType.static,
68
68
  source: 'myapp',
69
69
  target: 'npm:react-native-image-picker',
70
70
  },
71
71
  {
72
- type: 'static',
72
+ type: DependencyType.static,
73
73
  source: 'myapp',
74
74
  target: 'npm:@nrwl/react-native',
75
75
  },
76
76
  ],
77
77
  lib1: [
78
- { type: 'static', source: 'lib1', target: 'lib2' },
79
- { type: 'static', source: 'lib3', target: 'npm:react-native-snackbar' },
78
+ { type: DependencyType.static, source: 'lib1', target: 'lib2' },
79
+ {
80
+ type: DependencyType.static,
81
+ source: 'lib3',
82
+ target: 'npm:react-native-snackbar',
83
+ },
80
84
  ],
81
- lib2: [{ type: 'static', source: 'lib2', target: 'lib3' }],
85
+ lib2: [{ type: DependencyType.static, source: 'lib2', target: 'lib3' }],
82
86
  lib3: [
83
- { type: 'static', source: 'lib3', target: 'npm:react-native-dialog' },
87
+ {
88
+ type: DependencyType.static,
89
+ source: 'lib3',
90
+ target: 'npm:react-native-dialog',
91
+ },
84
92
  ],
85
93
  },
86
94
  };
@@ -5,6 +5,7 @@ export declare const metroVersion = "0.66.2";
5
5
  export declare const reactNativeCommunityCli = "6.3.1";
6
6
  export declare const reactNativeCommunityCliIos = "6.2.0";
7
7
  export declare const reactNativeCommunityCliAndroid = "6.3.0";
8
+ export declare const reactNativeConfigVersion = "1.4.5";
8
9
  export declare const metroReactNativeBabelPresetVersion = "0.66.2";
9
10
  export declare const testingLibraryReactNativeVersion = "9.0.0";
10
11
  export declare const testingLibraryJestNativeVersion = "4.0.4";
@@ -1,13 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.babelRuntimeVersion = exports.reactNativeSvgVersion = exports.reactNativeSvgTransformerVersion = exports.reactTestRendererVersion = exports.jestReactNativeVersion = exports.testingLibraryJestNativeVersion = exports.testingLibraryReactNativeVersion = exports.metroReactNativeBabelPresetVersion = exports.reactNativeCommunityCliAndroid = exports.reactNativeCommunityCliIos = exports.reactNativeCommunityCli = exports.metroVersion = exports.typesReactNativeVersion = exports.reactNativeVersion = exports.nxVersion = void 0;
4
- exports.nxVersion = '13.4.5-beta.6';
3
+ exports.babelRuntimeVersion = exports.reactNativeSvgVersion = exports.reactNativeSvgTransformerVersion = exports.reactTestRendererVersion = exports.jestReactNativeVersion = exports.testingLibraryJestNativeVersion = exports.testingLibraryReactNativeVersion = exports.metroReactNativeBabelPresetVersion = exports.reactNativeConfigVersion = exports.reactNativeCommunityCliAndroid = exports.reactNativeCommunityCliIos = exports.reactNativeCommunityCli = exports.metroVersion = exports.typesReactNativeVersion = exports.reactNativeVersion = exports.nxVersion = void 0;
4
+ exports.nxVersion = '13.4.7-beta.1';
5
5
  exports.reactNativeVersion = '0.66.4';
6
6
  exports.typesReactNativeVersion = '0.66.11';
7
7
  exports.metroVersion = '0.66.2';
8
8
  exports.reactNativeCommunityCli = '6.3.1';
9
9
  exports.reactNativeCommunityCliIos = '6.2.0';
10
10
  exports.reactNativeCommunityCliAndroid = '6.3.0';
11
+ exports.reactNativeConfigVersion = '1.4.5';
11
12
  exports.metroReactNativeBabelPresetVersion = '0.66.2';
12
13
  exports.testingLibraryReactNativeVersion = '9.0.0';
13
14
  exports.testingLibraryJestNativeVersion = '4.0.4';
@@ -1 +1 @@
1
- {"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../packages/react-native/src/utils/versions.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG,GAAG,CAAC;AAEhB,QAAA,kBAAkB,GAAG,QAAQ,CAAC;AAC9B,QA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