build(cdk): add bazel ng_module rules (#8370)

Part of #8369
This commit is contained in:
Jeremy Elbourn
2017-11-15 11:47:56 -08:00
committed by GitHub
parent 262c23b840
commit cf39a419ff
24 changed files with 6147 additions and 2682 deletions
+36
View File
@@ -0,0 +1,36 @@
workspace(name = "angular_material_src")
# Add nodejs rules
git_repository(
name = "build_bazel_rules_nodejs",
remote = "https://github.com/bazelbuild/rules_nodejs.git",
# TODO(jelbourn): use the correct tag here.
commit = "31d36ff2acdf630d1e331f38006cf1a5d303d338",
)
# NOTE: this rule installs nodejs, npm, and yarn, but does NOT install
# your npm dependencies. You must still run the package manager.
load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories")
node_repositories(package_json = ["//:package.json"])
# Add sass rules
git_repository(
name = "io_bazel_rules_sass",
remote = "https://github.com/bazelbuild/rules_sass.git",
tag = "0.0.2",
)
load("@io_bazel_rules_sass//sass:sass.bzl", "sass_repositories")
sass_repositories()
# Add TypeScript rules
local_repository(
name = "build_bazel_rules_typescript",
path = "node_modules/@bazel/typescript",
)
# Add Angular rules
local_repository(
name = "angular",
path = "node_modules/@angular/bazel",
)