From 7673c0f7e2ce0e7d75a8e26b4b44fba476a65e4a Mon Sep 17 00:00:00 2001 From: saverett Date: Fri, 24 Feb 2017 14:29:04 -0700 Subject: [PATCH] docs(CHANGELOG): add breaking change doc for simplified angular-cli.json defaults Add documentation for a breaking change in angular-cli.json (see #4389) that was missed in the changelog Fix #4404 --- CHANGELOG.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f01a0abbcc9..8324ae501cda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -82,6 +82,50 @@ "prod": "environments/environment.prod.ts" } ``` +* @angular/cli: simplify default arguments in angular-cli.json [#4389](https://github.com/angular/angular-cli/pull/4389) + + 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): + + Before: + + ``` + "defaults": { + "styleExt": "css", + "inline": { + "style": true, + "template": true + }, + "spec": { + "component": false, + "directive": false, + "pipe": false, + "service": false + } + } + ``` + + After: + + ``` + "defaults": { + "styleExt": "css", + "component": { + "flat": true, + "inlineStyle": true, + "inlineTemplate": true, + "spec": false + }, + "directive": { + "spec": false + }, + "pipe": { + "spec": false + }, + "service": { + "spec": false + } + } + ```