Skip to content

Commit 04c5492

Browse files
authored
add doc for simplified angular-cli.json defaults
Fixes angular#4404
1 parent 84e67ce commit 04c5492

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

CHANGELOG.md

+42
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,51 @@
8181
"dev": "environments/environment.ts",
8282
"prod": "environments/environment.prod.ts"
8383
}
84+
```
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+
}
84105
```
85106

107+
After:
86108

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+
```
87129

88130
<a name="1.0.0-beta.31"></a>
89131
# [1.0.0-beta.31](https://github.com/angular/angular-cli/compare/v1.0.0-beta.30...v1.0.0-beta.31) (2017-02-09)

0 commit comments

Comments
 (0)