-
Notifications
You must be signed in to change notification settings - Fork 6.8k
build: restructure release output #3695
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
809c2f5
to
ebf4aa9
Compare
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored by someone other than the pull request submitter. We need to confirm that they're okay with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
809c2f5
to
f8ec65d
Compare
* Bumps the required Angular version to 4 and TypeScript to 2.1.6. * Fixes deprecation warnings for `<template>` usages. * Fixes any unit and e2e test failures. * Includes the new animations module and switches any components that use animations to it. * Fixes issues with the various test apps. Fixes angular#3357. Fixes angular#3336. FIxes angular#3301.
f8ec65d
to
6b139d0
Compare
tools/gulp/constants.ts
Outdated
@@ -17,6 +29,10 @@ export const HTML_MINIFIER_OPTIONS = { | |||
removeAttributeQuotes: false | |||
}; | |||
|
|||
export const UGLIFYJS_OPTIONS = { | |||
preserveComments: 'license' | |||
}; |
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.
I think we should just define these where we call uglify if we're only doing it in one place.
tools/gulp/tasks/aot.ts
Outdated
// As a workaround for https://github.com/angular/angular/issues/12249, we need to | ||
// copy the Material ESM output inside of the demo-app output. | ||
task('aot:copy-release', () => { | ||
copySync(DIST_RELEASE, join(DIST_DEMOAPP, 'material')); |
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.
Any reason not to do
task('aot:copy-release', () => src(DIST_RELEASE).pipe(dest(join(DIST_DEMOAPP, 'material'))));
?
(I thought this was the most "gulp-y" way to do it, but I could be wrong)
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.
I tried, but it really felt weird because I would need to specify a glob to match all files. (Just specifying the directory didn't work)
task('aot:copy-release', () => src(DIST_RELEASE + '**/*').pipe(dest(join(DIST_DEMOAPP, 'material'))));
It is definitely a gulp-y
way, but I think it's just not very clear and also we would need to have a glob.
tools/gulp/tasks/release.ts
Outdated
/** Task that combines intermediate build artifacts into the release package structure. */ | ||
task(':package:release', [ | ||
':package:fix-metadata', | ||
':package:metadata', |
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.
Should only call :packagae:metadata
, which then depends on :package:fix-metadata
?
(to make sure the order of operations is correct since this isn't a runSequence
)
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.
👍
6b139d0
to
2a65c0a
Compare
2a65c0a
to
a44b568
Compare
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. |
Work in Progress PR (for review)
Note: AOT Travis check will likely fail at the moment. Not updated yet.
cc. @jelbourn