refactor(@angular/cli): rename config file from angular-cli.json to .…#4681
Conversation
2bc84af to
3d9cfa5
Compare
| One solution would be to keep the data in the `package.json`. Unfortunately, the metadata contains too much data and the `package.json` file would become unmanageable. | ||
|
|
||
| Instead of polluting the package file, a `angular-cli.json` file will be created that contains all the values. Access to that file will be allowed to the user if he knows the structure of the file (unknown keys will be kept but ignored), and it's easy to read and write. | ||
| Instead of polluting the package file, a `.angular-cli.json` file will be created that contains all the values. Access to that file will be allowed to the user if he knows the structure of the file (unknown keys will be kept but ignored), and it's easy to read and write. |
There was a problem hiding this comment.
avoid he and she. be gender indifferent. Instead use who here.
| ## Fallback | ||
|
|
||
| There should be two `angular-cli.json` files; one for the project and a general one. The general one should contain information that can be useful when scaffolding new apps, or informations about the user. | ||
| There should be two `.angular-cli.json` files; one for the project and a general one. The general one should contain information that can be useful when scaffolding new apps, or informations about the user. |
There was a problem hiding this comment.
informations --> information
| By default, the development build target and environment are used. | ||
|
|
||
| The mapping used to determine which environment file is used can be found in `angular-cli.json`: | ||
| The mapping used to determine which environment file is used can be found in `.angular-cli.json`: |
There was a problem hiding this comment.
It might be nice to show the schema or a link to it somewhere.
| @@ -46,7 +46,7 @@ ng build | |||
|
|
|||
| You can also add your own env files other than `dev` and `prod` by doing the following: | |||
There was a problem hiding this comment.
maybe say environment files instead of env files.
|
|
||
| export const CLI_CONFIG_FILE_NAME = 'angular-cli.json'; | ||
| export const CLI_CONFIG_FILE_NAME = '.angular-cli.json'; | ||
| const CLI_CONFIG_FILE_NAME_ALT = 'angular-cli.json'; |
There was a problem hiding this comment.
Should we show a warning if users are using the old one?
There was a problem hiding this comment.
I spoke with @hansl about this, and we think we should silently fallback to the old file name. This means fewer changes are needed, but newly generated projects will generate with the new file name.
|
@johnpapa I agree with the suggestions you provided, but this PR is to change the file name, I will create a new PR with the language suggestions. |
9acaede to
e906916
Compare
…angular-cli.json BREAKING CHANGE: The configuration file angular-cli.json has been renamed to .angular-cli.json
e906916 to
0e1abe6
Compare
…angular-cli.json (angular#4681) BREAKING CHANGE: The configuration file angular-cli.json has been renamed to .angular-cli.json
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
…angular-cli.json