@@ -132,15 +132,45 @@ VERSION_PLACEHOLDER_REPLACEMENTS = {
132
132
"0.0.0-NG" : ANGULAR_PACKAGE_VERSION ,
133
133
}
134
134
135
- # Base rollup globals for everything in the repo.
135
+ # Base rollup globals for everything in the repo. Note that we want to disable
136
+ # sorting of the globals as we manually group dict entries.
137
+ # buildifier: disable=unsorted-dict-items
136
138
ROLLUP_GLOBALS = {
139
+ # Framework packages.
140
+ "@angular/animations" : "ng.animations" ,
141
+ "@angular/common" : "ng.common" ,
142
+ "@angular/common/http" : "ng.common.http" ,
143
+ "@angular/common/http/testing" : "ng.common.http.testing" ,
144
+ "@angular/common/testing" : "ng.common.testing" ,
145
+ "@angular/core" : "ng.core" ,
146
+ "@angular/core/testing" : "ng.core.testing" ,
147
+ "@angular/forms" : "ng.forms" ,
148
+ "@angular/platform-browser" : "ng.platformBrowser" ,
149
+ "@angular/platform-browser-dynamic" : "ng.platformBrowserDynamic" ,
150
+ "@angular/platform-browser-dynamic/testing" : "ng.platformBrowserDynamic.testing" ,
151
+ "@angular/platform-browser/animations" : "ng.platformBrowser.animations" ,
152
+ "@angular/platform-server" : "ng.platformServer" ,
153
+ "@angular/router" : "ng.router" ,
154
+
155
+ # Primary entry-points in the project.
137
156
"@angular/cdk" : "ng.cdk" ,
138
157
"@angular/cdk-experimental" : "ng.cdkExperimental" ,
139
158
"@angular/google-maps" : "ng.googleMaps" ,
140
159
"@angular/material" : "ng.material" ,
141
160
"@angular/material-experimental" : "ng.materialExperimental" ,
161
+ "@angular/material-moment-adapter" : "ng.materialMomentAdapter" ,
142
162
"@angular/youtube-player" : "ng.youtubePlayer" ,
143
163
164
+ # Special tertiary entry-points for which globals are not generated
165
+ # automatically (e.g. since they are treated as their own npm package).
166
+ "@angular/cdk/testing" : "ng.cdk.testing" ,
167
+
168
+ # TODO(devversion): remove this if we wire up these entry-points in the
169
+ # release package. We should not hardcode these entry-points here.
170
+ "@angular/material-experimental/input/testing" : "ng.materialExperimental.input.testing" ,
171
+ "@angular/material-experimental/select/testing" : "ng.materialExperimental.select.testing" ,
172
+ "@angular/material-experimental/form-field/testing/control" : "ng.materialExperimental.form-field.testing.control" ,
173
+
144
174
# MDC Web
145
175
"@material/animation" : "mdc.animation" ,
146
176
"@material/auto-init" : "mdc.autoInit" ,
@@ -172,7 +202,12 @@ ROLLUP_GLOBALS = {
172
202
"@material/tab-scroller" : "mdc.tabScroller" ,
173
203
"@material/text-field" : "mdc.textField" ,
174
204
"@material/top-app-bar" : "mdc.topAppBar" ,
205
+
206
+ # Third-party libraries.
175
207
"moment" : "moment" ,
208
+ "protractor" : "protractor" ,
209
+ "rxjs" : "rxjs" ,
210
+ "rxjs/operators" : "rxjs.operators" ,
176
211
"tslib" : "tslib" ,
177
212
}
178
213
@@ -195,6 +230,15 @@ ROLLUP_GLOBALS.update({
195
230
for p in MATERIAL_PACKAGES
196
231
})
197
232
233
+ # Rollup globals for material testing entry-points.
234
+ # e.g., {"@angular/material/dialog/testing": "ng.material.dialog.testing"}
235
+ # TODO(devversion): consider removing this if we wire up tertiary entry-points in the
236
+ # release package. We should not hardcode these tertiary entry-points.
237
+ ROLLUP_GLOBALS .update ({
238
+ "@angular/material/%s/testing" % p : "ng.material.%s.testing" % p
239
+ for p in MATERIAL_PACKAGES
240
+ })
241
+
198
242
# Rollup globals for material experimental subpackages, e.g.,
199
243
# {"@angular/material-experimental/list": "ng.materialExperimental.list"}
200
244
ROLLUP_GLOBALS .update ({
0 commit comments