forked from angular/components
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBUILD.bazel
55 lines (49 loc) · 1.28 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
load(
"//src/material-experimental:config.bzl",
"MATERIAL_EXPERIMENTAL_SCSS_LIBS",
"MATERIAL_EXPERIMENTAL_TARGETS",
"MATERIAL_EXPERIMENTAL_TESTING_TARGETS",
)
load("//tools:defaults.bzl", "ng_package", "sass_library", "ts_project")
load("@npm//:defs.bzl", "npm_link_all_packages")
package(default_visibility = ["//visibility:public"])
npm_link_all_packages()
ts_project(
name = "material-experimental",
srcs = glob(
["*.ts"],
exclude = ["**/*.spec.ts"],
),
deps = ["//:node_modules/@angular/core"],
)
sass_library(
name = "theming_scss_lib",
srcs = MATERIAL_EXPERIMENTAL_SCSS_LIBS,
)
sass_library(
name = "sass_lib",
srcs = ["_index.scss"],
deps = [
":theming_scss_lib",
],
)
ng_package(
name = "npm_package",
package_name = "@angular/material-experimental",
srcs = [
"package.json",
":sass_lib",
],
package_deps = [
":node_modules/@angular/material",
":node_modules/@angular/cdk",
":node_modules/@angular/cdk-experimental",
],
tags = ["release-package"],
visibility = [
"//:__pkg__",
"//goldens:__pkg__",
"//integration:__subpackages__",
],
deps = MATERIAL_EXPERIMENTAL_TARGETS + MATERIAL_EXPERIMENTAL_TESTING_TARGETS,
)