forked from angular/components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
packages.bzl
90 lines (82 loc) · 1.91 KB
/
packages.bzl
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
# List of all components / subpackages.
CDK_PACKAGES = [
"coercion",
"keycodes",
"scrolling",
"accordion",
"observers",
"a11y",
"overlay",
"platform",
"bidi",
"table",
"tree",
"portal",
"layout",
"stepper",
"text-field",
"collections",
]
CDK_TARGETS = ["//src/cdk"] + ["//src/cdk/%s" % p for p in CDK_PACKAGES]
MATERIAL_PACKAGES = [
"autocomplete",
"badge",
"bottom-sheet",
"button",
"button-toggle",
"card",
"checkbox",
"chips",
"core",
"datepicker",
"dialog",
"divider",
"expansion",
"form-field",
"grid-list",
"icon",
"input",
"list",
"menu",
"paginator",
"progress-bar",
"progress-spinner",
"radio",
"select",
"sidenav",
"slide-toggle",
"slider",
"snack-bar",
"sort",
"stepper",
"table",
"tabs",
"toolbar",
"tooltip",
"tree",
]
MATERIAL_TARGETS = ["//src/lib:material"] + ["//src/lib/%s" % p for p in MATERIAL_PACKAGES]
# Each individual package uses a placeholder for the version of Angular to ensure they're
# all in-sync. This map is passed to each ng_package rule to stamp out the appropriate
# version for the placeholders.
ANGULAR_PACKAGE_VERSION = ">=6.0.0-beta.0 <7.0.0"
VERSION_PLACEHOLDER_REPLACEMENTS = {
"0.0.0-NG": ANGULAR_PACKAGE_VERSION,
}
# Base rollup globals for everything in the repo.
ROLLUP_GLOBALS = {
'tslib': 'tslib',
'moment': 'moment',
'@angular/cdk': 'ng.cdk',
'@angular/cdk-experimental': 'ng.cdkExperimental',
'@angular/material': 'ng.material',
'@angular/material-experimental': 'ng.materialExperimental',
}
# Rollup globals for cdk subpackages in the form of, e.g., {"@angular/cdk/table": "ng.cdk.table"}
ROLLUP_GLOBALS.update({
"@angular/cdk/%s" % p: "ng.cdk.%s" % p for p in CDK_PACKAGES
})
# Rollup globals for material subpackages, e.g., {"@angular/material/list": "ng.material.list"}
ROLLUP_GLOBALS.update({
"@angular/material/%s" % p: "ng.material.%s" % p for p in MATERIAL_PACKAGES
})