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.
|
2019-05-22 17:28:42 -07:00
|
|
|
workspace(
|
|
|
|
name = "project",
|
|
|
|
managed_directories = {"@npm": ["node_modules"]},
|
|
|
|
)
|
2019-03-04 16:18:15 -08:00
|
|
|
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
|
2019-06-07 09:28:41 -07:00
|
|
|
RULES_NODEJS_VERSION = "0.31.1"
|
|
|
|
RULES_NODEJS_SHA256 = "e04a82a72146bfbca2d0575947daa60fda1878c8d3a3afe868a8ec39a6b968bb"
|
2019-03-04 16:18:15 -08:00
|
|
|
http_archive(
|
|
|
|
name = "build_bazel_rules_nodejs",
|
2019-03-18 14:50:52 -07:00
|
|
|
sha256 = RULES_NODEJS_SHA256,
|
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
|
2019-05-22 17:28:42 -07:00
|
|
|
RULES_SASS_VERSION = "3a4f31c74513ccfacce3f955b5c006352f7e9587"
|
|
|
|
RULES_SASS_SHA256 = "4c87befcb17282b039ba8341df9a6cc45f461bf05776dcf35c7e40c7e79ce374"
|
2019-03-04 16:18:15 -08:00
|
|
|
http_archive(
|
|
|
|
name = "io_bazel_rules_sass",
|
2019-03-18 14:50:52 -07:00
|
|
|
sha256 = RULES_SASS_SHA256,
|
2019-03-04 16:18:15 -08:00
|
|
|
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.
|
|
|
|
|
2019-05-22 17:28:42 -07:00
|
|
|
load("@build_bazel_rules_nodejs//:defs.bzl", "check_bazel_version", "yarn_install")
|
|
|
|
check_bazel_version(
|
|
|
|
message = """
|
|
|
|
You no longer need to install Bazel on your machine.
|
|
|
|
Your project should have a dependency on the @bazel/bazel package which supplies it.
|
|
|
|
Try running `yarn bazel` instead.
|
|
|
|
(If you did run that, check that you've got a fresh `yarn install`)
|
|
|
|
|
|
|
|
""",
|
|
|
|
minimum_bazel_version = "0.26.0",
|
|
|
|
)
|
2019-03-04 16:18:15 -08:00
|
|
|
yarn_install(
|
|
|
|
name = "npm",
|
2019-06-07 09:28:41 -07:00
|
|
|
data = ["//:angular-metadata.tsconfig.json"],
|
2019-03-04 16:18:15 -08:00
|
|
|
package_json = "//:package.json",
|
|
|
|
yarn_lock = "//:yarn.lock",
|
2019-06-07 09:28:41 -07:00
|
|
|
# Temporarily disable node_modules symlinking until the fix for
|
|
|
|
# https://github.com/bazelbuild/bazel/issues/8487 makes it into a
|
|
|
|
# future Bazel release
|
|
|
|
symlink_node_modules = False,
|
2019-03-04 16:18:15 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
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()
|