angular-cli
angular-cli copied to clipboard
[Enhancement] export barrels from system-config.ts
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' };
});
Closed as obsolete following #1455.
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.