-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
feat(packaging): move packaging to a single "@angular/material" #1286
Conversation
59f2229
to
11aa070
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a few requests for comments
]; | ||
|
||
const _cliSystemConfig: any = angularPackages; | ||
|
||
const angularPackages: any = angularDeps.reduce((config: any, pkg: string) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comment like "Create packages for each angular dependency, of the form..."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
System-Config has been simplified. PTAL
}); | ||
|
||
const angularMaps: any = angularDeps.reduce((config: any, pkg: string) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comment like "Create SystemJS map containing all of the Angular dependencies. Of the form..."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
System-Config has been simplified. PTAL
writeFileSync( outputPath, result.code ); | ||
}); | ||
}, Promise.resolve()); | ||
// Build the all package. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment something like "Use rollup to create the published umd bundle." ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
36eaa0d
to
c71e9b1
Compare
@jelbourn: this is ready to be reviewed. Sourcemaps are still messy (they give the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one comment, otherwise lgtm
@import '../../slider/slider-theme'; | ||
@import '../../tabs/tabs-theme'; | ||
@import '../../toolbar/toolbar-theme'; | ||
@import '../../tooltip/tooltip-theme'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Want to move this mixin into _theming.scss
and just delete this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Okay. Will do that when I'm back from dinner |
|
||
|
||
// Create a theme. | ||
@mixin angular-material-theme($theme) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed: internal presubmit revealed that moving this here caused an unresolvable circular dependency. Need to move it back to it's own file. I suggest we call it _all-component-themes.scss
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dono
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Moving forward, we will only publish a single
@angular/material
package for the Angular2 Material project. This simplifies installation and usage for everyone, and won't increase the size of the library for people using AoT. It is also assumed that most people who use Angular Material will use most of the components so using a single UMD bundle should not increase their package size too much in JIT.BREAKING CHANGES
People using
npm install @angular2-material/COMPONENT_NAME
need to remove all their@angular2-material
dependencies and use a single@angular/material
dependency instead.