Skip to content

Commit

Permalink
fix(@angular/cli): put aliases for local config too (angular#4886)
Browse files Browse the repository at this point in the history
  • Loading branch information
hansl authored and Zhicheng Wang committed Mar 16, 2017
1 parent 590a55e commit 79b054d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/@angular/cli/models/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,17 @@ export class CliConfig extends CliConfigBase<ConfigInterface> {
cliConfig.alias('apps.0.prefix', 'defaults.prefix')
];

// Additional aliases which do not emit any messages.
cliConfig.alias('defaults.interface.prefix', 'defaults.inline.prefixInterfaces');
cliConfig.alias('defaults.component.inlineStyle', 'defaults.inline.style');
cliConfig.alias('defaults.component.inlineTemplate', 'defaults.inline.template');
cliConfig.alias('defaults.component.spec', 'defaults.spec.component');
cliConfig.alias('defaults.class.spec', 'defaults.spec.class');
cliConfig.alias('defaults.component.directive', 'defaults.spec.directive');
cliConfig.alias('defaults.component.module', 'defaults.spec.module');
cliConfig.alias('defaults.component.pipe', 'defaults.spec.pipe');
cliConfig.alias('defaults.component.service', 'defaults.spec.service');

// If any of them returned true, output a deprecation warning.
if (aliases.some(x => !!x)) {
console.error(chalk.yellow(oneLine`
Expand Down

0 comments on commit 79b054d

Please sign in to comment.