-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(packaging): move packaging to a single "@angular/material" #1286
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
Conversation
59f2229 to
11aa070
Compare
jelbourn
left a comment
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
src/demo-app/system-config.ts
Outdated
|
|
||
| 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
src/demo-app/system-config.ts
Outdated
| angularPackages[barrelName] = { main: 'index' }; | ||
| }); | ||
|
|
||
| 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
tools/gulp/tasks/components.ts
Outdated
| 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 |
jelbourn
left a comment
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 |
src/lib/core/theming/_theming.scss
Outdated
|
|
||
|
|
||
| // 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/materialpackage 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_NAMEneed to remove all their@angular2-materialdependencies and use a single@angular/materialdependency instead.