@nrwl/react-native 14.5.4 → 14.5.5-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md 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.5.4](https://github.com/nrwl/nx/compare/14.5.3...14.5.4) (2022-08-04)
6
+ ## [14.5.5-beta.0](https://github.com/nrwl/nx/compare/14.5.4...14.5.5-beta.0) (2022-08-09)
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.5.4",
3
+ "version": "14.5.5-beta.0",
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,19 @@
24
24
  "main": "index.js",
25
25
  "types": "index.d.ts",
26
26
  "dependencies": {
27
- "@nrwl/detox": "14.5.4",
28
- "@nrwl/devkit": "14.5.4",
29
- "@nrwl/jest": "14.5.4",
30
- "@nrwl/linter": "14.5.4",
31
- "@nrwl/react": "14.5.4",
32
- "@nrwl/storybook": "14.5.4",
33
- "@nrwl/workspace": "14.5.4",
27
+ "@nrwl/detox": "14.5.5-beta.0",
28
+ "@nrwl/devkit": "14.5.5-beta.0",
29
+ "@nrwl/jest": "14.5.5-beta.0",
30
+ "@nrwl/linter": "14.5.5-beta.0",
31
+ "@nrwl/react": "14.5.5-beta.0",
32
+ "@nrwl/storybook": "14.5.5-beta.0",
33
+ "@nrwl/workspace": "14.5.5-beta.0",
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
38
  "metro-resolver": "^0.71.3",
39
+ "minimatch": "3.0.5",
39
40
  "node-fetch": "^2.6.7",
40
41
  "tsconfig-paths": "^3.9.0"
41
42
  },
@@ -49,5 +50,5 @@
49
50
  },
50
51
  "schematics": "./generators.json",
51
52
  "typings": "./index.d.ts",
52
- "gitHead": "bcc00c50e4e74ec991385d686493ff784817638c"
53
+ "gitHead": "efea1a511edfa904230b9e7b787ef71877ff6d9c"
53
54
  }
@@ -1,3 +1,4 @@
1
1
  export interface StorybookStoriesSchema {
2
2
  project: string;
3
+ ignorePaths?: string[];
3
4
  }
@@ -15,6 +15,21 @@
15
15
  "index": 0
16
16
  },
17
17
  "x-prompt": "For which project do you want to generate stories?"
18
+ },
19
+ "ignorePaths": {
20
+ "type": "array",
21
+ "description": "Paths to ignore when looking for components.",
22
+ "items": {
23
+ "type": "string",
24
+ "description": "Path to ignore."
25
+ },
26
+ "examples": [
27
+ "apps/my-app/src/not-stories/**",
28
+ "**/**/src/**/not-stories/**",
29
+ "libs/my-lib/**/*.something.ts",
30
+ "**/**/src/**/*.other.*",
31
+ "libs/my-lib/src/not-stories/**,**/**/src/**/*.other.*,apps/my-app/**/*.something.ts"
32
+ ]
18
33
  }
19
34
  },
20
35
  "required": ["project"]
@@ -32,6 +32,84 @@ describe('react:stories for applications', () => {
32
32
  ).toBeTruthy();
33
33
  });
34
34
 
35
+ it('should ignore paths', async () => {
36
+ await reactNativeComponentGenerator(appTree, {
37
+ name: 'another-cmp',
38
+ project: 'test-ui-app',
39
+ });
40
+ await storiesGenerator(appTree, {
41
+ project: 'test-ui-app',
42
+ ignorePaths: ['apps/test-ui-app/src/app/**'],
43
+ });
44
+
45
+ expect(appTree.exists('apps/test-ui-app/src/app/App.tsx')).toBeTruthy();
46
+ expect(
47
+ appTree.exists('apps/test-ui-app/src/app/App.stories.tsx')
48
+ ).toBeFalsy();
49
+ expect(
50
+ appTree.exists(
51
+ 'apps/test-ui-app/src/app/another-cmp/another-cmp.stories.tsx'
52
+ )
53
+ ).toBeFalsy();
54
+ });
55
+
56
+ it('should ignore paths with a direct path to a component', async () => {
57
+ await reactNativeComponentGenerator(appTree, {
58
+ name: 'another-new-cmp',
59
+ project: 'test-ui-app',
60
+ });
61
+
62
+ await storiesGenerator(appTree, {
63
+ project: 'test-ui-app',
64
+ ignorePaths: [
65
+ 'apps/test-ui-app/src/app/another-new-cmp/another-new-cmp.tsx',
66
+ ],
67
+ });
68
+
69
+ expect(appTree.exists('apps/test-ui-app/src/app/App.tsx')).toBeTruthy();
70
+ expect(
71
+ appTree.exists('apps/test-ui-app/src/app/App.stories.tsx')
72
+ ).toBeTruthy();
73
+ expect(
74
+ appTree.exists(
75
+ 'apps/test-ui-app/src/app/another-new-cmp/another-new-cmp.stories.tsx'
76
+ )
77
+ ).toBeFalsy();
78
+ });
79
+
80
+ it('should ignore a path that has a nested component, but still generate nested component stories', async () => {
81
+ await reactNativeComponentGenerator(appTree, {
82
+ name: 'another-new-cmp',
83
+ project: 'test-ui-app',
84
+ });
85
+ await reactNativeComponentGenerator(appTree, {
86
+ name: 'comp-a',
87
+ directory: 'app/another-new-cmp',
88
+ project: 'test-ui-app',
89
+ });
90
+ await storiesGenerator(appTree, {
91
+ project: 'test-ui-app',
92
+ ignorePaths: [
93
+ 'apps/test-ui-app/src/app/another-new-cmp/another-new-cmp.tsx',
94
+ ],
95
+ });
96
+
97
+ expect(appTree.exists('apps/test-ui-app/src/app/App.tsx')).toBeTruthy();
98
+ expect(
99
+ appTree.exists('apps/test-ui-app/src/app/App.stories.tsx')
100
+ ).toBeTruthy();
101
+ expect(
102
+ appTree.exists(
103
+ 'apps/test-ui-app/src/app/another-new-cmp/comp-a/comp-a.stories.tsx'
104
+ )
105
+ ).toBeTruthy();
106
+ expect(
107
+ appTree.exists(
108
+ 'apps/test-ui-app/src/app/another-new-cmp/another-new-cmp.stories.tsx'
109
+ )
110
+ ).toBeFalsy();
111
+ });
112
+
35
113
  it('should ignore files that do not contain components', async () => {
36
114
  // create another component
37
115
  appTree.write(
@@ -38,6 +38,32 @@ describe('react-native:stories for libraries', () => {
38
38
  ).toBeTruthy();
39
39
  });
40
40
 
41
+ it('should ignore paths', async () => {
42
+ await reactNativeComponentGenerator(appTree, {
43
+ name: 'test-ui-lib',
44
+ project: 'test-ui-lib',
45
+ });
46
+ await reactNativeComponentGenerator(appTree, {
47
+ name: 'another-cmp',
48
+ project: 'test-ui-lib',
49
+ });
50
+ await storiesGenerator(appTree, {
51
+ project: 'test-ui-lib',
52
+ ignorePaths: ['libs/test-ui-lib/src/lib/another-cmp/**'],
53
+ });
54
+
55
+ expect(
56
+ appTree.exists(
57
+ 'libs/test-ui-lib/src/lib/test-ui-lib/test-ui-lib.stories.tsx'
58
+ )
59
+ ).toBeTruthy();
60
+ expect(
61
+ appTree.exists(
62
+ 'libs/test-ui-lib/src/lib/another-cmp/another-cmp.stories.tsx'
63
+ )
64
+ ).toBeFalsy();
65
+ });
66
+
41
67
  it('should ignore files that do not contain components', async () => {
42
68
  await reactNativeComponentGenerator(appTree, {
43
69
  name: 'test-ui-lib',
@@ -1,6 +1,6 @@
1
1
  import { Tree } from '@nrwl/devkit';
2
2
  import { StorybookStoriesSchema } from './schema';
3
- export declare function createAllStories(tree: Tree, projectName: string): Promise<void>;
3
+ export declare function createAllStories(tree: Tree, projectName: string, ignorePaths?: string[]): Promise<void>;
4
4
  export declare function storiesGenerator(host: Tree, schema: StorybookStoriesSchema): Promise<void>;
5
5
  export default storiesGenerator;
6
6
  export declare const storiesSchematic: (generatorOptions: StorybookStoriesSchema) => (tree: any, context: any) => Promise<any>;
@@ -7,14 +7,17 @@ const path_1 = require("path");
7
7
  const component_story_1 = require("../component-story/component-story");
8
8
  const stories_1 = require("@nrwl/react/src/generators/stories/stories");
9
9
  const utilities_1 = require("@nrwl/storybook/src/utils/utilities");
10
- function createAllStories(tree, projectName) {
10
+ const minimatch = require("minimatch");
11
+ function createAllStories(tree, projectName, ignorePaths) {
11
12
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
12
13
  const projects = (0, devkit_1.getProjects)(tree);
13
14
  const projectConfiguration = projects.get(projectName);
14
- const { sourceRoot } = projectConfiguration;
15
+ const { sourceRoot, root } = projectConfiguration;
15
16
  const projectPath = (0, stories_1.projectRootPath)(projectConfiguration);
16
17
  let componentPaths = [];
17
18
  (0, devkit_1.visitNotIgnoredFiles)(tree, projectPath, (path) => {
19
+ if (ignorePaths === null || ignorePaths === void 0 ? void 0 : ignorePaths.some((pattern) => minimatch(path, pattern)))
20
+ return;
18
21
  if ((path.endsWith('.tsx') && !path.endsWith('.spec.tsx')) ||
19
22
  (path.endsWith('.js') && !path.endsWith('.spec.js')) ||
20
23
  (path.endsWith('.jsx') && !path.endsWith('.spec.jsx'))) {
@@ -45,7 +48,7 @@ function createAllStories(tree, projectName) {
45
48
  exports.createAllStories = createAllStories;
46
49
  function storiesGenerator(host, schema) {
47
50
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
48
- yield createAllStories(host, schema.project);
51
+ yield createAllStories(host, schema.project, schema.ignorePaths);
49
52
  });
50
53
  }
51
54
  exports.storiesGenerator = storiesGenerator;
@@ -1 +1 @@
1
- {"version":3,"file":"stories.js","sourceRoot":"","sources":["../../../../../../packages/react-native/src/generators/stories/stories.ts"],"names":[],"mappings":";;;;AAAA,yCAKsB;AACtB,+BAA4B;AAE5B,wEAAyE;AAEzE,wEAGoD;AACpD,mEAAsE;AAEtE,SAAsB,gBAAgB,CAAC,IAAU,EAAE,WAAmB;;QACpE,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QACnC,MAAM,oBAAoB,GAAG,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QAEvD,MAAM,EAAE,UAAU,EAAE,GAAG,oBAAoB,CAAC;QAC5C,MAAM,W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E;gBACtD,OAAO;aACR;YAED,MAAM,IAAA,yBAAuB,EAAC,IAAI,EAAE;gBAClC,aAAa,EAAE,cAAc;gBAC7B,OAAO,EAAE,WAAW;aACrB,CAAC,CAAC;QACL,CAAC,CAAA,CAAC,CACH,CAAC;IACJ,CAAC;CAAA;AA1CD,4CA0CC;AAED,SAAsB,gBAAgB,CACpC,IAAU,EACV,MAA8B;;QAE9B,MAAM,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IAC/C,CAAC;CAAA;AALD,4CAKC;AAED,kBAAe,gBAAgB,CAAC;AACnB,QAAA,gBAAgB,GAAG,IAAA,2BAAkB,EAAC,gBAAgB,CAAC,CAAC"}
1
+ {"version":3,"file":"stories.js","sourceRoot":"","sources":["../../../../../../packages/react-native/src/generators/stories/stories.ts"],"names":[],"mappings":";;;;AAAA,yCAKsB;AACtB,+BAA4B;AAC5B,wEAAyE;AAEzE,wEAGoD;AACpD,mEAAsE;AACtE,uCAAwC;AAExC,SAAsB,gBAAgB,CACpC,IAAU,EACV,WAAmB,EACnB,WAAsB;;QAEtB,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QACnC,MAAM,oBAAoB,GAAG,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QAEvD,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,oBAAoB,CAAC;QAClD,MAAM,WAAW,GAAG,IAAA,yBAAe,EAAC,oBAAoB,CAAC,CAAC;QAE1D,IAAI,cAAc,GAAa,EAAE,CAAC;QAClC,IAAA,6BAAoB,EAAC,IAAI,EAAE,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE;YAC/C,IAAI,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;gBAAE,OAAO;YAErE,IACE,CAAC,IAAI,CAAC,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4CAgDC;AAED,SAAsB,gBAAgB,CACpC,IAAU,EACV,MAA8B;;QAE9B,MAAM,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;IACnE,CAAC;CAAA;AALD,4CAKC;AAED,kBAAe,gBAAgB,CAAC;AACnB,QAAA,gBAAgB,GAAG,IAAA,2BAAkB,EAAC,gBAAgB,CAAC,CAAC"}
@@ -12,6 +12,7 @@ function generateStories(host, schema) {
12
12
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
13
13
  yield (0, stories_1.default)(host, {
14
14
  project: schema.name,
15
+ ignorePaths: schema.ignorePaths,
15
16
  });
16
17
  });
17
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../../../../packages/react-native/src/generators/storybook-configuration/configuration.ts"],"names":[],"mappings":";;;;AAAA,yCAOsB;AACtB,+CAAyD;AAEzD,gDAAkD;AAClD,6GAAoG;AACpG,yEAAoE;AACpE,6GAAqG;AAIrG,SAAe,eAAe,CAAC,IAAU,EAAE,MAAgC;;QACzE,MAAM,IAAA,iBAAgB,EAAC,IAAI,EAAE;YAC3B,OAAO,EAAE,MAAM,CAAC,IAAI;SACrB,CAAC,CAAC;IACL,CAAC;CAAA;AAED,SAAsB,+BAA+B,CACnD,IAAU,EACV,MAAgC;;QAEhC,MAAM,WAAW,GAAG,MAAM,IAAA,kCAAsB,EAAC,IAAI,EAAE;YACrD,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,WAAW,EAAE,yBAAyB;YACtC,gBAAgB,EAAE,KAAK;YACvB,EAAE,EAAE,KAAK;YACT,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;YACzC,eAAe,EAAE,MAAM,CAAC,eAAe;SACxC,CAAC,CAAC;QAEH,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;QACpC,IAAA,6CAAoB,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACnC,IAAA,8EAAmC,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAClD,IAAA,6EAAkC,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAEjD,IAAI,MAAM,CAAC,eAAe,EAAE;YAC1B,MAAM,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;SACrC;QAED,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QACxB,OAAO,WAAW,CAAC;IACrB,CAAC;CAAA;AAzBD,0EAyBC;AAED,SAAS,gBAAgB,CAAC,IAAU,EAAE,WAAmB;IACvD,MAAM,aAAa,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,WAAW,CAAC,CAAC;IAClE,aAAa,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG;QACnC,QAAQ,EAAE,8BAA8B;QACxC,OAAO,EAAE;YACP,SAAS,EAAE,aAAa,CAAC,IAAI;YAC7B,UAAU,EAAE,8BAA8B;YAC1C,OAAO,EAAE,kCAAkC;YAC3C,MAAM,EAAE,KAAK;SACd;KACF,CAAC;IAEF,IAAA,mCAA0B,EAAC,IAAI,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC;AAC/D,CAAC;AAED,kBAAe,+BAA+B,CAAC;AAClC,QAAA,+BAA+B,GAAG,IAAA,2BAAkB,EAC/D,+BAA+B,CAChC,CAAC"}
1
+ {"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../../../../packages/react-native/src/generators/storybook-configuration/configuration.ts"],"names":[],"mappings":";;;;AAAA,yCAOsB;AACtB,+CAAyD;AAEzD,gDAAkD;AAClD,6GAAoG;AACpG,yEAAoE;AACpE,6GAAqG;AAIrG,SAAe,eAAe,CAAC,IAAU,EAAE,MAAgC;;QACzE,MAAM,IAAA,iBAAgB,EAAC,IAAI,EAAE;YAC3B,OAAO,EAAE,MAAM,CAAC,IAAI;YACpB,WAAW,EAAE,MAAM,CAAC,WAAW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CAAC;AAC/D,CAAC;AAED,kBAAe,+BAA+B,CAAC;AAClC,QAAA,+BAA+B,GAAG,IAAA,2BAAkB,EAC/D,+BAA+B,CAChC,CAAC"}
@@ -7,4 +7,5 @@ export interface StorybookConfigureSchema {
7
7
  tsConfiguration?: boolean;
8
8
  linter?: Linter;
9
9
  standaloneConfig?: boolean;
10
+ ignorePaths?: string[];
10
11
  }
@@ -42,6 +42,21 @@
42
42
  "standaloneConfig": {
43
43
  "description": "Split the project configuration into `<projectRoot>/project.json` rather than including it inside `workspace.json`.",
44
44
  "type": "boolean"
45
+ },
46
+ "ignorePaths": {
47
+ "type": "array",
48
+ "description": "Paths to ignore when looking for components.",
49
+ "items": {
50
+ "type": "string",
51
+ "description": "Path to ignore."
52
+ },
53
+ "examples": [
54
+ "apps/my-app/src/not-stories/**",
55
+ "**/**/src/**/not-stories/**",
56
+ "libs/my-lib/**/*.something.ts",
57
+ "**/**/src/**/*.other.*",
58
+ "libs/my-lib/src/not-stories/**,**/**/src/**/*.other.*,apps/my-app/**/*.something.ts"
59
+ ]
45
60
  }
46
61
  },
47
62
  "required": ["name"]