2017-12-06 09:56:49 -05:00
|
|
|
workspace(name = "bazel_integration_test")
|
|
|
|
|
2018-12-01 19:08:15 -05:00
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
|
2018-05-29 18:35:48 -04:00
|
|
|
#
|
|
|
|
# Download Bazel toolchain dependencies as needed by build actions
|
|
|
|
#
|
2018-06-25 14:22:23 -04:00
|
|
|
|
|
|
|
local_repository(
|
|
|
|
name = "angular",
|
2018-08-21 04:37:09 -04:00
|
|
|
path = "../..",
|
2018-06-25 14:22:23 -04:00
|
|
|
)
|
|
|
|
|
2018-10-16 16:20:00 -04:00
|
|
|
http_archive(
|
2018-06-25 14:22:23 -04:00
|
|
|
name = "rxjs",
|
2018-10-16 16:20:00 -04:00
|
|
|
sha256 = "72b0b4e517f43358f554c125e40e39f67688cd2738a8998b4a266981ed32f403",
|
2018-12-06 17:46:51 -05:00
|
|
|
strip_prefix = "package/src",
|
|
|
|
url = "https://registry.yarnpkg.com/rxjs/-/rxjs-6.3.3.tgz",
|
2018-06-25 14:22:23 -04:00
|
|
|
)
|
|
|
|
|
2018-10-04 16:14:14 -04:00
|
|
|
load("@angular//packages/bazel:package.bzl", "rules_angular_dependencies")
|
|
|
|
|
|
|
|
rules_angular_dependencies()
|
|
|
|
|
2018-11-26 00:13:52 -05:00
|
|
|
load("@build_bazel_rules_typescript//:package.bzl", "rules_typescript_dependencies")
|
|
|
|
|
|
|
|
rules_typescript_dependencies()
|
|
|
|
|
|
|
|
load("@build_bazel_rules_nodejs//:package.bzl", "rules_nodejs_dependencies")
|
|
|
|
|
|
|
|
rules_nodejs_dependencies()
|
|
|
|
|
2018-10-18 12:58:38 -04:00
|
|
|
http_archive(
|
|
|
|
name = "io_bazel_rules_sass",
|
|
|
|
sha256 = "dbe9fb97d5a7833b2a733eebc78c9c1e3880f676ac8af16e58ccf2139cbcad03",
|
|
|
|
strip_prefix = "rules_sass-1.11.0",
|
|
|
|
url = "https://github.com/bazelbuild/rules_sass/archive/1.11.0.zip",
|
|
|
|
)
|
|
|
|
|
2018-05-29 18:35:48 -04:00
|
|
|
#
|
2018-10-04 16:14:14 -04:00
|
|
|
# Setup dependencies loaded above
|
2018-05-29 18:35:48 -04:00
|
|
|
#
|
|
|
|
|
2018-10-04 16:14:14 -04:00
|
|
|
load("@build_bazel_rules_nodejs//:defs.bzl", "check_bazel_version", "node_repositories", "yarn_install")
|
2018-05-29 18:35:48 -04:00
|
|
|
|
2018-09-14 12:48:55 -04:00
|
|
|
check_bazel_version("0.17.0")
|
2018-12-06 17:46:51 -05:00
|
|
|
|
2018-09-05 15:38:53 -04:00
|
|
|
node_repositories(
|
2018-09-11 21:11:32 -04:00
|
|
|
node_version = "10.9.0",
|
2018-11-20 09:21:05 -05:00
|
|
|
yarn_version = "1.12.1",
|
2018-09-05 15:38:53 -04:00
|
|
|
)
|
2018-05-29 18:35:48 -04:00
|
|
|
|
2018-10-04 16:14:14 -04:00
|
|
|
yarn_install(
|
|
|
|
name = "npm",
|
2018-10-16 16:20:00 -04:00
|
|
|
package_json = "//src:package.json",
|
|
|
|
yarn_lock = "//src:yarn.lock",
|
2018-10-04 16:14:14 -04:00
|
|
|
)
|
|
|
|
|
2018-12-06 17:46:51 -05:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_register_toolchains", "go_rules_dependencies")
|
2018-05-29 18:35:48 -04:00
|
|
|
|
|
|
|
go_rules_dependencies()
|
2018-12-06 17:46:51 -05:00
|
|
|
|
2018-05-29 18:35:48 -04:00
|
|
|
go_register_toolchains()
|
|
|
|
|
|
|
|
load("@io_bazel_rules_webtesting//web:repositories.bzl", "browser_repositories", "web_test_repositories")
|
|
|
|
|
|
|
|
web_test_repositories()
|
2018-12-06 17:46:51 -05:00
|
|
|
|
2018-05-29 18:35:48 -04:00
|
|
|
browser_repositories(
|
|
|
|
chromium = True,
|
|
|
|
firefox = True,
|
|
|
|
)
|
|
|
|
|
2018-01-17 17:49:08 -05:00
|
|
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_setup_workspace")
|
2017-12-06 09:56:49 -05:00
|
|
|
|
2017-12-22 12:36:47 -05:00
|
|
|
ts_setup_workspace()
|
2017-12-06 09:56:49 -05:00
|
|
|
|
2018-06-04 13:45:27 -04:00
|
|
|
load("@io_bazel_rules_sass//sass:sass_repositories.bzl", "sass_repositories")
|
2018-05-29 18:35:48 -04:00
|
|
|
|
|
|
|
sass_repositories()
|
|
|
|
|
2018-05-11 02:35:21 -04:00
|
|
|
load("@angular//:index.bzl", "ng_setup_workspace")
|
|
|
|
|
|
|
|
ng_setup_workspace()
|