Skip to content

Commit 2801018

Browse files
Jefioziebrandonroberts
authored andcommitted
refactor(schematics): migrate from styleext to style (#2254)
Closes #2248 BREAKING CHANGES: To be inline with the Angular CLI, the `styleExt` option has been changed to `style`. BEFORE: ``` "@schematics/angular:component": { "inlineStyle": true, "prefix": "aio", "styleext": "scss" } ... ``` AFTER: ``` "@schematics/angular:component": { "inlineStyle": true, "prefix": "aio", "style": "scss" } .... ```
1 parent 1758d34 commit 2801018

File tree

7 files changed

+10
-9
lines changed

7 files changed

+10
-9
lines changed

angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
"flat": true,
108108
"spec": false,
109109
"prefix": "bc",
110-
"styleext": "css"
110+
"style": "css"
111111
},
112112
"@schematics/angular:directive": {
113113
"prefix": "bc"

modules/schematics/src/container/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('Container Schematic', () => {
2121
inlineStyle: false,
2222
inlineTemplate: false,
2323
changeDetection: 'Default',
24-
styleext: 'css',
24+
style: 'css',
2525
spec: true,
2626
module: undefined,
2727
export: false,

modules/schematics/src/container/schema.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@
5555
"description": "The prefix to apply to generated selectors.",
5656
"alias": "p"
5757
},
58-
"styleext": {
59-
"description": "The file extension to be used for style files.",
58+
"style": {
59+
"description":
60+
"The file extension or preprocessor to use for style files.",
6061
"type": "string",
6162
"default": "css"
6263
},

modules/schematics/src/container/schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ export interface Schema {
3232
*/
3333
prefix?: string;
3434
/**
35-
* The file extension to be used for style files.
35+
* The file extension or preprocessor to use for style files.
3636
*/
37-
styleext?: string;
37+
style?: string;
3838
/**
3939
* Specifies if a spec file is generated.
4040
*/

projects/ngrx.io/angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
"@schematics/angular:component": {
174174
"inlineStyle": true,
175175
"prefix": "aio",
176-
"styleext": "scss"
176+
"style": "scss"
177177
},
178178
"@schematics/angular:directive": {
179179
"prefix": "aio"

projects/ngrx.io/content/guide/schematics/container.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ If you want to generate a container with an scss file, add `@ngrx/schematics:con
5555
```json
5656
"schematics": {
5757
"@ngrx/schematics:container": {
58-
"styleext": "scss"
58+
"style": "scss"
5959
}
6060
}
6161
```

projects/ngrx.io/content/guide/schematics/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The `@ngrx/schematics` extend the default `@schematics/angular` collection. If y
5656
```json
5757
"schematics": {
5858
"@ngrx/schematics:component": {
59-
"styleext": "scss"
59+
"style": "scss"
6060
}
6161
}
6262
```

0 commit comments

Comments
 (0)