64 lines
1.3 KiB
Python
64 lines
1.3 KiB
Python
workspace(name = "bazel_integration_test")
|
|
|
|
#
|
|
# Download Bazel toolchain dependencies as needed by build actions
|
|
#
|
|
|
|
local_repository(
|
|
name = "angular",
|
|
path = "../..",
|
|
)
|
|
|
|
local_repository(
|
|
name = "rxjs",
|
|
path = "node_modules/rxjs/src",
|
|
)
|
|
|
|
load("@angular//packages/bazel:package.bzl", "rules_angular_dependencies")
|
|
|
|
rules_angular_dependencies()
|
|
|
|
#
|
|
# Setup dependencies loaded above
|
|
#
|
|
|
|
load("@build_bazel_rules_nodejs//:defs.bzl", "check_bazel_version", "node_repositories", "yarn_install")
|
|
|
|
check_bazel_version("0.17.0")
|
|
node_repositories(
|
|
package_json = ["//:package.json"],
|
|
node_version = "10.9.0",
|
|
yarn_version = "1.9.2",
|
|
)
|
|
|
|
yarn_install(
|
|
name = "npm",
|
|
package_json = "//:package.json",
|
|
yarn_lock = "//:yarn.lock",
|
|
)
|
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
|
|
|
|
go_rules_dependencies()
|
|
go_register_toolchains()
|
|
|
|
load("@io_bazel_rules_webtesting//web:repositories.bzl", "browser_repositories", "web_test_repositories")
|
|
|
|
web_test_repositories()
|
|
browser_repositories(
|
|
chromium = True,
|
|
firefox = True,
|
|
)
|
|
|
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_setup_workspace")
|
|
|
|
ts_setup_workspace()
|
|
|
|
load("@io_bazel_rules_sass//sass:sass_repositories.bzl", "sass_repositories")
|
|
|
|
sass_repositories()
|
|
|
|
load("@angular//:index.bzl", "ng_setup_workspace")
|
|
|
|
ng_setup_workspace()
|