angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

[Enhancement] export barrels from system-config.ts

Open sasxa opened this issue 10 years ago • 2 comments

Would it be possible to add exports for barrels and cliSystemConfigPackages constants in system-config.ts blueprint, so we can reuse them in our custom build process'? Quite easy to do manually, but would be nice to have it by default for new projects, and when there's new version of CLI...

////////////////////////////////////////////////////////////////////////////////////////////////
/***********************************************************************************************
 * Everything underneath this line is managed by the CLI.
 **********************************************************************************************/
export const barrels: string[] = [
  // Angular specific barrels.
  '@angular/core',
  '@angular/common',
  '@angular/compiler',
  '@angular/http',
  '@angular/router',
  '@angular/platform-browser',
  '@angular/platform-browser-dynamic',<% if(isMobile) { %>
  '@angular/app-shell',<% } %>

  // Thirdparty barrels.
  'rxjs',

  // App specific barrels.
  'app',
  'app/shared',
  /** @cli-barrel */
];

export const cliSystemConfigPackages: any = {};
barrels.forEach((barrelName: string) => {
  cliSystemConfigPackages[barrelName] = { main: 'index' };
});

sasxa avatar Jun 19 '16 16:06 sasxa

Closed as obsolete following #1455.

filipesilva avatar Jul 27 '16 17:07 filipesilva

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.