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")
|
|
|
|
|
2020-01-02 19:05:47 -08:00
|
|
|
RULES_NODEJS_VERSION = "1.0.1"
|
|
|
|
RULES_NODEJS_SHA256 = "e1a0d6eb40ec89f61a13a028e7113aa3630247253bcb1406281b627e44395145"
|
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-11-27 14:12:10 -08:00
|
|
|
RULES_SASS_VERSION = "1.24.0"
|
|
|
|
RULES_SASS_SHA256 = "77e241148f26d5dbb98f96fe0029d8f221c6cb75edbb83e781e08ac7f5322c5f"
|
2019-03-04 16:18:15 -08:00
|
|
|
http_archive(
|
|
|
|
name = "io_bazel_rules_sass",
|
2019-06-18 21:26:53 -07:00
|
|
|
sha256 = RULES_SASS_SHA256,
|
|
|
|
strip_prefix = "rules_sass-%s" % RULES_SASS_VERSION,
|
2019-11-27 14:12:10 -08:00
|
|
|
urls = [
|
|
|
|
"https://github.com/bazelbuild/rules_sass/archive/%s.zip" % RULES_SASS_VERSION,
|
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/rules_sass/archive/%s.zip" % RULES_SASS_VERSION,
|
|
|
|
],
|
2019-03-04 16:18:15 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
####################################
|
|
|
|
# Load and install our dependencies downloaded above.
|
|
|
|
|
2019-10-25 01:13:43 -07:00
|
|
|
load("@build_bazel_rules_nodejs//:index.bzl", "check_bazel_version", "node_repositories",
|
2019-06-17 19:43:38 +02:00
|
|
|
"yarn_install")
|
2019-05-22 17:28:42 -07:00
|
|
|
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`)
|
|
|
|
|
|
|
|
""",
|
2019-06-12 18:18:26 -07:00
|
|
|
minimum_bazel_version = "0.27.0",
|
2019-05-22 17:28:42 -07:00
|
|
|
)
|
2019-06-17 19:43:38 +02:00
|
|
|
|
|
|
|
# Setup the Node repositories. We need a NodeJS version that is more recent than v10.15.0
|
|
|
|
# because "selenium-webdriver" which is required for "ng e2e" cannot be installed.
|
|
|
|
# TODO: remove the custom repositories once "rules_nodejs" supports v10.16.0 by default.
|
|
|
|
node_repositories(
|
|
|
|
node_repositories = {
|
|
|
|
"10.16.0-darwin_amd64": ("node-v10.16.0-darwin-x64.tar.gz", "node-v10.16.0-darwin-x64", "6c009df1b724026d84ae9a838c5b382662e30f6c5563a0995532f2bece39fa9c"),
|
|
|
|
"10.16.0-linux_amd64": ("node-v10.16.0-linux-x64.tar.xz", "node-v10.16.0-linux-x64", "1827f5b99084740234de0c506f4dd2202a696ed60f76059696747c34339b9d48"),
|
|
|
|
"10.16.0-windows_amd64": ("node-v10.16.0-win-x64.zip", "node-v10.16.0-win-x64", "aa22cb357f0fb54ccbc06b19b60e37eefea5d7dd9940912675d3ed988bf9a059"),
|
|
|
|
},
|
|
|
|
node_version = "10.16.0",
|
|
|
|
)
|
|
|
|
|
2019-03-04 16:18:15 -08:00
|
|
|
yarn_install(
|
|
|
|
name = "npm",
|
|
|
|
package_json = "//:package.json",
|
|
|
|
yarn_lock = "//:yarn.lock",
|
|
|
|
)
|
|
|
|
|
|
|
|
load("@npm//:install_bazel_dependencies.bzl", "install_bazel_dependencies")
|
|
|
|
install_bazel_dependencies()
|
|
|
|
|
2019-07-24 08:52:26 -07:00
|
|
|
load("@npm_bazel_protractor//:package.bzl", "npm_bazel_protractor_dependencies")
|
|
|
|
npm_bazel_protractor_dependencies()
|
|
|
|
|
2019-10-04 05:17:26 -07:00
|
|
|
load("@npm_bazel_karma//:package.bzl", "npm_bazel_karma_dependencies")
|
|
|
|
npm_bazel_karma_dependencies()
|
2019-03-04 16:18:15 -08:00
|
|
|
|
|
|
|
load("@io_bazel_rules_webtesting//web:repositories.bzl", "web_test_repositories")
|
|
|
|
web_test_repositories()
|
|
|
|
|
2019-08-15 08:35:33 -07:00
|
|
|
load("@io_bazel_rules_webtesting//web/versioned:browsers-0.3.2.bzl", "browser_repositories")
|
|
|
|
browser_repositories(chromium = True, firefox = True)
|
2019-03-04 16:18:15 -08:00
|
|
|
|
|
|
|
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()
|