2018-03-12 11:12:38 -07:00
|
|
|
workspace(name = "angular_material")
|
2017-11-15 11:47:56 -08:00
|
|
|
|
|
|
|
|
# Add nodejs rules
|
2018-03-22 14:21:04 -07:00
|
|
|
http_archive(
|
2017-11-15 11:47:56 -08:00
|
|
|
name = "build_bazel_rules_nodejs",
|
2018-05-10 17:01:04 -07:00
|
|
|
url = "https://github.com/bazelbuild/rules_nodejs/archive/0.8.0.zip",
|
|
|
|
|
strip_prefix = "rules_nodejs-0.8.0",
|
|
|
|
|
sha256 = "4e40dd49ae7668d245c3107645f2a138660fcfd975b9310b91eda13f0c973953",
|
2017-11-15 11:47:56 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# NOTE: this rule installs nodejs, npm, and yarn, but does NOT install
|
|
|
|
|
# your npm dependencies. You must still run the package manager.
|
2018-03-22 14:21:04 -07:00
|
|
|
load("@build_bazel_rules_nodejs//:defs.bzl", "check_bazel_version", "node_repositories")
|
|
|
|
|
|
2018-05-10 17:01:04 -07:00
|
|
|
check_bazel_version("0.13.0")
|
2017-11-15 11:47:56 -08:00
|
|
|
node_repositories(package_json = ["//:package.json"])
|
|
|
|
|
|
|
|
|
|
# Add sass rules
|
2018-06-06 22:54:28 -07:00
|
|
|
http_archive(
|
2017-11-15 11:47:56 -08:00
|
|
|
name = "io_bazel_rules_sass",
|
2018-06-06 22:54:28 -07:00
|
|
|
url = "https://github.com/bazelbuild/rules_sass/archive/0.1.0.zip",
|
|
|
|
|
strip_prefix = "rules_sass-0.1.0",
|
|
|
|
|
sha256 = "b243c4d64f054c174051785862ab079050d90b37a1cef7da93821c6981cb9ad4",
|
2017-11-15 11:47:56 -08:00
|
|
|
)
|
|
|
|
|
|
2018-06-06 22:54:28 -07:00
|
|
|
load("@io_bazel_rules_sass//sass:sass_repositories.bzl", "sass_repositories")
|
2017-11-15 11:47:56 -08:00
|
|
|
sass_repositories()
|
|
|
|
|
|
|
|
|
|
# Add TypeScript rules
|
2018-03-22 14:21:04 -07:00
|
|
|
http_archive(
|
2017-11-15 11:47:56 -08:00
|
|
|
name = "build_bazel_rules_typescript",
|
2018-05-10 17:01:04 -07:00
|
|
|
url = "https://github.com/bazelbuild/rules_typescript/archive/0.12.3.zip",
|
|
|
|
|
strip_prefix = "rules_typescript-0.12.3",
|
|
|
|
|
sha256 = "967068c3540f59407716fbeb49949c1600dbf387faeeab3089085784dd21f60c",
|
2017-11-15 11:47:56 -08:00
|
|
|
)
|
|
|
|
|
|
2018-01-08 18:30:14 +01:00
|
|
|
# Setup TypeScript Bazel workspace
|
2018-02-09 23:19:44 +01:00
|
|
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_setup_workspace")
|
2018-01-08 18:30:14 +01:00
|
|
|
ts_setup_workspace()
|
2017-12-07 14:34:09 -08:00
|
|
|
|
2017-11-15 11:47:56 -08:00
|
|
|
# Add Angular rules
|
|
|
|
|
local_repository(
|
|
|
|
|
name = "angular",
|
|
|
|
|
path = "node_modules/@angular/bazel",
|
|
|
|
|
)
|
2017-12-07 14:34:09 -08:00
|
|
|
|
2017-12-19 17:12:39 -08:00
|
|
|
# Add rxjs
|
2017-12-07 14:34:09 -08:00
|
|
|
local_repository(
|
|
|
|
|
name = "rxjs",
|
|
|
|
|
path = "node_modules/rxjs/src",
|
|
|
|
|
)
|
2018-05-10 17:01:04 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
# This commit matches the version of buildifier in angular/ngcontainer
|
|
|
|
|
# If you change this, also check if it matches the version in the angular/ngcontainer
|
|
|
|
|
# version in /.circleci/config.yml
|
|
|
|
|
BAZEL_BUILDTOOLS_VERSION = "fd9878fd5de921e0bbab3dcdcb932c2627812ee1"
|