forked from angular/components
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBUILD.bazel
195 lines (188 loc) · 7.38 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
load("@npm//:defs.bzl", "npm_link_all_packages")
load(
"//src/material:config.bzl",
"MATERIAL_ENTRYPOINTS",
"MATERIAL_TARGETS",
"MATERIAL_TESTING_TARGETS",
)
load("//tools:defaults.bzl", "ng_package", "sass_library", "ts_project")
package(default_visibility = ["//visibility:public"])
npm_link_all_packages()
ts_project(
name = "material",
srcs = ["index.ts"],
)
filegroup(
name = "overviews",
srcs = ["//src/material/%s:overview" % name for name in MATERIAL_ENTRYPOINTS],
)
filegroup(
name = "tokens",
srcs = ["//src/material/%s:tokens" % name for name in MATERIAL_ENTRYPOINTS],
)
sass_library(
name = "sass_lib",
srcs = [
"_index.scss",
],
deps = [
"//src/material/autocomplete:theme",
"//src/material/badge:theme",
"//src/material/bottom-sheet:theme",
"//src/material/button:fab_theme",
"//src/material/button:icon_button_theme",
"//src/material/button:theme",
"//src/material/button-toggle:theme",
"//src/material/card:theme",
"//src/material/checkbox:theme",
"//src/material/chips:theme",
"//src/material/core:core_sass",
"//src/material/core:ripple_sass",
"//src/material/core:ripple_sass_theme",
"//src/material/core:theme_sass",
"//src/material/core/color",
"//src/material/core/density/private:all_density",
"//src/material/core/focus-indicators",
"//src/material/core/m2:m2_sass",
"//src/material/core/option:theme",
"//src/material/core/selection/pseudo-checkbox:_pseudo_checkbox_common",
"//src/material/core/selection/pseudo-checkbox:sass_theme",
"//src/material/core/style:_validation",
"//src/material/core/style:elevation",
"//src/material/core/style:private",
"//src/material/core/style:sass_utils",
"//src/material/core/style:variables",
"//src/material/core/style:vendor_prefixes",
"//src/material/core/theming",
"//src/material/core/theming:_color_api_backwards_compatibility",
"//src/material/core/theming:_definition",
"//src/material/core/theming:_inspection",
"//src/material/core/theming:_palettes",
"//src/material/core/theming:core_all_theme",
"//src/material/core/tokens:m3_system",
"//src/material/core/typography",
"//src/material/core/typography:all_typography",
"//src/material/core/typography:utils",
"//src/material/datepicker:theme",
"//src/material/dialog:dialog_legacy_padding",
"//src/material/dialog:theme",
"//src/material/divider:theme",
"//src/material/expansion:theme",
"//src/material/form-field:theme",
"//src/material/grid-list:theme",
"//src/material/icon:theme",
"//src/material/input:theme",
"//src/material/list:theme",
"//src/material/menu:theme",
"//src/material/paginator:theme",
"//src/material/progress-bar:theme",
"//src/material/progress-spinner:theme",
"//src/material/radio:theme",
"//src/material/select:theme",
"//src/material/sidenav:theme",
"//src/material/slide-toggle:theme",
"//src/material/slider:theme",
"//src/material/snack-bar:theme",
"//src/material/sort:theme",
"//src/material/stepper:theme",
"//src/material/table:theme",
"//src/material/tabs:theme",
"//src/material/timepicker:theme",
"//src/material/toolbar:theme",
"//src/material/tooltip:theme",
"//src/material/tree:theme",
],
)
# Creates the @angular/material package published to npm.
ng_package(
name = "npm_package",
package_name = "@angular/material",
srcs = [
"package.json",
":sass_lib",
"//src/material/autocomplete:theme",
"//src/material/badge:theme",
"//src/material/bottom-sheet:theme",
"//src/material/button:fab_theme",
"//src/material/button:icon_button_theme",
"//src/material/button:theme",
"//src/material/button-toggle:theme",
"//src/material/card:theme",
"//src/material/checkbox:theme",
"//src/material/chips:theme",
"//src/material/core:core_sass",
"//src/material/core:ripple_sass",
"//src/material/core:ripple_sass_theme",
"//src/material/core:theme_sass",
"//src/material/core/color",
"//src/material/core/density/private:all_density",
"//src/material/core/focus-indicators",
"//src/material/core/m2:m2_sass",
"//src/material/core/option:theme",
"//src/material/core/selection/pseudo-checkbox:_pseudo_checkbox_common",
"//src/material/core/selection/pseudo-checkbox:sass_theme",
"//src/material/core/style:_validation",
"//src/material/core/style:elevation",
"//src/material/core/style:private",
"//src/material/core/style:sass_utils",
"//src/material/core/style:variables",
"//src/material/core/style:vendor_prefixes",
"//src/material/core/theming",
"//src/material/core/theming:_color_api_backwards_compatibility",
"//src/material/core/theming:_definition",
"//src/material/core/theming:_inspection",
"//src/material/core/theming:_palettes",
"//src/material/core/theming:core_all_theme",
"//src/material/core/tokens:m3_system",
"//src/material/core/typography",
"//src/material/core/typography:all_typography",
"//src/material/core/typography:utils",
"//src/material/datepicker:theme",
"//src/material/dialog:dialog_legacy_padding",
"//src/material/dialog:theme",
"//src/material/divider:theme",
"//src/material/expansion:theme",
"//src/material/form-field:theme",
"//src/material/grid-list:theme",
"//src/material/icon:theme",
"//src/material/input:theme",
"//src/material/list:theme",
"//src/material/menu:theme",
"//src/material/paginator:theme",
"//src/material/prebuilt-themes:azure-blue",
"//src/material/prebuilt-themes:cyan-orange",
"//src/material/prebuilt-themes:deeppurple-amber",
"//src/material/prebuilt-themes:indigo-pink",
"//src/material/prebuilt-themes:magenta-violet",
"//src/material/prebuilt-themes:pink-bluegrey",
"//src/material/prebuilt-themes:purple-green",
"//src/material/prebuilt-themes:rose-red",
"//src/material/progress-bar:theme",
"//src/material/progress-spinner:theme",
"//src/material/radio:theme",
"//src/material/select:theme",
"//src/material/sidenav:theme",
"//src/material/slide-toggle:theme",
"//src/material/slider:theme",
"//src/material/snack-bar:theme",
"//src/material/sort:theme",
"//src/material/stepper:theme",
"//src/material/table:theme",
"//src/material/tabs:theme",
"//src/material/timepicker:theme",
"//src/material/toolbar:theme",
"//src/material/tooltip:theme",
"//src/material/tree:theme",
],
nested_packages = ["//src/material/schematics:npm_package"],
package_deps = [
":node_modules/@angular/cdk",
],
tags = ["release-package"],
visibility = [
"//:__pkg__",
"//goldens:__pkg__",
"//integration:__subpackages__",
],
deps = MATERIAL_TARGETS + MATERIAL_TESTING_TARGETS,
)