build: add bazel config for cdk-experimental/dialog (#11548)

This commit is contained in:
Kristiyan Kostadinov
2018-05-30 18:15:31 +03:00
committed by Joey Perrott
parent e51f759519
commit 6e8202eeb4
5 changed files with 3540 additions and 3500 deletions
+3499 -3499
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -22,7 +22,7 @@ CDK_PACKAGES = [
CDK_TARGETS = ["//src/cdk"] + ["//src/cdk/%s" % p for p in CDK_PACKAGES]
CDK_EXPERIMENTAL_PACKAGES = [
# "dialog", # Disabled because BUILD.bazel doesn't exist yet
"dialog",
"scrolling",
]
+39
View File
@@ -0,0 +1,39 @@
package(default_visibility=["//visibility:public"])
load("@angular//:index.bzl", "ng_module")
load("@io_bazel_rules_sass//sass:sass.bzl", "sass_library", "sass_binary")
ng_module(
name = "dialog",
srcs = glob(["**/*.ts"], exclude=["**/*.spec.ts"]),
module_name = "@angular/cdk-experimental/dialog",
assets = [":dialog_container_css"] + glob(["**/*.html"]),
deps = [
"//src/cdk/a11y",
"//src/cdk/bidi",
"//src/cdk/keycodes",
"//src/cdk/overlay",
"//src/cdk/portal",
],
tsconfig = "//src/lib:tsconfig-build.json",
)
# TODO(jelbourn): replace this w/ sass_library when it supports acting like a filegroup
filegroup(
name = "dialog_container_scss_partials",
srcs = glob(["**/_*.scss"]),
)
sass_binary(
name = "dialog_container_scss",
src = "dialog-container.scss",
)
# TODO(jelbourn): remove this when sass_binary supports specifying an output filename and dir.
# Copy the output of the sass_binary such that the filename and path match what we expect.
genrule(
name = "dialog_container_css",
srcs = [":dialog_container_scss.css"],
outs = ["dialog-container.css"],
cmd = "cp $< $@",
)
+1
View File
@@ -0,0 +1 @@
declare var module: {id: string};