mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
282736f8be
* build: build cdk with angular from source * Continues the long-term Bazel goal by fixing the CDK bazel build targets. Also builds the CDK targets with Angular from source. Follow up's will try to make serving, and testing possible. * Build package on CI * No longer compile with AOT compiler that generates factory files that cannot be packaged into "ng_package"
25 lines
589 B
Python
25 lines
589 B
Python
package(default_visibility=["//visibility:public"])
|
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
|
load("@build_bazel_rules_nodejs//:defs.bzl", "nodejs_binary")
|
|
|
|
|
|
ts_library(
|
|
name = "sass_bundle_lib",
|
|
srcs = ["sass_bundle.ts"],
|
|
deps = [
|
|
"@npm//@types/node",
|
|
"@npm//scss-bundle",
|
|
],
|
|
tsconfig = "bazel-tools-tsconfig.json",
|
|
)
|
|
|
|
# Executable for the custom sass_bundle rule (see sass_bundle.bzl).
|
|
nodejs_binary(
|
|
name = "sass_bundle",
|
|
data = [
|
|
"@npm//scss-bundle",
|
|
":sass_bundle_lib",
|
|
],
|
|
entry_point = "angular_material/tools/sass_bundle.js",
|
|
)
|