Skip to content

Commit 7673c0f

Browse files
authored
docs(CHANGELOG): add breaking change doc for simplified angular-cli.json defaults
Add documentation for a breaking change in angular-cli.json (see angular#4389) that was missed in the changelog Fix angular#4404
1 parent 84e67ce commit 7673c0f

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

CHANGELOG.md

+44
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,50 @@
8282
"prod": "environments/environment.prod.ts"
8383
}
8484
```
85+
* @angular/cli: simplify default arguments in angular-cli.json [#4389](https://github.com/angular/angular-cli/pull/4389)
86+
87+
If you specified your own `generate` defaults, use the example below to make any necessary migrations (see the [schema](https://github.com/angular/angular-cli/blob/b6893d0b7fb351baf2ae499decb7740411305ef5/packages/%40angular/cli/lib/config/schema.json) for full documentation):
88+
89+
Before:
90+
91+
```
92+
"defaults": {
93+
"styleExt": "css",
94+
"inline": {
95+
"style": true,
96+
"template": true
97+
},
98+
"spec": {
99+
"component": false,
100+
"directive": false,
101+
"pipe": false,
102+
"service": false
103+
}
104+
}
105+
```
106+
107+
After:
108+
109+
```
110+
"defaults": {
111+
"styleExt": "css",
112+
"component": {
113+
"flat": true,
114+
"inlineStyle": true,
115+
"inlineTemplate": true,
116+
"spec": false
117+
},
118+
"directive": {
119+
"spec": false
120+
},
121+
"pipe": {
122+
"spec": false
123+
},
124+
"service": {
125+
"spec": false
126+
}
127+
}
128+
```
85129

86130

87131

0 commit comments

Comments
 (0)