-
Notifications
You must be signed in to change notification settings - Fork 12k
refactor(@angular/cli): rename config file from angular-cli.json to .… #4681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
2bc84af
to
3d9cfa5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor wording
@@ -16,14 +16,14 @@ Since the data is static, we only need to keep it in a static store somewhere. | |||
|
|||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
informations
--> information
@@ -19,7 +19,7 @@ The build artifacts will be stored in the `dist/` directory. | |||
environment file to be used with that build (`--environment=dev` or `--environment=prod`). | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe say environment files instead of env files.
@@ -5,7 +5,8 @@ import * as chalk from 'chalk'; | |||
import * as fs from 'fs'; | |||
import * as path from 'path'; | |||
|
|||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we show a warning if users are using the old one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rebase, LGTM.
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