Skip to content

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

Merged
merged 1 commit into from
Feb 16, 2017

Conversation

Brocco
Copy link
Contributor

@Brocco Brocco commented Feb 14, 2017

…angular-cli.json

@Brocco Brocco requested a review from hansl February 14, 2017 02:55
@Brocco Brocco force-pushed the config-file-rename branch 2 times, most recently from 2bc84af to 3d9cfa5 Compare February 14, 2017 03:57
Copy link
Contributor

@johnpapa johnpapa left a 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.
Copy link
Contributor

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.
Copy link
Contributor

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`:
Copy link
Contributor

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:
Copy link
Contributor

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';
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@Brocco
Copy link
Contributor Author

Brocco commented Feb 15, 2017

@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.

Copy link
Contributor

@hansl hansl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rebase, LGTM.

@Brocco Brocco force-pushed the config-file-rename branch 2 times, most recently from 9acaede to e906916 Compare February 16, 2017 03:39
…angular-cli.json

BREAKING CHANGE: The configuration file angular-cli.json has been renamed to .angular-cli.json
@Brocco Brocco force-pushed the config-file-rename branch from e906916 to 0e1abe6 Compare February 16, 2017 03:50
@Brocco Brocco merged commit 809340a into angular:master Feb 16, 2017
d4nyll added a commit to d4nyll/angular.io that referenced this pull request Feb 24, 2017
@Brocco Brocco deleted the config-file-rename branch March 15, 2017 17:46
asnowwolf pushed a commit to asnowwolf/angular-cli that referenced this pull request Apr 12, 2017
…angular-cli.json (angular#4681)

BREAKING CHANGE: The configuration file angular-cli.json has been renamed to .angular-cli.json
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants