1- # List of all components / subpackages.
2-
3- CDK_PACKAGES = [
4- "a11y" ,
5- "accordion" ,
6- "bidi" ,
7- "coercion" ,
8- "collections" ,
9- "drag-drop" ,
10- "keycodes" ,
11- "layout" ,
12- "observers" ,
13- "overlay" ,
14- "platform" ,
15- "portal" ,
16- "scrolling" ,
17- "stepper" ,
18- "table" ,
19- "text-field" ,
20- "tree" ,
21-
22- # NOTE: "testing" should not be listed here as it will be treated as its own
23- # package. This is because we don't want to include "testing the testing utilities
24- # in the release output.
25- ]
26-
27- # Within the CDK, only a few targets have sass libraries which need to be
28- # part of the release package. This list declares all CDK targets with sass
29- # libraries that need to be included and re-exported at the package root.
30- CDK_TARGETS_WITH_STYLES = [
31- "a11y" ,
32- "overlay" ,
33- "text-field" ,
34- ]
35-
36- CDK_SCSS_LIBS = [
37- "//src/cdk/%s:%s_scss_lib" % (p , p .replace ("-" , "_" ))
38- for p in CDK_TARGETS_WITH_STYLES
39- ]
40-
41- CDK_TARGETS = ["//src/cdk" ] + ["//src/cdk/%s" % p for p in CDK_PACKAGES ]
42-
43- CDK_EXPERIMENTAL_PACKAGES = [
44- "dialog" ,
45- "popover-edit" ,
46- "scrolling" ,
47- ]
48-
49- CDK_EXPERIMENTAL_TARGETS = ["//src/cdk-experimental" ] + [
50- "//src/cdk-experimental/%s" % p
51- for p in CDK_EXPERIMENTAL_PACKAGES
52- ]
53-
54- MATERIAL_PACKAGES = [
55- "autocomplete" ,
56- "badge" ,
57- "bottom-sheet" ,
58- "button" ,
59- "button-toggle" ,
60- "card" ,
61- "checkbox" ,
62- "chips" ,
63- "core" ,
64- "datepicker" ,
65- "dialog" ,
66- "divider" ,
67- "expansion" ,
68- "form-field" ,
69- "grid-list" ,
70- "icon" ,
71- "input" ,
72- "list" ,
73- "menu" ,
74- "paginator" ,
75- "progress-bar" ,
76- "progress-spinner" ,
77- "radio" ,
78- "select" ,
79- "sidenav" ,
80- "slide-toggle" ,
81- "slider" ,
82- "snack-bar" ,
83- "sort" ,
84- "stepper" ,
85- "table" ,
86- "tabs" ,
87- "toolbar" ,
88- "tooltip" ,
89- "tree" ,
90- ]
91-
92- MATERIAL_TARGETS = ["//src/material" ] + ["//src/material/%s" % p for p in MATERIAL_PACKAGES ]
93-
94- # List that references the sass libraries for each Material package. This can be used to create
95- # the theming scss-bundle or to specify dependencies for the all-theme.scss file.
96- MATERIAL_SCSS_LIBS = [
97- "//src/material/%s:%s_scss_lib" % (p , p .replace ("-" , "_" ))
98- for p in MATERIAL_PACKAGES
99- ]
100-
101- MATERIAL_EXPERIMENTAL_PACKAGES = [
102- "mdc-button" ,
103- "mdc-card" ,
104- "mdc-checkbox" ,
105- "mdc-chips" ,
106- "mdc-tabs" ,
107- "mdc-helpers" ,
108- "mdc-menu" ,
109- "mdc-radio" ,
110- "mdc-slide-toggle" ,
111- "mdc-slider" ,
112- "popover-edit" ,
113- ]
114-
115- MATERIAL_EXPERIMENTAL_TARGETS = ["//src/material-experimental" ] + [
116- "//src/material-experimental/%s" % p
117- for p in MATERIAL_EXPERIMENTAL_PACKAGES
118- ]
119-
120- MATERIAL_EXPERIMENTAL_SCSS_LIBS = [
121- "//src/material-experimental/%s:%s_scss_lib" % (p , p .replace ("-" , "_" ))
122- for p in MATERIAL_EXPERIMENTAL_PACKAGES
123- ]
124-
1251# Each individual package uses a placeholder for the version of Angular to ensure they're
1262# all in-sync. This map is passed to each ng_package rule to stamp out the appropriate
1273# version for the placeholders.
@@ -132,96 +8,6 @@ VERSION_PLACEHOLDER_REPLACEMENTS = {
1328 "0.0.0-NG" : ANGULAR_PACKAGE_VERSION ,
1339}
13410
135- # Base rollup globals for everything in the repo.
136- ROLLUP_GLOBALS = {
137- "@angular/cdk" : "ng.cdk" ,
138- "@angular/cdk-experimental" : "ng.cdkExperimental" ,
139- "@angular/google-maps" : "ng.googleMaps" ,
140- "@angular/material" : "ng.material" ,
141- "@angular/material-experimental" : "ng.materialExperimental" ,
142- "@angular/youtube-player" : "ng.youtubePlayer" ,
143-
144- # MDC Web
145- "@material/animation" : "mdc.animation" ,
146- "@material/auto-init" : "mdc.autoInit" ,
147- "@material/base" : "mdc.base" ,
148- "@material/checkbox" : "mdc.checkbox" ,
149- "@material/chips" : "mdc.chips" ,
150- "@material/dialog" : "mdc.dialog" ,
151- "@material/dom" : "mdc.dom" ,
152- "@material/drawer" : "mdc.drawer" ,
153- "@material/floating-label" : "mdc.floatingLabel" ,
154- "@material/form-field" : "mdc.formField" ,
155- "@material/grid-list" : "mdc.gridList" ,
156- "@material/icon-button" : "mdc.iconButton" ,
157- "@material/line-ripple" : "mdc.lineRipple" ,
158- "@material/linear-progress" : "mdc.linearProgress" ,
159- "@material/list" : "mdc.list" ,
160- "@material/menu" : "mdc.menu" ,
161- "@material/menu-surface" : "mdc.menuSurface" ,
162- "@material/notched-outline" : "mdc.notchedOutline" ,
163- "@material/radio" : "mdc.radio" ,
164- "@material/ripple" : "mdc.ripple" ,
165- "@material/select" : "mdc.select" ,
166- "@material/slider" : "mdc.slider" ,
167- "@material/snackbar" : "mdc.snackbar" ,
168- "@material/switch" : "mdc.switch" ,
169- "@material/tab" : "mdc.tab" ,
170- "@material/tab-bar" : "mdc.tabBar" ,
171- "@material/tab-indicator" : "mdc.tabIndicator" ,
172- "@material/tab-scroller" : "mdc.tabScroller" ,
173- "@material/text-field" : "mdc.textField" ,
174- "@material/top-app-bar" : "mdc.topAppBar" ,
175- "moment" : "moment" ,
176- "tslib" : "tslib" ,
177- }
178-
179- # Rollup globals for cdk subpackages in the form of, e.g., {"@angular/cdk/table": "ng.cdk.table"}
180- ROLLUP_GLOBALS .update ({
181- "@angular/cdk/%s" % p : "ng.cdk.%s" % p
182- for p in CDK_PACKAGES
183- })
184-
185- # Rollup globals for cdk subpackages in the form of, e.g.,
186- # {"@angular/cdk-experimental/scrolling": "ng.cdkExperimental.scrolling"}
187- ROLLUP_GLOBALS .update ({
188- "@angular/cdk-experimental/%s" % p : "ng.cdkExperimental.%s" % p
189- for p in CDK_EXPERIMENTAL_PACKAGES
190- })
191-
192- # Rollup globals for material subpackages, e.g., {"@angular/material/list": "ng.material.list"}
193- ROLLUP_GLOBALS .update ({
194- "@angular/material/%s" % p : "ng.material.%s" % p
195- for p in MATERIAL_PACKAGES
196- })
197-
198- # Rollup globals for material experimental subpackages, e.g.,
199- # {"@angular/material-experimental/list": "ng.materialExperimental.list"}
200- ROLLUP_GLOBALS .update ({
201- "@angular/material-experimental/%s" % p : "ng.materialExperimental.%s" % p
202- for p in MATERIAL_EXPERIMENTAL_PACKAGES
203- })
204-
205- # Rollup globals the examples package. Since individual examples are
206- # grouped by package and component, the primary entry-point imports
207- # from entry-points which should be treated as external imports.
208- ROLLUP_GLOBALS .update ({
209- "@angular/material-examples/cdk/%s" % p : "ng.materialExamples.cdk.%s" % p
210- for p in CDK_PACKAGES
211- })
212- ROLLUP_GLOBALS .update ({
213- "@angular/material-examples/cdk-experimental/%s" % p : "ng.materialExamples.cdkExperimental.%s" % p
214- for p in CDK_EXPERIMENTAL_PACKAGES
215- })
216- ROLLUP_GLOBALS .update ({
217- "@angular/material-examples/material/%s" % p : "ng.materialExamples.material.%s" % p
218- for p in MATERIAL_PACKAGES
219- })
220- ROLLUP_GLOBALS .update ({
221- "@angular/material-examples/material-experimental/%s" % p : "ng.materialExamples.materialExperimental.%s" % p
222- for p in MATERIAL_EXPERIMENTAL_PACKAGES
223- })
224-
22511# UMD bundles for Angular packages and subpackages we depend on for development and testing.
22612ANGULAR_LIBRARY_UMDS = [
22713 "@npm//:node_modules/@angular/animations/bundles/animations-browser.umd.js" ,
0 commit comments