@nrwl/react-native 14.6.0-beta.1 → 14.6.0-beta.3
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/package.json +9 -9
- package/src/generators/application/application.spec.ts +2 -2
- package/src/generators/application/lib/nomalize-options.spec.ts +2 -2
- package/src/generators/component/component.spec.ts +2 -2
- package/src/generators/component-story/component-story.spec.ts +2 -2
- package/src/generators/init/init.spec.ts +2 -2
- package/src/generators/library/library.spec.ts +2 -2
- package/src/generators/stories/stories-app.spec.ts +2 -2
- package/src/generators/stories/stories-lib.spec.ts +2 -2
- package/src/generators/storybook-configuration/configuration.spec.ts +3 -3
- package/src/generators/storybook-configuration/lib/add-resolver-main-fields-to-metro-config.spec.ts +2 -2
- package/src/generators/storybook-configuration/lib/replace-app-import-with-storybook-toggle.spec.ts +2 -2
- package/src/migrations/update-12-10-0/add-react-native-svg-12-10-0.spec.ts +2 -2
- package/src/migrations/update-13-5-0/add-babel-config-root-13-5-0.spec.ts +2 -2
- package/src/migrations/update-13-5-0/update-react-native-typing-svg-13-5-0.spec.ts +2 -2
- package/src/migrations/update-14-0-0/add-project-root-metro-config-14-0-0.spec.ts +2 -2
- package/src/migrations/update-14-0-0/update-entry-file-bundle-14-0-0.spec.ts +2 -2
- package/src/migrations/update-14-0-2/change-main-to-class-name-14-0-2.spec.ts +2 -2
- package/src/migrations/update-14-2-1/rename-blockList-metro-config.spec.ts +2 -2
- package/src/migrations/update-14-5-5/add-exclude-sync-deps.spec.ts +2 -2
- package/src/utils/add-linting.spec.ts +2 -2
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
|
-
# [14.6.0-beta.
|
|
6
|
+
# [14.6.0-beta.3](https://github.com/nrwl/nx/compare/14.5.4...14.6.0-beta.3) (2022-08-12)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @nrwl/react-native
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/react-native",
|
|
3
|
-
"version": "14.6.0-beta.
|
|
3
|
+
"version": "14.6.0-beta.3",
|
|
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,13 +24,13 @@
|
|
|
24
24
|
"main": "index.js",
|
|
25
25
|
"types": "index.d.ts",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@nrwl/detox": "14.6.0-beta.
|
|
28
|
-
"@nrwl/devkit": "14.6.0-beta.
|
|
29
|
-
"@nrwl/jest": "14.6.0-beta.
|
|
30
|
-
"@nrwl/linter": "14.6.0-beta.
|
|
31
|
-
"@nrwl/react": "14.6.0-beta.
|
|
32
|
-
"@nrwl/storybook": "14.6.0-beta.
|
|
33
|
-
"@nrwl/workspace": "14.6.0-beta.
|
|
27
|
+
"@nrwl/detox": "14.6.0-beta.3",
|
|
28
|
+
"@nrwl/devkit": "14.6.0-beta.3",
|
|
29
|
+
"@nrwl/jest": "14.6.0-beta.3",
|
|
30
|
+
"@nrwl/linter": "14.6.0-beta.3",
|
|
31
|
+
"@nrwl/react": "14.6.0-beta.3",
|
|
32
|
+
"@nrwl/storybook": "14.6.0-beta.3",
|
|
33
|
+
"@nrwl/workspace": "14.6.0-beta.3",
|
|
34
34
|
"chalk": "^4.1.0",
|
|
35
35
|
"enhanced-resolve": "^5.8.3",
|
|
36
36
|
"fs-extra": "^10.1.0",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
},
|
|
51
51
|
"schematics": "./generators.json",
|
|
52
52
|
"typings": "./index.d.ts",
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "438e4a544e500d3469ef9aba6ed099e4b0960b52"
|
|
54
54
|
}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getProjects,
|
|
5
5
|
readJson,
|
|
6
6
|
} from '@nrwl/devkit';
|
|
7
|
-
import {
|
|
7
|
+
import { createTreeWithEmptyV1Workspace } from '@nrwl/devkit/testing';
|
|
8
8
|
import { Linter } from '@nrwl/linter';
|
|
9
9
|
import { reactNativeApplicationGenerator } from './application';
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ describe('app', () => {
|
|
|
12
12
|
let appTree: Tree;
|
|
13
13
|
|
|
14
14
|
beforeEach(() => {
|
|
15
|
-
appTree =
|
|
15
|
+
appTree = createTreeWithEmptyV1Workspace();
|
|
16
16
|
appTree.write('.gitignore', '');
|
|
17
17
|
});
|
|
18
18
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tree } from '@nrwl/devkit';
|
|
2
|
-
import {
|
|
2
|
+
import { createTreeWithEmptyV1Workspace } from '@nrwl/devkit/testing';
|
|
3
3
|
import { Linter } from '@nrwl/linter';
|
|
4
4
|
import { Schema } from '../schema';
|
|
5
5
|
import { normalizeOptions } from './normalize-options';
|
|
@@ -8,7 +8,7 @@ describe('Normalize Options', () => {
|
|
|
8
8
|
let appTree: Tree;
|
|
9
9
|
|
|
10
10
|
beforeEach(() => {
|
|
11
|
-
appTree =
|
|
11
|
+
appTree = createTreeWithEmptyV1Workspace();
|
|
12
12
|
});
|
|
13
13
|
|
|
14
14
|
it('should normalize options with name in kebab case', () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { logger, Tree } from '@nrwl/devkit';
|
|
2
|
-
import {
|
|
2
|
+
import { createTreeWithEmptyV1Workspace } from '@nrwl/devkit/testing';
|
|
3
3
|
import { createApp, createLib } from '../../utils/testing-generators';
|
|
4
4
|
import { reactNativeComponentGenerator } from './component';
|
|
5
5
|
|
|
@@ -9,7 +9,7 @@ describe('component', () => {
|
|
|
9
9
|
|
|
10
10
|
beforeEach(async () => {
|
|
11
11
|
projectName = 'my-lib';
|
|
12
|
-
appTree =
|
|
12
|
+
appTree = createTreeWithEmptyV1Workspace();
|
|
13
13
|
appTree.write('.gitignore', '');
|
|
14
14
|
await createApp(appTree, 'my-app');
|
|
15
15
|
await createLib(appTree, projectName);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getProjects, Tree, updateProjectConfiguration } from '@nrwl/devkit';
|
|
2
|
-
import {
|
|
2
|
+
import { createTreeWithEmptyV1Workspace } from '@nrwl/devkit/testing';
|
|
3
3
|
import componentStoryGenerator from './component-story';
|
|
4
4
|
import { Linter } from '@nrwl/linter';
|
|
5
5
|
|
|
@@ -408,7 +408,7 @@ export async function createTestUILib(
|
|
|
408
408
|
libName: string,
|
|
409
409
|
useEsLint = false
|
|
410
410
|
): Promise<Tree> {
|
|
411
|
-
let appTree =
|
|
411
|
+
let appTree = createTreeWithEmptyV1Workspace();
|
|
412
412
|
appTree.write('.gitignore', '');
|
|
413
413
|
|
|
414
414
|
await libraryGenerator(appTree, {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { logger } from '@nrwl/devkit';
|
|
2
2
|
import { Tree, readJson, updateJson } from '@nrwl/devkit';
|
|
3
|
-
import {
|
|
3
|
+
import { createTreeWithEmptyV1Workspace } from '@nrwl/devkit/testing';
|
|
4
4
|
import { reactNativeInitGenerator } from './init';
|
|
5
5
|
|
|
6
6
|
describe('init', () => {
|
|
7
7
|
let tree: Tree;
|
|
8
8
|
|
|
9
9
|
beforeEach(() => {
|
|
10
|
-
tree =
|
|
10
|
+
tree = createTreeWithEmptyV1Workspace();
|
|
11
11
|
tree.write('.gitignore', '');
|
|
12
12
|
});
|
|
13
13
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getProjects, readJson, Tree, updateJson } from '@nrwl/devkit';
|
|
2
|
-
import {
|
|
2
|
+
import { createTreeWithEmptyV1Workspace } from '@nrwl/devkit/testing';
|
|
3
3
|
import libraryGenerator from './library';
|
|
4
4
|
import { Linter } from '@nrwl/linter';
|
|
5
5
|
import { Schema } from './schema';
|
|
@@ -17,7 +17,7 @@ describe('lib', () => {
|
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
beforeEach(() => {
|
|
20
|
-
appTree =
|
|
20
|
+
appTree = createTreeWithEmptyV1Workspace();
|
|
21
21
|
appTree.write('.gitignore', '');
|
|
22
22
|
});
|
|
23
23
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Tree } from '@nrwl/devkit';
|
|
2
2
|
import storiesGenerator from './stories';
|
|
3
|
-
import {
|
|
3
|
+
import { createTreeWithEmptyV1Workspace } from '@nrwl/devkit/testing';
|
|
4
4
|
import applicationGenerator from '../application/application';
|
|
5
5
|
import { Linter } from '@nrwl/linter';
|
|
6
6
|
import { reactNativeComponentGenerator } from '../component/component';
|
|
@@ -130,7 +130,7 @@ describe('react:stories for applications', () => {
|
|
|
130
130
|
});
|
|
131
131
|
|
|
132
132
|
export async function createTestUIApp(libName: string): Promise<Tree> {
|
|
133
|
-
let appTree =
|
|
133
|
+
let appTree = createTreeWithEmptyV1Workspace();
|
|
134
134
|
appTree.write('.gitignore', '');
|
|
135
135
|
|
|
136
136
|
await applicationGenerator(appTree, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Tree } from '@nrwl/devkit';
|
|
2
2
|
import storiesGenerator from './stories';
|
|
3
|
-
import {
|
|
3
|
+
import { createTreeWithEmptyV1Workspace } from '@nrwl/devkit/testing';
|
|
4
4
|
import applicationGenerator from '../application/application';
|
|
5
5
|
import { Linter } from '@nrwl/linter';
|
|
6
6
|
import libraryGenerator from '../library/library';
|
|
@@ -90,7 +90,7 @@ describe('react-native:stories for libraries', () => {
|
|
|
90
90
|
});
|
|
91
91
|
|
|
92
92
|
export async function createTestUILib(libName: string): Promise<Tree> {
|
|
93
|
-
let appTree =
|
|
93
|
+
let appTree = createTreeWithEmptyV1Workspace();
|
|
94
94
|
appTree.write('.gitignore', '');
|
|
95
95
|
|
|
96
96
|
await libraryGenerator(appTree, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tree } from '@nrwl/devkit';
|
|
2
|
-
import {
|
|
2
|
+
import { createTreeWithEmptyV1Workspace } from '@nrwl/devkit/testing';
|
|
3
3
|
import { Linter } from '@nrwl/linter';
|
|
4
4
|
import { logger } from '@nrwl/devkit';
|
|
5
5
|
|
|
@@ -103,7 +103,7 @@ describe('react-native:storybook-configuration', () => {
|
|
|
103
103
|
});
|
|
104
104
|
|
|
105
105
|
export async function createTestUILib(libName: string): Promise<Tree> {
|
|
106
|
-
let appTree =
|
|
106
|
+
let appTree = createTreeWithEmptyV1Workspace();
|
|
107
107
|
|
|
108
108
|
await libraryGenerator(appTree, {
|
|
109
109
|
linter: Linter.EsLint,
|
|
@@ -119,7 +119,7 @@ export async function createTestAppLib(
|
|
|
119
119
|
libName: string,
|
|
120
120
|
plainJS = false
|
|
121
121
|
): Promise<Tree> {
|
|
122
|
-
let appTree =
|
|
122
|
+
let appTree = createTreeWithEmptyV1Workspace();
|
|
123
123
|
|
|
124
124
|
await applicationGenerator(appTree, {
|
|
125
125
|
e2eTestRunner: 'none',
|
package/src/generators/storybook-configuration/lib/add-resolver-main-fields-to-metro-config.spec.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { addProjectConfiguration, Tree } from '@nrwl/devkit';
|
|
2
|
-
import {
|
|
2
|
+
import { createTreeWithEmptyV1Workspace } from '@nrwl/devkit/testing';
|
|
3
3
|
|
|
4
4
|
import { formatFile } from '../../../utils/format-file';
|
|
5
5
|
|
|
@@ -9,7 +9,7 @@ describe('addResolverMainFieldsToMetroConfig', () => {
|
|
|
9
9
|
let tree: Tree;
|
|
10
10
|
|
|
11
11
|
beforeEach(() => {
|
|
12
|
-
tree =
|
|
12
|
+
tree = createTreeWithEmptyV1Workspace();
|
|
13
13
|
|
|
14
14
|
addProjectConfiguration(tree, 'products', {
|
|
15
15
|
root: 'apps/products',
|
package/src/generators/storybook-configuration/lib/replace-app-import-with-storybook-toggle.spec.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { addProjectConfiguration, Tree } from '@nrwl/devkit';
|
|
2
|
-
import {
|
|
2
|
+
import { createTreeWithEmptyV1Workspace } from '@nrwl/devkit/testing';
|
|
3
3
|
|
|
4
4
|
import { formatFile } from '../../../utils/format-file';
|
|
5
5
|
|
|
@@ -9,7 +9,7 @@ describe('replaceAppImportWithStorybookToggle', () => {
|
|
|
9
9
|
let tree: Tree;
|
|
10
10
|
|
|
11
11
|
beforeEach(() => {
|
|
12
|
-
tree =
|
|
12
|
+
tree = createTreeWithEmptyV1Workspace();
|
|
13
13
|
|
|
14
14
|
addProjectConfiguration(tree, 'products', {
|
|
15
15
|
root: 'apps/products',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { addProjectConfiguration, readJson, Tree } from '@nrwl/devkit';
|
|
2
|
-
import {
|
|
2
|
+
import { createTreeWithEmptyV1Workspace } from '@nrwl/devkit/testing';
|
|
3
3
|
import {
|
|
4
4
|
reactNativeSvgTransformerVersion,
|
|
5
5
|
reactNativeSvgVersion,
|
|
@@ -10,7 +10,7 @@ describe('Add react-native-svg to dev dependencies', () => {
|
|
|
10
10
|
let tree: Tree;
|
|
11
11
|
|
|
12
12
|
beforeEach(async () => {
|
|
13
|
-
tree =
|
|
13
|
+
tree = createTreeWithEmptyV1Workspace();
|
|
14
14
|
addProjectConfiguration(tree, 'products', {
|
|
15
15
|
root: 'apps/products',
|
|
16
16
|
sourceRoot: 'apps/products/src',
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { addProjectConfiguration, readJson, Tree } from '@nrwl/devkit';
|
|
2
|
-
import {
|
|
2
|
+
import { createTreeWithEmptyV1Workspace } from '@nrwl/devkit/testing';
|
|
3
3
|
import update from './add-babel-config-root-13-5-0';
|
|
4
4
|
|
|
5
5
|
describe('Add react-native-svg to dev dependencies', () => {
|
|
6
6
|
let tree: Tree;
|
|
7
7
|
|
|
8
8
|
beforeEach(async () => {
|
|
9
|
-
tree =
|
|
9
|
+
tree = createTreeWithEmptyV1Workspace();
|
|
10
10
|
addProjectConfiguration(tree, 'products', {
|
|
11
11
|
root: 'apps/products',
|
|
12
12
|
sourceRoot: 'apps/products/src',
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { addProjectConfiguration, readJson, Tree } from '@nrwl/devkit';
|
|
2
|
-
import {
|
|
2
|
+
import { createTreeWithEmptyV1Workspace } from '@nrwl/devkit/testing';
|
|
3
3
|
import update from './update-react-native-typing-svg-13-5-0';
|
|
4
4
|
|
|
5
5
|
describe('Update svg typings in tsconfig for react native app', () => {
|
|
6
6
|
let tree: Tree;
|
|
7
7
|
|
|
8
8
|
beforeEach(async () => {
|
|
9
|
-
tree =
|
|
9
|
+
tree = createTreeWithEmptyV1Workspace();
|
|
10
10
|
addProjectConfiguration(tree, 'products', {
|
|
11
11
|
root: 'apps/products',
|
|
12
12
|
sourceRoot: 'apps/products/src',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { addProjectConfiguration, Tree } from '@nrwl/devkit';
|
|
2
|
-
import {
|
|
2
|
+
import { createTreeWithEmptyV1Workspace } from '@nrwl/devkit/testing';
|
|
3
3
|
|
|
4
4
|
import update from './add-project-root-metro-config-14-0-0';
|
|
5
5
|
|
|
@@ -7,7 +7,7 @@ describe('Add projectRoot option in metro.config.js', () => {
|
|
|
7
7
|
let tree: Tree;
|
|
8
8
|
|
|
9
9
|
beforeEach(async () => {
|
|
10
|
-
tree =
|
|
10
|
+
tree = createTreeWithEmptyV1Workspace();
|
|
11
11
|
addProjectConfiguration(tree, 'products', {
|
|
12
12
|
root: 'apps/products',
|
|
13
13
|
sourceRoot: 'apps/products/src',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { addProjectConfiguration, Tree, getProjects } from '@nrwl/devkit';
|
|
2
|
-
import {
|
|
2
|
+
import { createTreeWithEmptyV1Workspace } from '@nrwl/devkit/testing';
|
|
3
3
|
|
|
4
4
|
import update from './update-entry-file-bundle-14-0-0';
|
|
5
5
|
|
|
@@ -7,7 +7,7 @@ describe('Update entryFile for bundle target for react native apps', () => {
|
|
|
7
7
|
let tree: Tree;
|
|
8
8
|
|
|
9
9
|
beforeEach(async () => {
|
|
10
|
-
tree =
|
|
10
|
+
tree = createTreeWithEmptyV1Workspace();
|
|
11
11
|
addProjectConfiguration(tree, 'products', {
|
|
12
12
|
root: 'apps/products',
|
|
13
13
|
sourceRoot: 'apps/products/src',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { addProjectConfiguration, Tree } from '@nrwl/devkit';
|
|
2
|
-
import {
|
|
2
|
+
import { createTreeWithEmptyV1Workspace } from '@nrwl/devkit/testing';
|
|
3
3
|
|
|
4
4
|
import update from './change-main-to-class-name-14-0-2';
|
|
5
5
|
|
|
@@ -7,7 +7,7 @@ describe('Change from main tag to className tag', () => {
|
|
|
7
7
|
let tree: Tree;
|
|
8
8
|
|
|
9
9
|
beforeEach(async () => {
|
|
10
|
-
tree =
|
|
10
|
+
tree = createTreeWithEmptyV1Workspace();
|
|
11
11
|
addProjectConfiguration(tree, 'products', {
|
|
12
12
|
root: 'apps/products',
|
|
13
13
|
sourceRoot: 'apps/products/src',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { addProjectConfiguration, Tree, getProjects } from '@nrwl/devkit';
|
|
2
|
-
import {
|
|
2
|
+
import { createTreeWithEmptyV1Workspace } from '@nrwl/devkit/testing';
|
|
3
3
|
|
|
4
4
|
import update from './rename-blockList-metro-config';
|
|
5
5
|
|
|
@@ -7,7 +7,7 @@ describe('Rename blacklistRE to blockList in metro.config.js for react native ap
|
|
|
7
7
|
let tree: Tree;
|
|
8
8
|
|
|
9
9
|
beforeEach(async () => {
|
|
10
|
-
tree =
|
|
10
|
+
tree = createTreeWithEmptyV1Workspace();
|
|
11
11
|
addProjectConfiguration(tree, 'products', {
|
|
12
12
|
root: 'apps/products',
|
|
13
13
|
sourceRoot: 'apps/products/src',
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { addProjectConfiguration, getProjects, Tree } from '@nrwl/devkit';
|
|
2
|
-
import {
|
|
2
|
+
import { createTreeWithEmptyV1Workspace } from '@nrwl/devkit/testing';
|
|
3
3
|
import update from './add-exclude-sync-deps';
|
|
4
4
|
|
|
5
5
|
describe('add-exclude-sync-deps', () => {
|
|
6
6
|
let tree: Tree;
|
|
7
7
|
|
|
8
8
|
beforeEach(async () => {
|
|
9
|
-
tree =
|
|
9
|
+
tree = createTreeWithEmptyV1Workspace();
|
|
10
10
|
addProjectConfiguration(tree, 'products', {
|
|
11
11
|
root: 'apps/products',
|
|
12
12
|
sourceRoot: 'apps/products/src',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { readProjectConfiguration, Tree } from '@nrwl/devkit';
|
|
2
|
-
import {
|
|
2
|
+
import { createTreeWithEmptyV1Workspace } from '@nrwl/devkit/testing';
|
|
3
3
|
import { Linter } from '@nrwl/linter';
|
|
4
4
|
import { libraryGenerator } from '@nrwl/workspace/src/generators/library/library';
|
|
5
5
|
import { addLinting } from './add-linting';
|
|
@@ -8,7 +8,7 @@ describe('Add Linting', () => {
|
|
|
8
8
|
let tree: Tree;
|
|
9
9
|
|
|
10
10
|
beforeEach(async () => {
|
|
11
|
-
tree =
|
|
11
|
+
tree = createTreeWithEmptyV1Workspace();
|
|
12
12
|
await libraryGenerator(tree, {
|
|
13
13
|
name: 'my-lib',
|
|
14
14
|
linter: Linter.None,
|