Skip to content

Commit 8de3dfb

Browse files
cyrilletuzihansl
authored andcommitted
fix(@schematics/angular): missing condition and comma position
Fixes PR #213 which sorted the options without taking the conditions into consideration, resulting in `class: { spec: false }` for everyone. Fixes PR #196 comma position.
1 parent ff069a2 commit 8de3dfb

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

packages/schematics/angular/application/files/__dot__angular-cli.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,13 @@
5454
}
5555
},
5656
"defaults": {
57-
"styleExt": "<%= style %>",
57+
"styleExt": "<%= style %>",<% if (minimal || skipTests) { %>
5858
"class": {
5959
"spec": false
60-
},
60+
},<% } %>
6161
"component": {<% if (minimal || inlineStyle) { %>
62-
"inlineStyle": true
63-
<% } %><% if (minimal || (inlineTemplate && inlineStyle)) { %>,<% } %><% if (minimal || inlineTemplate) { %>
64-
"inlineTemplate": true
65-
<% } %><% if (minimal || (skipTests && (inlineStyle || inlineTemplate))) { %>,<% } %><% if (minimal || skipTests) { %>
62+
"inlineStyle": true<% } %><% if (minimal || (inlineTemplate && inlineStyle)) { %>,<% } %><% if (minimal || inlineTemplate) { %>
63+
"inlineTemplate": true<% } %><% if (minimal || (skipTests && (inlineStyle || inlineTemplate))) { %>,<% } %><% if (minimal || skipTests) { %>
6664
"spec": false
6765
<% } %>}<% if (minimal || skipTests) { %>,
6866
"directive": {

0 commit comments

Comments
 (0)