@nrwl/react 14.7.0-beta.2 → 14.7.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/CHANGELOG.md +1 -1
- package/package.json +10 -10
- package/src/generators/cypress-component-configuration/cypress-component-configuration.js +0 -1
- package/src/generators/cypress-component-configuration/cypress-component-configuration.js.map +1 -1
- package/src/generators/cypress-component-configuration/lib/update-configs.d.ts +1 -2
- package/src/generators/cypress-component-configuration/lib/update-configs.js +1 -46
- package/src/generators/cypress-component-configuration/lib/update-configs.js.map +1 -1
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
|
-
|
|
6
|
+
## [14.7.1](https://github.com/nrwl/nx/compare/14.7.0...14.7.1) (2022-09-09)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @nrwl/react
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/react",
|
|
3
|
-
"version": "14.7.
|
|
3
|
+
"version": "14.7.1",
|
|
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": "14.7.
|
|
36
|
-
"@nrwl/devkit": "14.7.
|
|
37
|
-
"@nrwl/jest": "14.7.
|
|
38
|
-
"@nrwl/js": "14.7.
|
|
39
|
-
"@nrwl/linter": "14.7.
|
|
40
|
-
"@nrwl/storybook": "14.7.
|
|
41
|
-
"@nrwl/web": "14.7.
|
|
42
|
-
"@nrwl/workspace": "14.7.
|
|
35
|
+
"@nrwl/cypress": "14.7.1",
|
|
36
|
+
"@nrwl/devkit": "14.7.1",
|
|
37
|
+
"@nrwl/jest": "14.7.1",
|
|
38
|
+
"@nrwl/js": "14.7.1",
|
|
39
|
+
"@nrwl/linter": "14.7.1",
|
|
40
|
+
"@nrwl/storybook": "14.7.1",
|
|
41
|
+
"@nrwl/web": "14.7.1",
|
|
42
|
+
"@nrwl/workspace": "14.7.1",
|
|
43
43
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
|
|
44
44
|
"@svgr/webpack": "^6.1.2",
|
|
45
45
|
"chalk": "4.1.0",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"webpack": "^5.58.1",
|
|
55
55
|
"webpack-merge": "^5.8.0"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "bba29d330c64ca57e8b40908aa601b27d07b67dc"
|
|
58
58
|
}
|
|
@@ -20,7 +20,6 @@ function cypressComponentConfigGenerator(tree, options) {
|
|
|
20
20
|
});
|
|
21
21
|
yield (0, update_configs_1.updateProjectConfig)(tree, options);
|
|
22
22
|
(0, add_files_1.addFiles)(tree, projectConfig, options);
|
|
23
|
-
(0, update_configs_1.updateTsConfig)(tree, projectConfig);
|
|
24
23
|
if (options.skipFormat) {
|
|
25
24
|
yield (0, devkit_1.formatFiles)(tree);
|
|
26
25
|
}
|
package/src/generators/cypress-component-configuration/cypress-component-configuration.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cypress-component-configuration.js","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/cypress-component-configuration/cypress-component-configuration.ts"],"names":[],"mappings":";;;;AAAA,2CAAwD;AACxD,yCAA2E;AAC3E,+CAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"cypress-component-configuration.js","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/cypress-component-configuration/cypress-component-configuration.ts"],"names":[],"mappings":";;;;AAAA,2CAAwD;AACxD,yCAA2E;AAC3E,+CAA2C;AAC3C,yDAA2D;AAG3D;;;;GAIG;AACH,SAAsB,+BAA+B,CACnD,IAAU,EACV,OAA4C;;QAE5C,MAAM,aAAa,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QACtE,MAAM,WAAW,GAAG,MAAM,IAAA,iCAAuB,EAAC,IAAI,EAAE;YACtD,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,UAAU,EAAE,IAAI;SACjB,CAAC,CAAC;QAEH,MAAM,IAAA,oCAAmB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACzC,IAAA,oBAAQ,EAAC,IAAI,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;QACvC,IAAI,OAAO,CAAC,UAAU,EAAE;YACtB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;QAED,OAAO,GAAG,EAAE;YACV,WAAW,EAAE,CAAC;QAChB,CAAC,CAAC;IACJ,CAAC;CAAA;AAnBD,0EAmBC;AAED,kBAAe,+BAA+B,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Tree } from '@nrwl/devkit';
|
|
2
2
|
import { CypressComponentConfigurationSchema } from '../schema';
|
|
3
|
-
export declare function updateTsConfig(tree: Tree, projectConfig: ProjectConfiguration): void;
|
|
4
3
|
export declare function updateProjectConfig(tree: Tree, options: CypressComponentConfigurationSchema): Promise<void>;
|
|
@@ -1,54 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateProjectConfig =
|
|
3
|
+
exports.updateProjectConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const find_target_options_1 = require("@nrwl/cypress/src/utils/find-target-options");
|
|
6
6
|
const devkit_1 = require("@nrwl/devkit");
|
|
7
|
-
function updateTsConfig(tree, projectConfig) {
|
|
8
|
-
const tsConfigPath = (0, devkit_1.joinPathFragments)(projectConfig.root, projectConfig.projectType === 'library'
|
|
9
|
-
? 'tsconfig.lib.json'
|
|
10
|
-
: 'tsconfig.app.json');
|
|
11
|
-
if (tree.exists(tsConfigPath)) {
|
|
12
|
-
(0, devkit_1.updateJson)(tree, tsConfigPath, (json) => {
|
|
13
|
-
const excluded = new Set([
|
|
14
|
-
...(json.exclude || []),
|
|
15
|
-
'cypress/**/*',
|
|
16
|
-
'cypress.config.ts',
|
|
17
|
-
'**/*.cy.ts',
|
|
18
|
-
'**/*.cy.js',
|
|
19
|
-
'**/*.cy.tsx',
|
|
20
|
-
'**/*.cy.jsx',
|
|
21
|
-
]);
|
|
22
|
-
json.exclude = Array.from(excluded);
|
|
23
|
-
return json;
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
const projectBaseTsConfig = (0, devkit_1.joinPathFragments)(projectConfig.root, 'tsconfig.json');
|
|
27
|
-
if (tree.exists(projectBaseTsConfig)) {
|
|
28
|
-
(0, devkit_1.updateJson)(tree, projectBaseTsConfig, (json) => {
|
|
29
|
-
if (json.references) {
|
|
30
|
-
const hasCyTsConfig = json.references.some((r) => r.path === './tsconfig.cy.json');
|
|
31
|
-
if (!hasCyTsConfig) {
|
|
32
|
-
json.references.push({ path: './tsconfig.cy.json' });
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
const excluded = new Set([
|
|
37
|
-
...(json.exclude || []),
|
|
38
|
-
'cypress/**/*',
|
|
39
|
-
'cypress.config.ts',
|
|
40
|
-
'**/*.cy.ts',
|
|
41
|
-
'**/*.cy.js',
|
|
42
|
-
'**/*.cy.tsx',
|
|
43
|
-
'**/*.cy.jsx',
|
|
44
|
-
]);
|
|
45
|
-
json.exclude = Array.from(excluded);
|
|
46
|
-
}
|
|
47
|
-
return json;
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
exports.updateTsConfig = updateTsConfig;
|
|
52
7
|
function updateProjectConfig(tree, options) {
|
|
53
8
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
54
9
|
const found = yield (0, find_target_options_1.findBuildConfig)(tree, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-configs.js","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/cypress-component-configuration/lib/update-configs.ts"],"names":[],"mappings":";;;;AAAA,qFAA8E;AAC9E,yCAOsB;AAGtB,
|
|
1
|
+
{"version":3,"file":"update-configs.js","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/cypress-component-configuration/lib/update-configs.ts"],"names":[],"mappings":";;;;AAAA,qFAA8E;AAC9E,yCAOsB;AAGtB,SAAsB,mBAAmB,CACvC,IAAU,EACV,OAA4C;;QAE5C,MAAM,KAAK,GAAG,MAAM,IAAA,qCAAe,EAAC,IAAI,EAAE;YACxC,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,kBAAkB,EAAE,IAAI,GAAG,CAAS,CAAC,mBAAmB,CAAC,CAAC;SAC3D,CAAC,CAAC;QAEH,gBAAgB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAE/B,MAAM,aAAa,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QACtE,aAAa,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,OAAO,mCAC1C,aAAa,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,OAAO,KAClD,eAAe,EAAE,KAAK,CAAC,MAAM,EAC7B,SAAS,EAAE,IAAI,GAChB,CAAC;QACF,IAAA,mCAA0B,EAAC,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;IACnE,CAAC;CAAA;AAnBD,kDAmBC;AAED,SAAS,gBAAgB,CAAC,MAAe;IACvC,IAAI,CAAC,MAAM,EAAE;QACX,MAAM,IAAI,KAAK,CACb,0IAA0I,CAC3I,CAAC;KACH;AACH,CAAC"}
|