-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing tests and simplifying system-config
- Loading branch information
Showing
5 changed files
with
104 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,34 @@ | ||
/*********************************************************************************************** | ||
* User Configuration. | ||
**********************************************************************************************/ | ||
|
||
const angularDeps = [ | ||
// Angular specific barrels. | ||
'@angular/core', | ||
'@angular/common', | ||
'@angular/compiler', | ||
'@angular/http', | ||
'@angular/forms', | ||
'@angular/router', | ||
'@angular/platform-browser', | ||
'@angular/platform-browser-dynamic', | ||
]; | ||
|
||
const barrels: string[] = [ | ||
// Thirdparty barrels. | ||
'rxjs', | ||
|
||
// App specific barrels. | ||
'demo-app', | ||
'button-toggle', | ||
'gestures', | ||
'live-announcer', | ||
'portal', | ||
'overlay', | ||
]; | ||
|
||
|
||
const angularPackages: any = angularDeps.reduce((config: any, pkg: string) => { | ||
config[pkg] = { main: `bundles/${pkg.replace('@angular/', '')}.umd.js` }; | ||
return config; | ||
}, {}); | ||
barrels.forEach((barrelName: string) => { | ||
angularPackages[barrelName] = { main: 'index' }; | ||
}); | ||
|
||
const angularMaps: any = angularDeps.reduce((config: any, pkg: string) => { | ||
config[pkg] = `vendor/${pkg}`; | ||
return config; | ||
}, {}); | ||
|
||
/** Type declaration for ambient System. */ | ||
declare var System: any; | ||
|
||
// Apply the CLI SystemJS configuration. | ||
System.config({ | ||
map: Object.assign({ | ||
map: { | ||
'rxjs': 'vendor/rxjs', | ||
'main': 'main.js', | ||
}, angularMaps), | ||
packages: Object.assign({ | ||
|
||
// Angular specific mappings. | ||
'@angular/core': 'vendor/@angular/core/bundles/core.umd.js', | ||
'@angular/common': 'vendor/@angular/common/bundles/common.umd.js', | ||
'@angular/compiler': 'vendor/@angular/compiler/bundles/compiler.umd.js', | ||
'@angular/http': 'vendor/@angular/http/bundles/http.umd.js', | ||
'@angular/forms': 'vendor/@angular/forms/bundles/forms.umd.js', | ||
'@angular/router': 'vendor/@angular/router/bundles/router.umd.js', | ||
'@angular/platform-browser': 'vendor/@angular/platform-browser/bundles/platform-browser.umd.js', | ||
'@angular/platform-browser-dynamic': | ||
'vendor/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js', | ||
}, | ||
packages: { | ||
// Thirdparty barrels. | ||
'rxjs': { main: 'index' }, | ||
'@angular/material': { | ||
format: 'cjs', | ||
main: 'material.umd.js' | ||
}, | ||
}, | ||
// Set the default extension for the root package, because otherwise the demo-app can't | ||
// be built within the production mode. Due to missing file extensions. | ||
'.': { | ||
defaultExtension: 'js' | ||
} | ||
}, angularPackages) | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
export * from './core'; | ||
export * from './module'; | ||
|
||
export * from './button/button'; | ||
export * from './button-toggle/button-toggle'; | ||
export * from './card/card'; | ||
export * from './checkbox/checkbox'; | ||
export * from './dialog/dialog'; | ||
export * from './grid-list/grid-list'; | ||
export * from './icon/icon'; | ||
export * from './input/input'; | ||
export * from './list/list'; | ||
export * from './menu/menu'; | ||
export * from './progress-bar/progress-bar'; | ||
export * from './progress-circle/progress-circle'; | ||
export * from './radio/radio'; | ||
export * from './select/select'; | ||
export * from './sidenav/sidenav'; | ||
export * from './slider/slider'; | ||
export * from './slide-toggle/slide-toggle'; | ||
export * from './tabs/tabs'; | ||
export * from './toolbar/toolbar'; | ||
export * from './tooltip/tooltip'; | ||
export * from './button/index'; | ||
export * from './button-toggle/index'; | ||
export * from './card/index'; | ||
export * from './checkbox/index'; | ||
export * from './dialog/index'; | ||
export * from './grid-list/index'; | ||
export * from './icon/index'; | ||
export * from './input/index'; | ||
export * from './list/index'; | ||
export * from './menu/index'; | ||
export * from './progress-bar/index'; | ||
export * from './progress-circle/index'; | ||
export * from './radio/index'; | ||
export * from './select/index'; | ||
export * from './sidenav/index'; | ||
export * from './slider/index'; | ||
export * from './slide-toggle/index'; | ||
export * from './tabs/index'; | ||
export * from './toolbar/index'; | ||
export * from './tooltip/index'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters