Skip to content

refactor(@angular/cli): consolidate config reading logic #5023

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 28, 2017

Conversation

Brocco
Copy link
Contributor

@Brocco Brocco commented Feb 26, 2017

This PR fixes #5018

Copy link
Contributor

@sumitarora sumitarora left a comment

Choose a reason for hiding this comment

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

👍

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.

Good work. Might be easier to read if it's all one line.

const cliConfig = CliConfig.fromProject();
const ngConfig = cliConfig && cliConfig.config;
const appConfig = getAppFromConfig(ngConfig.apps, this.options.app);
const appConfig = getAppFromConfig(this.options.app);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this and all other lines like this can fit in one line now.

@hansl hansl merged commit 1609554 into angular:master Feb 28, 2017
@Brocco Brocco deleted the config-refactor branch March 1, 2017 03:42
asnowwolf pushed a commit to asnowwolf/angular-cli that referenced this pull request Apr 12, 2017
@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.

ng generate enum throws error
4 participants