Skip to content

Commit 0d38b8b

Browse files
authored
fix(react): corrected style schematics for css modules (#4067)
1 parent b9791a3 commit 0d38b8b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+43976
-341
lines changed

docs/angular/api-react/generators/application.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ Possible values: `cypress`, `none`
7676

7777
Test runner to use for end to end (e2e) tests.
7878

79+
### globalCss
80+
81+
Default: `false`
82+
83+
Type: `boolean`
84+
85+
Default is false. When true, the component is generated with _.css/_.scss instead of _.module.css/_.module.scss
86+
7987
### js
8088

8189
Default: `false`

docs/angular/api-react/generators/component.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ Type: `boolean`
7878

7979
Create component at the source root rather than its own directory.
8080

81+
### globalCss
82+
83+
Default: `false`
84+
85+
Type: `boolean`
86+
87+
Default is false. When true, the component is generated with _.css/_.scss instead of _.module.css/_.module.scss
88+
8189
### js
8290

8391
Default: `false`

docs/angular/api-react/generators/library.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ Type: `string`
7474

7575
A directory where the lib is placed.
7676

77+
### globalCss
78+
79+
Default: `false`
80+
81+
Type: `boolean`
82+
83+
When true, the stylesheet is generated using global CSS instead of CSS modules (e.g. file is '_.css' rather than '_.module.css').
84+
7785
### importPath
7886

7987
Type: `string`

docs/node/api-react/generators/application.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ Possible values: `cypress`, `none`
7676

7777
Test runner to use for end to end (e2e) tests.
7878

79+
### globalCss
80+
81+
Default: `false`
82+
83+
Type: `boolean`
84+
85+
Default is false. When true, the component is generated with _.css/_.scss instead of _.module.css/_.module.scss
86+
7987
### js
8088

8189
Default: `false`

docs/node/api-react/generators/component.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ Type: `boolean`
7878

7979
Create component at the source root rather than its own directory.
8080

81+
### globalCss
82+
83+
Default: `false`
84+
85+
Type: `boolean`
86+
87+
Default is false. When true, the component is generated with _.css/_.scss instead of _.module.css/_.module.scss
88+
8189
### js
8290

8391
Default: `false`

docs/node/api-react/generators/library.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ Type: `string`
7474

7575
A directory where the lib is placed.
7676

77+
### globalCss
78+
79+
Default: `false`
80+
81+
Type: `boolean`
82+
83+
When true, the stylesheet is generated using global CSS instead of CSS modules (e.g. file is '_.css' rather than '_.module.css').
84+
7785
### importPath
7886

7987
Type: `string`

docs/react/api-react/generators/application.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ Possible values: `cypress`, `none`
7676

7777
Test runner to use for end to end (e2e) tests.
7878

79+
### globalCss
80+
81+
Default: `false`
82+
83+
Type: `boolean`
84+
85+
Default is false. When true, the component is generated with _.css/_.scss instead of _.module.css/_.module.scss
86+
7987
### js
8088

8189
Default: `false`

docs/react/api-react/generators/component.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ Type: `boolean`
7878

7979
Create component at the source root rather than its own directory.
8080

81+
### globalCss
82+
83+
Default: `false`
84+
85+
Type: `boolean`
86+
87+
Default is false. When true, the component is generated with _.css/_.scss instead of _.module.css/_.module.scss
88+
8189
### js
8290

8391
Default: `false`

docs/react/api-react/generators/library.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ Type: `string`
7474

7575
A directory where the lib is placed.
7676

77+
### globalCss
78+
79+
Default: `false`
80+
81+
Type: `boolean`
82+
83+
When true, the stylesheet is generated using global CSS instead of CSS modules (e.g. file is '_.css' rather than '_.module.css').
84+
7785
### importPath
7886

7987
Type: `string`

e2e/react/src/react.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ describe('React Applications', () => {
5050
// By default, vendor sourcemaps are off
5151
runCLI(`build ${appName}`);
5252

53-
let vendorContent = readFile(`dist/apps/${appName}/vendor.js`);
54-
55-
expect(vendorContent).not.toMatch(/sourceMappingURL/);
56-
5753
// Turn vendor sourcemaps on
5854
updateFile(`workspace.json`, (content) => {
5955
const json = JSON.parse(content);

0 commit comments

Comments
 (0)