Skip to content
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

Merged
merged 1 commit into from
Sep 22, 2016

Conversation

hansl
Copy link
Contributor

@hansl hansl commented Sep 20, 2016

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.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Sep 20, 2016
Copy link
Member

@jelbourn jelbourn left a 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) => {
Copy link
Member

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..."

Copy link
Contributor Author

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) => {
Copy link
Member

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..."

Copy link
Contributor Author

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.
Copy link
Member

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." ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@hansl
Copy link
Contributor Author

hansl commented Sep 21, 2016

@jelbourn: this is ready to be reviewed.

Sourcemaps are still messy (they give the tsc output), but for now this will unblock you for AC. I'll improve in a subsequent PR.

Copy link
Member

@jelbourn jelbourn left a 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';
Copy link
Member

@jelbourn jelbourn Sep 22, 2016

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@hansl
Copy link
Contributor Author

hansl commented Sep 22, 2016

Okay. Will do that when I'm back from dinner

@hansl hansl added action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Sep 22, 2016
@jelbourn jelbourn added pr: lgtm and removed action: merge The PR is ready for merge by the caretaker labels Sep 22, 2016


// Create a theme.
@mixin angular-material-theme($theme) {
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dono

@kara kara added the action: merge The PR is ready for merge by the caretaker label Sep 22, 2016
@kara kara merged commit b5c8c63 into angular:master Sep 22, 2016
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants