2019-03-04 16:18:15 -08:00
|
|
|
# WARNING: This file is generated and it's not meant to be edited.
|
|
|
|
# Before making any changes, please read Bazel documentation.
|
|
|
|
# https://docs.bazel.build/versions/master/be/workspace.html
|
|
|
|
# The WORKSPACE file tells Bazel that this directory is a "workspace", which is like a project root.
|
|
|
|
# The content of this file specifies all the external dependencies Bazel needs to perform a build.
|
|
|
|
|
|
|
|
####################################
|
|
|
|
# ESModule imports (and TypeScript imports) can be absolute starting with the workspace name.
|
|
|
|
# The name of the workspace should match the npm package where we publish, so that these
|
|
|
|
# imports also make sense when referencing the published package.
|
|
|
|
workspace(name = "project")
|
|
|
|
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
|
2019-03-14 19:35:00 -07:00
|
|
|
RULES_NODEJS_VERSION = "0.27.4"
|
2019-03-04 16:18:15 -08:00
|
|
|
http_archive(
|
|
|
|
name = "build_bazel_rules_nodejs",
|
2019-03-14 19:35:00 -07:00
|
|
|
sha256 = "251a023b6c5c5c97db1bfe24652dc19dad05f4da68f8e1821d92d911fa3f4ef4",
|
2019-03-04 16:18:15 -08:00
|
|
|
url = "https://github.com/bazelbuild/rules_nodejs/releases/download/%s/rules_nodejs-%s.tar.gz" % (RULES_NODEJS_VERSION, RULES_NODEJS_VERSION),
|
|
|
|
)
|
|
|
|
|
|
|
|
# Rules for compiling sass
|
|
|
|
RULES_SASS_VERSION = "1.17.2"
|
|
|
|
http_archive(
|
|
|
|
name = "io_bazel_rules_sass",
|
|
|
|
sha256 = "e5316ee8a09d1cbb732d3938b400836bf94dba91a27476e9e27706c4c0edae1f",
|
|
|
|
url = "https://github.com/bazelbuild/rules_sass/archive/%s.zip" % RULES_SASS_VERSION,
|
|
|
|
strip_prefix = "rules_sass-%s" % RULES_SASS_VERSION,
|
|
|
|
)
|
|
|
|
|
|
|
|
####################################
|
|
|
|
# Load and install our dependencies downloaded above.
|
|
|
|
|
|
|
|
load("@build_bazel_rules_nodejs//:defs.bzl", "check_bazel_version", "node_repositories", "yarn_install")
|
|
|
|
check_bazel_version("0.22.0")
|
|
|
|
node_repositories()
|
|
|
|
yarn_install(
|
|
|
|
name = "npm",
|
|
|
|
data = ["//:angular-metadata.tsconfig.json"],
|
|
|
|
package_json = "//:package.json",
|
|
|
|
yarn_lock = "//:yarn.lock",
|
|
|
|
)
|
|
|
|
|
|
|
|
load("@npm//:install_bazel_dependencies.bzl", "install_bazel_dependencies")
|
|
|
|
install_bazel_dependencies()
|
|
|
|
|
|
|
|
load("@npm_bazel_karma//:package.bzl", "rules_karma_dependencies")
|
|
|
|
rules_karma_dependencies()
|
|
|
|
|
|
|
|
load("@io_bazel_rules_webtesting//web:repositories.bzl", "web_test_repositories")
|
|
|
|
web_test_repositories()
|
|
|
|
|
|
|
|
load("@npm_bazel_karma//:browser_repositories.bzl", "browser_repositories")
|
|
|
|
browser_repositories()
|
|
|
|
|
|
|
|
load("@npm_bazel_typescript//:index.bzl", "ts_setup_workspace")
|
|
|
|
ts_setup_workspace()
|
|
|
|
|
|
|
|
load("@io_bazel_rules_sass//sass:sass_repositories.bzl", "sass_repositories")
|
|
|
|
sass_repositories()
|