mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
cf39a419ff
Part of #8369
37 lines
994 B
Python
37 lines
994 B
Python
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",
|
|
)
|