@nrwl/react 13.10.0-beta.6 → 13.10.0-beta.9
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/generators.json +20 -20
- package/migrations.json +35 -415
- package/package.json +10 -10
- package/plugins/storybook/index.js +5 -5
- package/plugins/storybook/index.js.map +1 -1
- package/src/generators/application/schema.json +14 -13
- package/src/generators/component/schema.json +11 -10
- package/src/generators/component-cypress-spec/schema.json +3 -1
- package/src/generators/component-story/schema.json +3 -1
- package/src/generators/hook/schema.json +7 -6
- package/src/generators/init/schema.json +2 -1
- package/src/generators/library/schema.json +12 -11
- package/src/generators/redux/schema.json +2 -0
- package/src/generators/stories/schema.json +5 -3
- package/src/generators/storybook-configuration/schema.json +6 -4
- package/src/generators/storybook-migrate-defaults-5-to-6/schema.json +3 -1
- package/src/migrations/update-13-10-0/update-13-10-0.d.ts +3 -0
- package/src/migrations/update-13-10-0/update-13-10-0.js +28 -0
- package/src/migrations/update-13-10-0/update-13-10-0.js.map +1 -0
- package/src/utils/versions.d.ts +10 -10
- package/src/utils/versions.js +11 -11
- package/src/migrations/update-10-4-0/update-10-4-0.d.ts +0 -2
- package/src/migrations/update-10-4-0/update-10-4-0.js +0 -13
- package/src/migrations/update-10-4-0/update-10-4-0.js.map +0 -1
- package/src/migrations/update-11-0-0/rename-emotion-packages-11-0-0.d.ts +0 -1
- package/src/migrations/update-11-0-0/rename-emotion-packages-11-0-0.js +0 -15
- package/src/migrations/update-11-0-0/rename-emotion-packages-11-0-0.js.map +0 -1
- package/src/migrations/update-11-0-0/update-11-0-0.d.ts +0 -2
- package/src/migrations/update-11-0-0/update-11-0-0.js +0 -13
- package/src/migrations/update-11-0-0/update-11-0-0.js.map +0 -1
- package/src/migrations/update-11-2-0/move-react-redux-types-package-11-2-0.d.ts +0 -1
- package/src/migrations/update-11-2-0/move-react-redux-types-package-11-2-0.js +0 -13
- package/src/migrations/update-11-2-0/move-react-redux-types-package-11-2-0.js.map +0 -1
- package/src/migrations/update-8-10-0/update-8-10-0.d.ts +0 -2
- package/src/migrations/update-8-10-0/update-8-10-0.js +0 -70
- package/src/migrations/update-8-10-0/update-8-10-0.js.map +0 -1
- package/src/migrations/update-8-10-1/fix-react-tsconfig-8-10-1.d.ts +0 -2
- package/src/migrations/update-8-10-1/fix-react-tsconfig-8-10-1.js +0 -38
- package/src/migrations/update-8-10-1/fix-react-tsconfig-8-10-1.js.map +0 -1
- package/src/migrations/update-8-12-0/fix-react-files-8-12-0.d.ts +0 -2
- package/src/migrations/update-8-12-0/fix-react-files-8-12-0.js +0 -28
- package/src/migrations/update-8-12-0/fix-react-files-8-12-0.js.map +0 -1
- package/src/migrations/update-8-12-0/update-8-12-0.d.ts +0 -2
- package/src/migrations/update-8-12-0/update-8-12-0.js +0 -13
- package/src/migrations/update-8-12-0/update-8-12-0.js.map +0 -1
- package/src/migrations/update-8-3-0/update-8-3-0.d.ts +0 -2
- package/src/migrations/update-8-3-0/update-8-3-0.js +0 -93
- package/src/migrations/update-8-3-0/update-8-3-0.js.map +0 -1
- package/src/migrations/update-8-5-0/update-workspace-8-5-0.d.ts +0 -2
- package/src/migrations/update-8-5-0/update-workspace-8-5-0.js +0 -30
- package/src/migrations/update-8-5-0/update-workspace-8-5-0.js.map +0 -1
- package/src/migrations/update-8-7-0/update-8-7-0.d.ts +0 -2
- package/src/migrations/update-8-7-0/update-8-7-0.js +0 -27
- package/src/migrations/update-8-7-0/update-8-7-0.js.map +0 -1
- package/src/migrations/update-8-9-0/update-8-9-0.d.ts +0 -2
- package/src/migrations/update-8-9-0/update-8-9-0.js +0 -73
- package/src/migrations/update-8-9-0/update-8-9-0.js.map +0 -1
- package/src/migrations/update-9-4-0/babelrc-9-4-0.d.ts +0 -2
- package/src/migrations/update-9-4-0/babelrc-9-4-0.js +0 -100
- package/src/migrations/update-9-4-0/babelrc-9-4-0.js.map +0 -1
- package/src/migrations/update-9-4-0/update-9-4-0.d.ts +0 -2
- package/src/migrations/update-9-4-0/update-9-4-0.js +0 -13
- package/src/migrations/update-9-4-0/update-9-4-0.js.map +0 -1
- package/src/migrations/update-9-5-0/update-9-5-0.d.ts +0 -2
- package/src/migrations/update-9-5-0/update-9-5-0.js +0 -13
- package/src/migrations/update-9-5-0/update-9-5-0.js.map +0 -1
|
@@ -17,7 +17,7 @@ const babelDefault = () => {
|
|
|
17
17
|
// Add babel plugin for styled-components or emotion.
|
|
18
18
|
// We don't have a good way to know when a project uses one or the other, so
|
|
19
19
|
// add the plugin only if the other style package isn't used.
|
|
20
|
-
const packageJson = (0, devkit_1.readJsonFile)((0, path_1.join)(devkit_2.
|
|
20
|
+
const packageJson = (0, devkit_1.readJsonFile)((0, path_1.join)(devkit_2.workspaceRoot, 'package.json'));
|
|
21
21
|
const deps = Object.assign(Object.assign({}, packageJson.dependencies), packageJson.devDependencies);
|
|
22
22
|
const hasStyledComponents = !!deps['styled-components'];
|
|
23
23
|
const plugins = [];
|
|
@@ -61,7 +61,7 @@ const webpack = (storybookWebpackConfig = {}, options) => tslib_1.__awaiter(void
|
|
|
61
61
|
// doesn't work with `@emotion/*` >= v11
|
|
62
62
|
// this is a workaround to fix that
|
|
63
63
|
let resolvedEmotionAliases = {};
|
|
64
|
-
const packageJson = (0, devkit_1.readJsonFile)((0, path_1.join)(devkit_2.
|
|
64
|
+
const packageJson = (0, devkit_1.readJsonFile)((0, path_1.join)(devkit_2.workspaceRoot, 'package.json'));
|
|
65
65
|
const deps = Object.assign(Object.assign({}, packageJson.dependencies), packageJson.devDependencies);
|
|
66
66
|
const emotionReactVersion = deps['@emotion/react'];
|
|
67
67
|
if (emotionReactVersion &&
|
|
@@ -71,9 +71,9 @@ const webpack = (storybookWebpackConfig = {}, options) => tslib_1.__awaiter(void
|
|
|
71
71
|
resolvedEmotionAliases = {
|
|
72
72
|
resolve: {
|
|
73
73
|
alias: {
|
|
74
|
-
'@emotion/core': (0, devkit_1.joinPathFragments)(devkit_2.
|
|
75
|
-
'@emotion/styled': (0, devkit_1.joinPathFragments)(devkit_2.
|
|
76
|
-
'emotion-theming': (0, devkit_1.joinPathFragments)(devkit_2.
|
|
74
|
+
'@emotion/core': (0, devkit_1.joinPathFragments)(devkit_2.workspaceRoot, 'node_modules', '@emotion/react'),
|
|
75
|
+
'@emotion/styled': (0, devkit_1.joinPathFragments)(devkit_2.workspaceRoot, 'node_modules', '@emotion/styled'),
|
|
76
|
+
'emotion-theming': (0, devkit_1.joinPathFragments)(devkit_2.workspaceRoot, 'node_modules', '@emotion/react'),
|
|
77
77
|
},
|
|
78
78
|
},
|
|
79
79
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/react/plugins/storybook/index.ts"],"names":[],"mappings":";;;;AAAA,yCAA+D;AAC/D,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/react/plugins/storybook/index.ts"],"names":[],"mappings":";;;;AAAA,yCAA+D;AAC/D,yCAA6C;AAC7C,uDAAmE;AACnE,+DAAkE;AAClE,+EAAsF;AACtF,wDAAgD;AAChD,+BAA4B;AAC5B,mCAA6B;AAE7B,8CAA8C;AAC9C,mDAA+C;AAE/C,MAAM,kBAAkB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AAE1C,MAAM,YAAY,GAAG,GAI1B,EAAE;IACF,qDAAqD;IACrD,4EAA4E;IAC5E,6DAA6D;IAC7D,MAAM,WAAW,GAAG,IAAA,qBAAY,EAAC,IAAA,WAAI,EAAC,sBAAa,EAAE,cAAc,CAAC,CAAC,CAAC;IACtE,MAAM,IAAI,mCAAQ,WAAW,CAAC,YAAY,GAAK,WAAW,CAAC,eAAe,CAAE,CAAC;IAC7E,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAExD,MAAM,OAAO,GAAG,EAAE,CAAC;IACnB,IAAI,mBAAmB,EAAE;QACvB,OAAO,CAAC,IAAI,CAAC,CAAC,mBAAmB,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;KACrD;IAED,OAAO;QACL,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;KACtB,CAAC;AACJ,CAAC,CAAC;AArBW,QAAA,YAAY,gBAqBvB;AAEK,MAAM,IAAI,GAAG,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,iCAClC,IAAI,KACP,sBAAsB,EAAE,IAAI,IAC5B,CAAC;AAHU,QAAA,IAAI,QAGd;AAEI,MAAM,OAAO,GAAG,CACrB,yBAAwC,EAAE,EAC1C,OAAY,EACY,EAAE;;IAC1B,oBAAM,CAAC,IAAI,CACT,6EAA6E,CAC9E,CAAC;IAEF,MAAM,YAAY,GAAG,IAAA,WAAI,EAAC,OAAO,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;IAE9D,MAAM,cAAc,mCACf,OAAO,KACV,IAAI,EAAE,OAAO,CAAC,SAAS,EACvB,UAAU,EAAE,EAAE,EACd,gBAAgB,EAAE,EAAE,EACpB,SAAS,EAAE;YACT,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,IAAI;YACZ,OAAO,EAAE,KAAK;SACf,EACD,MAAM,EAAE,EAAE,EACV,YAAY,EAAE,EAAE,EAChB,QAAQ,EAAE,YAAY,EACtB,UAAU,EAAE,sBAAsB,CAAC,IAAI,KAAK,YAAY,GACzD,CAAC;IAEF,MAAM,GAAG,GAAG,IAAI,CAAC;IACjB,MAAM,kBAAkB,GAAG,sBAAsB,CAAC,IAAI,KAAK,aAAa,CAAC;IACzE,MAAM,UAAU,GAAG,sBAAsB,CAAC,IAAI,KAAK,YAAY,CAAC;IAEhE,iCAAiC;IACjC,MAAM,iBAAiB,GAAG,YAAY,CAAC,KAAK,CAAC;QAC3C,IAAA,8BAAqB,EAAC,cAAc,EAAE;YACpC,GAAG;YACH,kBAAkB;YAClB,aAAa,EAAE,IAAI;SACpB,CAAC;QACF,IAAA,6BAAgB,EACd,OAAO,CAAC,aAAa,EACrB,OAAO,CAAC,SAAS,EACjB,cAAc,EACd,UAAU,CACX;KACF,CAAC,CAAC;IAEH,0CAA0C;IAC1C,MAAM,WAAW,GAAG,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;IAE1D,mFAAmF;IACnF,6FAA6F;IAC7F,wCAAwC;IACxC,mCAAmC;IACnC,IAAI,sBAAsB,GAAG,EAAE,CAAC;IAChC,MAAM,WAAW,GAAG,IAAA,qBAAY,EAAC,IAAA,WAAI,EAAC,sBAAa,EAAE,cAAc,CAAC,CAAC,CAAC;IACtE,MAAM,IAAI,mCAAQ,WAAW,CAAC,YAAY,GAAK,WAAW,CAAC,eAAe,CAAE,CAAC;IAE7E,MAAM,mBAAmB,GAAG,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACnD,IACE,mBAAmB;QACnB,IAAA,YAAG,EACD,IAAA,uCAAuB,EAAC,gBAAgB,EAAE,mBAAmB,CAAC,EAC9D,QAAQ,CACT,EACD;QACA,MAAM,OAAO,GAAG,IAAA,qBAAY,EAC1B,IAAA,0BAAiB,EAAC,OAAO,CAAC,SAAS,EAAE,KAAK,EAAE,UAAU,CAAC,CACxD,CAAC;QACF,IAAI,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,0CAAE,QAAQ,CAAC,uBAAuB,CAAC,EAAE;YACvD,sBAAsB,GAAG;gBACvB,OAAO,EAAE;oBACP,KAAK,EAAE;wBACL,eAAe,EAAE,IAAA,0BAAiB,EAChC,sBAAa,EACb,cAAc,EACd,gBAAgB,CACjB;wBACD,iBAAiB,EAAE,IAAA,0BAAiB,EAClC,sBAAa,EACb,cAAc,EACd,iBAAiB,CAClB;wBACD,iBAAiB,EAAE,IAAA,0BAAiB,EAClC,sBAAa,EACb,cAAc,EACd,gBAAgB,CACjB;qBACF;iBACF;aACF,CAAC;SACH;KACF;IACD,OAAO,YAAY,CAAC,KAAK,iCAElB,sBAAsB,KACzB,MAAM,kCACD,sBAAsB,CAAC,MAAM,KAChC,KAAK,EAAE;gBACL,GAAG,sBAAsB,CAAC,MAAM,CAAC,KAAK;gBACtC,GAAG,WAAW,CAAC,MAAM,CAAC,KAAK;aAC5B,KAEH,OAAO,kCACF,sBAAsB,CAAC,OAAO,KACjC,OAAO,EAAE,IAAA,4BAAY,EACnB,GAAI,CAAC,MAAA,sBAAsB,CAAC,OAAO,CAAC,OAAO,mCACzC,EAAE,CAAwC,EAC5C,GAAG,CAAC,MAAA,WAAW,CAAC,OAAO,CAAC,OAAO,mCAAI,EAAE,CAAC,CACvC,KAEH,OAAO,EAAE,IAAA,4BAAY,EACnB,GAAG,CAAC,MAAA,sBAAsB,CAAC,OAAO,mCAAI,EAAE,CAAC,EACzC,GAAG,CAAC,MAAA,WAAW,CAAC,OAAO,mCAAI,EAAE,CAAC,CAC/B,KAEH,sBAAsB,CACvB,CAAC;AACJ,CAAC,CAAA,CAAC;AArHW,QAAA,OAAO,WAqHlB"}
|
|
@@ -2,18 +2,19 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
3
|
"cli": "nx",
|
|
4
4
|
"$id": "NxReactApp",
|
|
5
|
-
"title": "Create a React Application
|
|
5
|
+
"title": "Create a React Application",
|
|
6
|
+
"description": "Create a React application for Nx.",
|
|
6
7
|
"examples": [
|
|
7
8
|
{
|
|
8
|
-
"command": "g app myapp --directory=myorg",
|
|
9
|
-
"description": "Generate apps/myorg/myapp and apps/myorg/myapp-e2e"
|
|
9
|
+
"command": "nx g app myapp --directory=myorg",
|
|
10
|
+
"description": "Generate `apps/myorg/myapp` and `apps/myorg/myapp-e2e`"
|
|
10
11
|
},
|
|
11
12
|
{
|
|
12
|
-
"command": "g app myapp --classComponent",
|
|
13
|
+
"command": "nx g app myapp --classComponent",
|
|
13
14
|
"description": "Use class components instead of functional components"
|
|
14
15
|
},
|
|
15
16
|
{
|
|
16
|
-
"command": "g app myapp --routing",
|
|
17
|
+
"command": "nx g app myapp --routing",
|
|
17
18
|
"description": "Set up React Router"
|
|
18
19
|
}
|
|
19
20
|
],
|
|
@@ -96,7 +97,7 @@
|
|
|
96
97
|
"default": false
|
|
97
98
|
},
|
|
98
99
|
"skipWorkspaceJson": {
|
|
99
|
-
"description": "Skip updating workspace.json with default options based on values provided to this app (e.g. babel, style).",
|
|
100
|
+
"description": "Skip updating `workspace.json` with default options based on values provided to this app (e.g. babel, style).",
|
|
100
101
|
"type": "boolean",
|
|
101
102
|
"default": false
|
|
102
103
|
},
|
|
@@ -109,7 +110,7 @@
|
|
|
109
110
|
"e2eTestRunner": {
|
|
110
111
|
"type": "string",
|
|
111
112
|
"enum": ["cypress", "none"],
|
|
112
|
-
"description": "Test runner to use for end to end (
|
|
113
|
+
"description": "Test runner to use for end to end (E2E) tests.",
|
|
113
114
|
"default": "cypress"
|
|
114
115
|
},
|
|
115
116
|
"tags": {
|
|
@@ -119,7 +120,7 @@
|
|
|
119
120
|
},
|
|
120
121
|
"pascalCaseFiles": {
|
|
121
122
|
"type": "boolean",
|
|
122
|
-
"description": "Use pascal case component file name (e.g. App.tsx).",
|
|
123
|
+
"description": "Use pascal case component file name (e.g. `App.tsx`).",
|
|
123
124
|
"alias": "P",
|
|
124
125
|
"default": false
|
|
125
126
|
},
|
|
@@ -136,26 +137,26 @@
|
|
|
136
137
|
},
|
|
137
138
|
"globalCss": {
|
|
138
139
|
"type": "boolean",
|
|
139
|
-
"description": "Default is false
|
|
140
|
+
"description": "Default is `false`. When `true`, the component is generated with `*.css`/`*.scss` instead of `*.module.css`/`*.module.scss`.",
|
|
140
141
|
"default": false
|
|
141
142
|
},
|
|
142
143
|
"strict": {
|
|
143
144
|
"type": "boolean",
|
|
144
|
-
"description": "Creates an application with strict mode and strict type checking",
|
|
145
|
+
"description": "Creates an application with strict mode and strict type checking.",
|
|
145
146
|
"default": true
|
|
146
147
|
},
|
|
147
148
|
"setParserOptionsProject": {
|
|
148
149
|
"type": "boolean",
|
|
149
|
-
"description": "Whether or not to configure the ESLint
|
|
150
|
+
"description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
|
|
150
151
|
"default": false
|
|
151
152
|
},
|
|
152
153
|
"standaloneConfig": {
|
|
153
|
-
"description": "Split the project configuration into
|
|
154
|
+
"description": "Split the project configuration into `<projectRoot>/project.json` rather than including it inside `workspace.json`.",
|
|
154
155
|
"type": "boolean"
|
|
155
156
|
},
|
|
156
157
|
"compiler": {
|
|
157
158
|
"type": "string",
|
|
158
|
-
"description": "The compiler to use",
|
|
159
|
+
"description": "The compiler to use.",
|
|
159
160
|
"enum": ["babel", "swc"],
|
|
160
161
|
"default": "babel"
|
|
161
162
|
}
|
|
@@ -2,16 +2,17 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
3
|
"cli": "nx",
|
|
4
4
|
"$id": "NxReactComponent",
|
|
5
|
-
"title": "Create a React Component
|
|
5
|
+
"title": "Create a React Component",
|
|
6
|
+
"description": "Create a React Component for Nx.",
|
|
6
7
|
"type": "object",
|
|
7
8
|
"examples": [
|
|
8
9
|
{
|
|
9
|
-
"command": "g component my-component --project=mylib",
|
|
10
|
-
"description": "Generate a component in the mylib library"
|
|
10
|
+
"command": "nx g component my-component --project=mylib",
|
|
11
|
+
"description": "Generate a component in the `mylib` library"
|
|
11
12
|
},
|
|
12
13
|
{
|
|
13
|
-
"command": "g component my-component --project=mylib --classComponent",
|
|
14
|
-
"description": "Generate a class component in the mylib library"
|
|
14
|
+
"command": "nx g component my-component --project=mylib --classComponent",
|
|
15
|
+
"description": "Generate a class component in the `mylib` library"
|
|
15
16
|
}
|
|
16
17
|
],
|
|
17
18
|
"properties": {
|
|
@@ -81,7 +82,7 @@
|
|
|
81
82
|
},
|
|
82
83
|
"skipTests": {
|
|
83
84
|
"type": "boolean",
|
|
84
|
-
"description": "When true, does not create
|
|
85
|
+
"description": "When true, does not create `spec.ts` test files for the new component.",
|
|
85
86
|
"default": false
|
|
86
87
|
},
|
|
87
88
|
"directory": {
|
|
@@ -96,20 +97,20 @@
|
|
|
96
97
|
},
|
|
97
98
|
"export": {
|
|
98
99
|
"type": "boolean",
|
|
99
|
-
"description": "When true, the component is exported from the project index.ts (if it exists).",
|
|
100
|
+
"description": "When true, the component is exported from the project `index.ts` (if it exists).",
|
|
100
101
|
"alias": "e",
|
|
101
102
|
"default": false,
|
|
102
103
|
"x-prompt": "Should this component be exported in the project?"
|
|
103
104
|
},
|
|
104
105
|
"pascalCaseFiles": {
|
|
105
106
|
"type": "boolean",
|
|
106
|
-
"description": "Use pascal case component file name (e.g. App.tsx).",
|
|
107
|
+
"description": "Use pascal case component file name (e.g. `App.tsx`).",
|
|
107
108
|
"alias": "P",
|
|
108
109
|
"default": false
|
|
109
110
|
},
|
|
110
111
|
"pascalCaseDirectory": {
|
|
111
112
|
"type": "boolean",
|
|
112
|
-
"description": "Use pascal case directory name (e.g. App/App.tsx).",
|
|
113
|
+
"description": "Use pascal case directory name (e.g. `App/App.tsx`).",
|
|
113
114
|
"alias": "R",
|
|
114
115
|
"default": false
|
|
115
116
|
},
|
|
@@ -125,7 +126,7 @@
|
|
|
125
126
|
},
|
|
126
127
|
"globalCss": {
|
|
127
128
|
"type": "boolean",
|
|
128
|
-
"description": "Default is false
|
|
129
|
+
"description": "Default is `false`. When `true`, the component is generated with `*.css`/`*.scss` instead of `*.module.css`/`*.module.scss`.",
|
|
129
130
|
"default": false
|
|
130
131
|
},
|
|
131
132
|
"fileName": {
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
3
|
"cli": "nx",
|
|
4
4
|
"$id": "NxReactComponentCypressSpec",
|
|
5
|
+
"title": "Create component Cypress spec",
|
|
6
|
+
"description": "Create a Cypress spec for a UI component that has a story.",
|
|
5
7
|
"type": "object",
|
|
6
8
|
"properties": {
|
|
7
9
|
"project": {
|
|
@@ -27,7 +29,7 @@
|
|
|
27
29
|
},
|
|
28
30
|
"cypressProject": {
|
|
29
31
|
"type": "string",
|
|
30
|
-
"description": "The Cypress project to generate the stories under. By default, inferred from
|
|
32
|
+
"description": "The Cypress project to generate the stories under. By default, inferred from `project`."
|
|
31
33
|
}
|
|
32
34
|
},
|
|
33
35
|
"required": ["project", "componentPath"]
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
3
|
"cli": "nx",
|
|
4
4
|
"$id": "NxReactComponentStory",
|
|
5
|
+
"title": "Create component story",
|
|
6
|
+
"description": "Generate storybook story for a react component.",
|
|
5
7
|
"type": "object",
|
|
6
8
|
"properties": {
|
|
7
9
|
"project": {
|
|
@@ -16,7 +18,7 @@
|
|
|
16
18
|
},
|
|
17
19
|
"componentPath": {
|
|
18
20
|
"type": "string",
|
|
19
|
-
"description": "Relative path to the component file from the library root",
|
|
21
|
+
"description": "Relative path to the component file from the library root.",
|
|
20
22
|
"examples": ["lib/components"],
|
|
21
23
|
"x-prompt": "What's path of the component relative to the project's lib root?"
|
|
22
24
|
}
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
"cli": "nx",
|
|
4
4
|
"$id": "NxReactHook",
|
|
5
5
|
"title": "Create a React Hook for Nx",
|
|
6
|
+
"description": "Create a React component using Hooks in a dedicated React project.",
|
|
6
7
|
"type": "object",
|
|
7
8
|
"examples": [
|
|
8
9
|
{
|
|
9
|
-
"command": "g hook my-hook --project=mylib",
|
|
10
|
-
"description": "Generate a hook in the mylib library"
|
|
10
|
+
"command": "nx g hook my-hook --project=mylib",
|
|
11
|
+
"description": "Generate a hook in the `mylib` library"
|
|
11
12
|
}
|
|
12
13
|
],
|
|
13
14
|
"properties": {
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
},
|
|
37
38
|
"skipTests": {
|
|
38
39
|
"type": "boolean",
|
|
39
|
-
"description": "When true, does not create
|
|
40
|
+
"description": "When true, does not create `spec.ts` test files for the new hook.",
|
|
40
41
|
"default": false
|
|
41
42
|
},
|
|
42
43
|
"directory": {
|
|
@@ -51,20 +52,20 @@
|
|
|
51
52
|
},
|
|
52
53
|
"export": {
|
|
53
54
|
"type": "boolean",
|
|
54
|
-
"description": "When true, the hook is exported from the project index.ts (if it exists).",
|
|
55
|
+
"description": "When true, the hook is exported from the project `index.ts` (if it exists).",
|
|
55
56
|
"alias": "e",
|
|
56
57
|
"default": false,
|
|
57
58
|
"x-prompt": "Should this hook be exported in the project?"
|
|
58
59
|
},
|
|
59
60
|
"pascalCaseFiles": {
|
|
60
61
|
"type": "boolean",
|
|
61
|
-
"description": "Use pascal case hook file name (e.g. useHook.ts).",
|
|
62
|
+
"description": "Use pascal case hook file name (e.g. `useHook.ts`).",
|
|
62
63
|
"alias": "P",
|
|
63
64
|
"default": false
|
|
64
65
|
},
|
|
65
66
|
"pascalCaseDirectory": {
|
|
66
67
|
"type": "boolean",
|
|
67
|
-
"description": "Use pascal case directory name (e.g. useHook/useHook.ts).",
|
|
68
|
+
"description": "Use pascal case directory name (e.g. `useHook/useHook.ts`).",
|
|
68
69
|
"alias": "R",
|
|
69
70
|
"default": false
|
|
70
71
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
3
|
"$id": "NxReactNgInit",
|
|
4
4
|
"title": "Init React Plugin",
|
|
5
|
+
"description": "Initialize a React Plugin",
|
|
5
6
|
"cli": "nx",
|
|
6
7
|
"type": "object",
|
|
7
8
|
"properties": {
|
|
@@ -12,7 +13,7 @@
|
|
|
12
13
|
"default": "jest"
|
|
13
14
|
},
|
|
14
15
|
"e2eTestRunner": {
|
|
15
|
-
"description": "Adds the specified
|
|
16
|
+
"description": "Adds the specified E2E test runner.",
|
|
16
17
|
"type": "string",
|
|
17
18
|
"enum": ["cypress", "none"],
|
|
18
19
|
"default": "cypress"
|
|
@@ -2,16 +2,17 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
3
|
"cli": "nx",
|
|
4
4
|
"$id": "NxReactLibrary",
|
|
5
|
-
"title": "Create a React Library
|
|
5
|
+
"title": "Create a React Library",
|
|
6
|
+
"description": "Create a React Library for an Nx workspace",
|
|
6
7
|
"type": "object",
|
|
7
8
|
"examples": [
|
|
8
9
|
{
|
|
9
|
-
"command": "g lib mylib --directory=myapp",
|
|
10
|
-
"description": "Generate libs/myapp/mylib"
|
|
10
|
+
"command": "nx g lib mylib --directory=myapp",
|
|
11
|
+
"description": "Generate `libs/myapp/mylib`"
|
|
11
12
|
},
|
|
12
13
|
{
|
|
13
|
-
"command": "g lib mylib --appProject=myapp",
|
|
14
|
-
"description": "Generate a library with routes and add them to myapp"
|
|
14
|
+
"command": "nx g lib mylib --appProject=myapp",
|
|
15
|
+
"description": "Generate a library with routes and add them to `myapp`"
|
|
15
16
|
}
|
|
16
17
|
],
|
|
17
18
|
"properties": {
|
|
@@ -96,11 +97,11 @@
|
|
|
96
97
|
"skipTsConfig": {
|
|
97
98
|
"type": "boolean",
|
|
98
99
|
"default": false,
|
|
99
|
-
"description": "Do not update tsconfig.json for development experience."
|
|
100
|
+
"description": "Do not update `tsconfig.json` for development experience."
|
|
100
101
|
},
|
|
101
102
|
"pascalCaseFiles": {
|
|
102
103
|
"type": "boolean",
|
|
103
|
-
"description": "Use pascal case component file name (e.g. App.tsx).",
|
|
104
|
+
"description": "Use pascal case component file name (e.g. `App.tsx`).",
|
|
104
105
|
"alias": "P",
|
|
105
106
|
"default": false
|
|
106
107
|
},
|
|
@@ -124,7 +125,7 @@
|
|
|
124
125
|
},
|
|
125
126
|
"importPath": {
|
|
126
127
|
"type": "string",
|
|
127
|
-
"description": "The library name used to import it, like
|
|
128
|
+
"description": "The library name used to import it, like `@myorg/my-awesome-lib`."
|
|
128
129
|
},
|
|
129
130
|
"component": {
|
|
130
131
|
"type": "boolean",
|
|
@@ -138,7 +139,7 @@
|
|
|
138
139
|
},
|
|
139
140
|
"globalCss": {
|
|
140
141
|
"type": "boolean",
|
|
141
|
-
"description": "When true
|
|
142
|
+
"description": "When `true`, the stylesheet is generated using global CSS instead of CSS modules (e.g. file is `*.css` rather than `*.module.css`).",
|
|
142
143
|
"default": false
|
|
143
144
|
},
|
|
144
145
|
"strict": {
|
|
@@ -148,11 +149,11 @@
|
|
|
148
149
|
},
|
|
149
150
|
"setParserOptionsProject": {
|
|
150
151
|
"type": "boolean",
|
|
151
|
-
"description": "Whether or not to configure the ESLint
|
|
152
|
+
"description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
|
|
152
153
|
"default": false
|
|
153
154
|
},
|
|
154
155
|
"standaloneConfig": {
|
|
155
|
-
"description": "Split the project configuration into
|
|
156
|
+
"description": "Split the project configuration into `<projectRoot>/project.json` rather than including it inside `workspace.json`.",
|
|
156
157
|
"type": "boolean"
|
|
157
158
|
},
|
|
158
159
|
"compiler": {
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
3
|
"cli": "nx",
|
|
4
4
|
"$id": "NxReactStorybookStories",
|
|
5
|
+
"title": "Create React Storybook stories",
|
|
6
|
+
"description": "Create stories/specs for all components declared in an app or a library.",
|
|
5
7
|
"type": "object",
|
|
6
8
|
"properties": {
|
|
7
9
|
"project": {
|
|
8
10
|
"type": "string",
|
|
9
|
-
"description": "Library or application name",
|
|
11
|
+
"description": "Library or application name.",
|
|
10
12
|
"$default": {
|
|
11
13
|
"$source": "projectName",
|
|
12
14
|
"index": 0
|
|
@@ -15,12 +17,12 @@
|
|
|
15
17
|
},
|
|
16
18
|
"generateCypressSpecs": {
|
|
17
19
|
"type": "boolean",
|
|
18
|
-
"description": "Automatically generate
|
|
20
|
+
"description": "Automatically generate `*.spec.ts` files in the cypress e2e app generated by the cypress-configure generator.",
|
|
19
21
|
"x-prompt": "Do you want to generate Cypress specs as well?"
|
|
20
22
|
},
|
|
21
23
|
"cypressProject": {
|
|
22
24
|
"type": "string",
|
|
23
|
-
"description": "The Cypress project to generate the stories under. This is inferred from
|
|
25
|
+
"description": "The Cypress project to generate the stories under. This is inferred from `project` by default."
|
|
24
26
|
},
|
|
25
27
|
"js": {
|
|
26
28
|
"type": "boolean",
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
3
|
"cli": "nx",
|
|
4
4
|
"$id": "NxReactStorybookConfigure",
|
|
5
|
+
"title": "React Storybook Configure",
|
|
6
|
+
"description": "Set up Storybook for a React app or library.",
|
|
5
7
|
"type": "object",
|
|
6
8
|
"properties": {
|
|
7
9
|
"name": {
|
|
@@ -20,14 +22,14 @@
|
|
|
20
22
|
},
|
|
21
23
|
"generateStories": {
|
|
22
24
|
"type": "boolean",
|
|
23
|
-
"description": "Automatically generate
|
|
25
|
+
"description": "Automatically generate `*.stories.ts` files for components declared in this project?",
|
|
24
26
|
"x-prompt": "Automatically generate *.stories.ts files for components declared in this project?",
|
|
25
27
|
"default": true
|
|
26
28
|
},
|
|
27
29
|
"generateCypressSpecs": {
|
|
28
30
|
"type": "boolean",
|
|
29
|
-
"description": "Automatically generate
|
|
30
|
-
"x-prompt": "Automatically generate *.spec.ts files in the
|
|
31
|
+
"description": "Automatically generate `*.spec.ts` files in the Cypress E2E app generated by the `cypress-configure` generator.",
|
|
32
|
+
"x-prompt": "Automatically generate *.spec.ts files in the Cypress E2E app generated by the cypress-configure generator?",
|
|
31
33
|
"default": true
|
|
32
34
|
},
|
|
33
35
|
"cypressDirectory": {
|
|
@@ -46,7 +48,7 @@
|
|
|
46
48
|
"default": "eslint"
|
|
47
49
|
},
|
|
48
50
|
"standaloneConfig": {
|
|
49
|
-
"description": "Split the project configuration into
|
|
51
|
+
"description": "Split the project configuration into `<projectRoot>/project.json` rather than including it inside `workspace.json`.",
|
|
50
52
|
"type": "boolean"
|
|
51
53
|
}
|
|
52
54
|
},
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
3
|
"cli": "nx",
|
|
4
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`.",
|
|
5
7
|
"type": "object",
|
|
6
8
|
"properties": {
|
|
7
9
|
"all": {
|
|
@@ -11,7 +13,7 @@
|
|
|
11
13
|
},
|
|
12
14
|
"keepOld": {
|
|
13
15
|
"type": "boolean",
|
|
14
|
-
"description": "Keep the old configuration files - put them in a folder called
|
|
16
|
+
"description": "Keep the old configuration files - put them in a folder called `.old_storybook`.",
|
|
15
17
|
"default": true
|
|
16
18
|
},
|
|
17
19
|
"name": {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateToReact18 = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const devkit_1 = require("@nrwl/devkit");
|
|
6
|
+
// Putting this here because React Native 0.67 is incompatible with React 18.
|
|
7
|
+
// Waiting for 0.68 to come out with support for React 18.
|
|
8
|
+
// TODO(jack): For Nx 14 let's add another migration for React 18 in migrations.json because by then React Native 0.68.0 should be released.
|
|
9
|
+
function updateToReact18(host) {
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
|
+
const { dependencies } = (0, devkit_1.readJson)(host, 'package.json');
|
|
12
|
+
if (dependencies['react-native'] &&
|
|
13
|
+
!dependencies['react-native'].match(/[\^~]?0.68/)) {
|
|
14
|
+
devkit_1.logger.info(`React Native ${dependencies['react-native']} is incompatible with React 18. Skipping update until React Native 0.68.0 is released.`);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
return (0, devkit_1.addDependenciesToPackageJson)(host, {
|
|
18
|
+
react: '18.0.0',
|
|
19
|
+
'react-dom': '18.0.0',
|
|
20
|
+
'react-is': '18.0.0',
|
|
21
|
+
'react-test-renderer': '18.0.0',
|
|
22
|
+
}, {});
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
exports.updateToReact18 = updateToReact18;
|
|
27
|
+
exports.default = updateToReact18;
|
|
28
|
+
//# sourceMappingURL=update-13-10-0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-13-10-0.js","sourceRoot":"","sources":["../../../../../../packages/react/src/migrations/update-13-10-0/update-13-10-0.ts"],"names":[],"mappings":";;;;AAAA,yCAKsB;AAEtB,6EAA6E;AAC7E,0DAA0D;AAC1D,4IAA4I;AAC5I,SAAsB,eAAe,CAAC,IAAU;;QAC9C,MAAM,EAAE,YAAY,EAAE,GAAG,IAAA,iBAAQ,EAAC,IAAI,EAAE,cAAc,CAAC,CAAC;QACxD,IACE,YAAY,CAAC,cAAc,CAAC;YAC5B,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,EACjD;YACA,eAAM,CAAC,IAAI,CACT,gBAAgB,YAAY,CAAC,cAAc,CAAC,wFAAwF,CACrI,CAAC;SACH;aAAM;YACL,OAAO,IAAA,qCAA4B,EACjC,IAAI,EACJ;gBACE,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,QAAQ;gBACrB,UAAU,EAAE,QAAQ;gBACpB,qBAAqB,EAAE,QAAQ;aAChC,EACD,EAAE,CACH,CAAC;SACH;IACH,CAAC;CAAA;AArBD,0CAqBC;AAED,kBAAe,eAAe,CAAC"}
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
export declare const nxVersion = "*";
|
|
2
|
-
export declare const reactVersion = "
|
|
3
|
-
export declare const reactDomVersion = "
|
|
4
|
-
export declare const reactIsVersion = "
|
|
5
|
-
export declare const typesReactVersion = "17.0.
|
|
6
|
-
export declare const typesReactDomVersion = "17.0.
|
|
2
|
+
export declare const reactVersion = "18.0.0";
|
|
3
|
+
export declare const reactDomVersion = "18.0.0";
|
|
4
|
+
export declare const reactIsVersion = "18.0.0";
|
|
5
|
+
export declare const typesReactVersion = "17.0.43";
|
|
6
|
+
export declare const typesReactDomVersion = "17.0.14";
|
|
7
7
|
export declare const typesReactIsVersion = "17.0.3";
|
|
8
|
-
export declare const styledComponentsVersion = "5.3.
|
|
8
|
+
export declare const styledComponentsVersion = "5.3.5";
|
|
9
9
|
export declare const typesStyledComponentsVersion = "5.1.24";
|
|
10
10
|
export declare const emotionStyledVersion = "11.8.1";
|
|
11
11
|
export declare const emotionReactVersion = "11.8.2";
|
|
12
12
|
export declare const emotionBabelPlugin = "11.7.2";
|
|
13
|
-
export declare const styledJsxVersion = "5.0.
|
|
13
|
+
export declare const styledJsxVersion = "5.0.2";
|
|
14
14
|
export declare const reactRouterDomVersion = "5.3.0";
|
|
15
15
|
export declare const typesReactRouterDomVersion = "5.3.3";
|
|
16
16
|
export declare const testingLibraryReactVersion = "12.1.4";
|
|
17
17
|
export declare const testingLibraryReactHooksVersion = "7.0.2";
|
|
18
18
|
export declare const reduxjsToolkitVersion = "1.8.0";
|
|
19
19
|
export declare const reactReduxVersion = "7.2.6";
|
|
20
|
-
export declare const reactTestRendererVersion = "
|
|
20
|
+
export declare const reactTestRendererVersion = "18.0.0";
|
|
21
21
|
export declare const eslintPluginImportVersion = "2.25.4";
|
|
22
22
|
export declare const eslintPluginJsxA11yVersion = "6.5.1";
|
|
23
|
-
export declare const eslintPluginReactVersion = "7.29.
|
|
24
|
-
export declare const eslintPluginReactHooksVersion = "4.
|
|
23
|
+
export declare const eslintPluginReactVersion = "7.29.4";
|
|
24
|
+
export declare const eslintPluginReactHooksVersion = "4.4.0";
|
|
25
25
|
export declare const babelPluginStyledComponentsVersion = "1.10.7";
|
package/src/utils/versions.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
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 = '13.10.0-beta.
|
|
5
|
-
exports.reactVersion = '
|
|
6
|
-
exports.reactDomVersion = '
|
|
7
|
-
exports.reactIsVersion = '
|
|
8
|
-
exports.typesReactVersion = '17.0.
|
|
9
|
-
exports.typesReactDomVersion = '17.0.
|
|
4
|
+
exports.nxVersion = '13.10.0-beta.9';
|
|
5
|
+
exports.reactVersion = '18.0.0';
|
|
6
|
+
exports.reactDomVersion = '18.0.0';
|
|
7
|
+
exports.reactIsVersion = '18.0.0';
|
|
8
|
+
exports.typesReactVersion = '17.0.43';
|
|
9
|
+
exports.typesReactDomVersion = '17.0.14';
|
|
10
10
|
exports.typesReactIsVersion = '17.0.3';
|
|
11
|
-
exports.styledComponentsVersion = '5.3.
|
|
11
|
+
exports.styledComponentsVersion = '5.3.5';
|
|
12
12
|
exports.typesStyledComponentsVersion = '5.1.24';
|
|
13
13
|
exports.emotionStyledVersion = '11.8.1';
|
|
14
14
|
exports.emotionReactVersion = '11.8.2';
|
|
15
15
|
exports.emotionBabelPlugin = '11.7.2';
|
|
16
|
-
exports.styledJsxVersion = '5.0.
|
|
16
|
+
exports.styledJsxVersion = '5.0.2';
|
|
17
17
|
exports.reactRouterDomVersion = '5.3.0';
|
|
18
18
|
exports.typesReactRouterDomVersion = '5.3.3';
|
|
19
19
|
exports.testingLibraryReactVersion = '12.1.4';
|
|
20
20
|
exports.testingLibraryReactHooksVersion = '7.0.2';
|
|
21
21
|
exports.reduxjsToolkitVersion = '1.8.0';
|
|
22
22
|
exports.reactReduxVersion = '7.2.6';
|
|
23
|
-
exports.reactTestRendererVersion = '
|
|
23
|
+
exports.reactTestRendererVersion = '18.0.0';
|
|
24
24
|
exports.eslintPluginImportVersion = '2.25.4';
|
|
25
25
|
exports.eslintPluginJsxA11yVersion = '6.5.1';
|
|
26
|
-
exports.eslintPluginReactVersion = '7.29.
|
|
27
|
-
exports.eslintPluginReactHooksVersion = '4.
|
|
26
|
+
exports.eslintPluginReactVersion = '7.29.4';
|
|
27
|
+
exports.eslintPluginReactHooksVersion = '4.4.0';
|
|
28
28
|
exports.babelPluginStyledComponentsVersion = '1.10.7';
|
|
29
29
|
//# sourceMappingURL=versions.js.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
|
-
const workspace_1 = require("@nrwl/workspace");
|
|
5
|
-
const path = require("path");
|
|
6
|
-
function update() {
|
|
7
|
-
return (0, schematics_1.chain)([
|
|
8
|
-
(0, workspace_1.updatePackagesInPackageJson)(path.join(__dirname, '../../../', 'migrations.json'), '10.4.0'),
|
|
9
|
-
(0, workspace_1.formatFiles)(),
|
|
10
|
-
]);
|
|
11
|
-
}
|
|
12
|
-
exports.default = update;
|
|
13
|
-
//# sourceMappingURL=update-10-4-0.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-10-4-0.js","sourceRoot":"","sources":["../../../../../../packages/react/src/migrations/update-10-4-0/update-10-4-0.ts"],"names":[],"mappings":";;AAAA,2DAAyD;AACzD,+CAA2E;AAC3E,6BAA6B;AAE7B,SAAwB,MAAM;IAC5B,OAAO,IAAA,kBAAK,EAAC;QACX,IAAA,uCAA2B,EACzB,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,EAAE,iBAAiB,CAAC,EACpD,QAAQ,CACT;QACD,IAAA,uBAAW,GAAE;KACd,CAAC,CAAC;AACL,CAAC;AARD,yBAQC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function update(): import("@angular-devkit/schematics").Rule;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
|
-
const workspace_1 = require("@nrwl/workspace");
|
|
5
|
-
const versions_1 = require("../../utils/versions");
|
|
6
|
-
function update() {
|
|
7
|
-
return (0, schematics_1.chain)([
|
|
8
|
-
(0, workspace_1.renameNpmPackages)({
|
|
9
|
-
'@emotion/core': ['@emotion/react', versions_1.emotionReactVersion],
|
|
10
|
-
}),
|
|
11
|
-
(0, workspace_1.formatFiles)(),
|
|
12
|
-
]);
|
|
13
|
-
}
|
|
14
|
-
exports.default = update;
|
|
15
|
-
//# sourceMappingURL=rename-emotion-packages-11-0-0.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rename-emotion-packages-11-0-0.js","sourceRoot":"","sources":["../../../../../../packages/react/src/migrations/update-11-0-0/rename-emotion-packages-11-0-0.ts"],"names":[],"mappings":";;AAAA,2DAAmD;AACnD,+CAAiE;AACjE,mDAA2D;AAE3D,SAAwB,MAAM;IAC5B,OAAO,IAAA,kBAAK,EAAC;QACX,IAAA,6BAAiB,EAAC;YAChB,eAAe,EAAE,CAAC,gBAAgB,EAAE,8BAAmB,CAAC;SACzD,CAAC;QACF,IAAA,uBAAW,GAAE;KACd,CAAC,CAAC;AACL,CAAC;AAPD,yBAOC"}
|