@nrwl/react 13.10.2 → 14.0.0-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/README.md +1 -1
- package/generators.json +0 -14
- package/index.d.ts +0 -1
- package/index.js +1 -3
- package/index.js.map +1 -1
- package/package.json +9 -9
- package/src/generators/init/schema.json +1 -1
- package/src/generators/library/schema.json +1 -1
- package/src/utils/versions.js +1 -1
- package/src/generators/storybook-migrate-defaults-5-to-6/migrate-defaults-5-to-6.d.ts +0 -5
- package/src/generators/storybook-migrate-defaults-5-to-6/migrate-defaults-5-to-6.js +0 -16
- package/src/generators/storybook-migrate-defaults-5-to-6/migrate-defaults-5-to-6.js.map +0 -1
- package/src/generators/storybook-migrate-defaults-5-to-6/schema.d.ts +0 -5
- package/src/generators/storybook-migrate-defaults-5-to-6/schema.json +0 -29
package/README.md
CHANGED
|
@@ -79,6 +79,6 @@ A few links to help you get started:
|
|
|
79
79
|
- [Official Nx YouTube Channel](https://www.youtube.com/c/Nrwl_io)
|
|
80
80
|
- [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
|
|
81
81
|
|
|
82
|
-
<p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
|
|
82
|
+
<p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
|
|
83
83
|
width="100%" alt="Nx - Smart, Fast and Extensible Build System"></a></p>
|
|
84
84
|
|
package/generators.json
CHANGED
|
@@ -48,13 +48,6 @@
|
|
|
48
48
|
"hidden": false
|
|
49
49
|
},
|
|
50
50
|
|
|
51
|
-
"storybook-migrate-defaults-5-to-6": {
|
|
52
|
-
"factory": "./src/generators/storybook-migrate-defaults-5-to-6/migrate-defaults-5-to-6#storybookMigration5to6Schematic",
|
|
53
|
-
"schema": "./src/generators/storybook-migrate-defaults-5-to-6/schema.json",
|
|
54
|
-
"description": "Generate default Storybook configuration files using Storybook version >=6.x specs, for projects that already have Storybook instances and configurations of versions <6.x.",
|
|
55
|
-
"hidden": false
|
|
56
|
-
},
|
|
57
|
-
|
|
58
51
|
"component-story": {
|
|
59
52
|
"factory": "./src/generators/component-story/component-story#componentStorySchematic",
|
|
60
53
|
"schema": "./src/generators/component-story/schema.json",
|
|
@@ -129,13 +122,6 @@
|
|
|
129
122
|
"hidden": false
|
|
130
123
|
},
|
|
131
124
|
|
|
132
|
-
"storybook-migrate-defaults-5-to-6": {
|
|
133
|
-
"factory": "./src/generators/storybook-migrate-defaults-5-to-6/migrate-defaults-5-to-6#storybookMigration5to6Generator",
|
|
134
|
-
"schema": "./src/generators/storybook-migrate-defaults-5-to-6/schema.json",
|
|
135
|
-
"description": "Generate default Storybook configuration files using Storybook version `>=6.x` specs, for projects that already have Storybook instances and configurations of versions `<6.x`.",
|
|
136
|
-
"hidden": false
|
|
137
|
-
},
|
|
138
|
-
|
|
139
125
|
"component-story": {
|
|
140
126
|
"factory": "./src/generators/component-story/component-story#componentStoryGenerator",
|
|
141
127
|
"schema": "./src/generators/component-story/schema.json",
|
package/index.d.ts
CHANGED
|
@@ -12,6 +12,5 @@ export { reactInitGenerator } from './src/generators/init/init';
|
|
|
12
12
|
export { reduxGenerator } from './src/generators/redux/redux';
|
|
13
13
|
export { storiesGenerator } from './src/generators/stories/stories';
|
|
14
14
|
export { storybookConfigurationGenerator } from './src/generators/storybook-configuration/configuration';
|
|
15
|
-
export { storybookMigration5to6Generator } from './src/generators/storybook-migrate-defaults-5-to-6/migrate-defaults-5-to-6';
|
|
16
15
|
export { mfeHostGenerator } from './src/generators/mfe-host/mfe-host';
|
|
17
16
|
export type { SupportedStyles } from './typings/style';
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mfeHostGenerator = exports.
|
|
3
|
+
exports.mfeHostGenerator = exports.storybookConfigurationGenerator = exports.storiesGenerator = exports.reduxGenerator = exports.reactInitGenerator = exports.libraryGenerator = exports.componentStoryGenerator = exports.componentCypressGenerator = exports.hookGenerator = exports.componentGenerator = exports.applicationGenerator = exports.reactVersion = exports.reactDomVersion = exports.assertValidStyle = exports.CSS_IN_JS_DEPENDENCIES = exports.createReactEslintJson = exports.extraEslintDependencies = void 0;
|
|
4
4
|
var lint_1 = require("./src/utils/lint");
|
|
5
5
|
Object.defineProperty(exports, "extraEslintDependencies", { enumerable: true, get: function () { return lint_1.extraEslintDependencies; } });
|
|
6
6
|
Object.defineProperty(exports, "createReactEslintJson", { enumerable: true, get: function () { return lint_1.createReactEslintJson; } });
|
|
@@ -31,8 +31,6 @@ var stories_1 = require("./src/generators/stories/stories");
|
|
|
31
31
|
Object.defineProperty(exports, "storiesGenerator", { enumerable: true, get: function () { return stories_1.storiesGenerator; } });
|
|
32
32
|
var configuration_1 = require("./src/generators/storybook-configuration/configuration");
|
|
33
33
|
Object.defineProperty(exports, "storybookConfigurationGenerator", { enumerable: true, get: function () { return configuration_1.storybookConfigurationGenerator; } });
|
|
34
|
-
var migrate_defaults_5_to_6_1 = require("./src/generators/storybook-migrate-defaults-5-to-6/migrate-defaults-5-to-6");
|
|
35
|
-
Object.defineProperty(exports, "storybookMigration5to6Generator", { enumerable: true, get: function () { return migrate_defaults_5_to_6_1.storybookMigration5to6Generator; } });
|
|
36
34
|
var mfe_host_1 = require("./src/generators/mfe-host/mfe-host");
|
|
37
35
|
Object.defineProperty(exports, "mfeHostGenerator", { enumerable: true, get: function () { return mfe_host_1.mfeHostGenerator; } });
|
|
38
36
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/react/index.ts"],"names":[],"mappings":";;;AAAA,yCAG0B;AAFxB,+GAAA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kB,OAAA;AAC3B,sDAA8D;AAArD,uGAAA,cAAc,OAAA;AACvB,4DAAoE;AAA3D,2GAAA,gBAAgB,OAAA;AACzB,wFAAyG;AAAhG,gIAAA,+BAA+B,OAAA;AACxC,+DAAsE;AAA7D,4GAAA,gBAAgB,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.0-beta.0",
|
|
4
4
|
"description": "The React plugin contains executors and generators for managing React applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Jest, Cypress, and Storybook.\n\n- Generators for applications, libraries, components, hooks, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/core": "^7.15.0",
|
|
34
34
|
"@babel/preset-react": "^7.14.5",
|
|
35
|
-
"@nrwl/cypress": "
|
|
36
|
-
"@nrwl/devkit": "
|
|
37
|
-
"@nrwl/jest": "
|
|
38
|
-
"@nrwl/js": "
|
|
39
|
-
"@nrwl/linter": "
|
|
40
|
-
"@nrwl/storybook": "
|
|
41
|
-
"@nrwl/web": "
|
|
42
|
-
"@nrwl/workspace": "
|
|
35
|
+
"@nrwl/cypress": "14.0.0-beta.0",
|
|
36
|
+
"@nrwl/devkit": "14.0.0-beta.0",
|
|
37
|
+
"@nrwl/jest": "14.0.0-beta.0",
|
|
38
|
+
"@nrwl/js": "14.0.0-beta.0",
|
|
39
|
+
"@nrwl/linter": "14.0.0-beta.0",
|
|
40
|
+
"@nrwl/storybook": "14.0.0-beta.0",
|
|
41
|
+
"@nrwl/web": "14.0.0-beta.0",
|
|
42
|
+
"@nrwl/workspace": "14.0.0-beta.0",
|
|
43
43
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.1",
|
|
44
44
|
"@svgr/webpack": "^6.1.2",
|
|
45
45
|
"chalk": "4.1.0",
|
package/src/utils/versions.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.babelPluginStyledComponentsVersion = exports.eslintPluginReactHooksVersion = exports.eslintPluginReactVersion = exports.eslintPluginJsxA11yVersion = exports.eslintPluginImportVersion = exports.reactTestRendererVersion = exports.reactReduxVersion = exports.reduxjsToolkitVersion = exports.testingLibraryReactHooksVersion = exports.testingLibraryReactVersion = exports.typesReactRouterDomVersion = exports.reactRouterDomVersion = exports.styledJsxVersion = exports.emotionBabelPlugin = exports.emotionReactVersion = exports.emotionStyledVersion = exports.typesStyledComponentsVersion = exports.styledComponentsVersion = exports.typesReactIsVersion = exports.typesReactDomVersion = exports.typesReactVersion = exports.reactIsVersion = exports.reactDomVersion = exports.reactVersion = exports.nxVersion = void 0;
|
|
4
|
-
exports.nxVersion = '
|
|
4
|
+
exports.nxVersion = '14.0.0-beta.0';
|
|
5
5
|
exports.reactVersion = '18.0.0';
|
|
6
6
|
exports.reactDomVersion = '18.0.0';
|
|
7
7
|
exports.reactIsVersion = '18.0.0';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { StorybookMigrateDefault5to6Schema } from './schema';
|
|
2
|
-
import { Tree } from '@nrwl/devkit';
|
|
3
|
-
export declare function storybookMigration5to6Generator(host: Tree, schema: StorybookMigrateDefault5to6Schema): import("@nrwl/devkit").GeneratorCallback;
|
|
4
|
-
export default storybookMigration5to6Generator;
|
|
5
|
-
export declare const storybookMigration5to6Schematic: (generatorOptions: StorybookMigrateDefault5to6Schema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.storybookMigration5to6Schematic = exports.storybookMigration5to6Generator = void 0;
|
|
4
|
-
const devkit_1 = require("@nrwl/devkit");
|
|
5
|
-
const storybook_1 = require("@nrwl/storybook");
|
|
6
|
-
function storybookMigration5to6Generator(host, schema) {
|
|
7
|
-
return (0, storybook_1.migrateDefaultsGenerator)(host, {
|
|
8
|
-
name: schema.name,
|
|
9
|
-
all: schema.all,
|
|
10
|
-
keepOld: schema.keepOld,
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
exports.storybookMigration5to6Generator = storybookMigration5to6Generator;
|
|
14
|
-
exports.default = storybookMigration5to6Generator;
|
|
15
|
-
exports.storybookMigration5to6Schematic = (0, devkit_1.convertNxGenerator)(storybookMigration5to6Generator);
|
|
16
|
-
//# sourceMappingURL=migrate-defaults-5-to-6.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-defaults-5-to-6.js","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/storybook-migrate-defaults-5-to-6/migrate-defaults-5-to-6.ts"],"names":[],"mappings":";;;AAEA,yCAAwD;AACxD,+CAA2D;AAE3D,SAAgB,+BAA+B,CAC7C,IAAU,EACV,MAAyC;IAEzC,OAAO,IAAA,oCAAwB,EAAC,IAAI,EAAE;QACpC,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,GAAG,EAAE,MAAM,CAAC,GAAG;QACf,OAAO,EAAE,MAAM,CAAC,OAAO;KACxB,CAAC,CAAC;AACL,CAAC;AATD,0EASC;AAED,kBAAe,+BAA+B,CAAC;AAClC,QAAA,+BAA+B,GAAG,IAAA,2BAAkB,EAC/D,+BAA+B,CAChC,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"cli": "nx",
|
|
4
|
-
"$id": "storybook-migrate-defaults-5-to-6",
|
|
5
|
-
"title": "Storybook migrate defaults 5 to 6",
|
|
6
|
-
"description": "Generate default Storybook configuration files using Storybook version `>=6.x` specs, for projects that already have Storybook instances and configurations of versions `<6.x`.",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"properties": {
|
|
9
|
-
"all": {
|
|
10
|
-
"type": "boolean",
|
|
11
|
-
"description": "Generate new Storybook configurations for all Storybook instances across all apps and libs.",
|
|
12
|
-
"default": true
|
|
13
|
-
},
|
|
14
|
-
"keepOld": {
|
|
15
|
-
"type": "boolean",
|
|
16
|
-
"description": "Keep the old configuration files - put them in a folder called `.old_storybook`.",
|
|
17
|
-
"default": true
|
|
18
|
-
},
|
|
19
|
-
"name": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"description": "Leave empty to upgrade all Storybook instances. Only use this if you want to do a gradual migration. Library or application name for which you want to generate the new Storybook configuration.",
|
|
22
|
-
"$default": {
|
|
23
|
-
"$source": "argv",
|
|
24
|
-
"index": 0
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"required": []
|
|
29
|
-
}
|