Skip to content

feat(config): ngConfig #452

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

Closed
wants to merge 1 commit into from
Closed

feat(config): ngConfig #452

wants to merge 1 commit into from

Conversation

jkuri
Copy link
Contributor

@jkuri jkuri commented Apr 18, 2016

No description provided.

@jkuri jkuri added feature Issue that requests a new feature pr_action: review labels Apr 18, 2016
config.set(rawArgs[0], rawArgs[1], commandOptions.force);
let config = new Config();
config.validatePath(rawArgs[0]);
config.set(config.config, rawArgs[0], rawArgs[1]);
Copy link
Contributor

@hansl hansl Apr 18, 2016

Choose a reason for hiding this comment

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

Could you do a a=b kinda of syntax?

Basically:

for (let arg of rawArgs) {
  let [key, value] = arg.split('=', 1);
  config.validatePath(key);
  config.set(key, value);
}

What do you think? This way we can ng config set key[1]=value1 key[2]=value2.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, thanks. Done.

@hansl
Copy link
Contributor

hansl commented Apr 19, 2016

Linting and some tests are failing.

@jkuri jkuri closed this Apr 21, 2016
@jkuri jkuri deleted the ng-config branch April 21, 2016 17:14
@Brocco
Copy link
Contributor

Brocco commented Apr 21, 2016

@jkuri You'll also want to pull in the changes I have in this PR (#468) as part of this PR. It will expose the configuration on the project object for access within our commands and blueprints.

@jkuri
Copy link
Contributor Author

jkuri commented Apr 21, 2016

@Brocco thanks, I would missed that.

clydin pushed a commit that referenced this pull request Jun 5, 2018
it has a transitive dep on an updated tsickle that picks up a fix in source-map typings
hansl pushed a commit that referenced this pull request Jun 6, 2018
it has a transitive dep on an updated tsickle that picks up a fix in source-map typings
@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 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature Issue that requests a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants