workspace(name = "angular") http_archive( name = "build_bazel_rules_nodejs", url = "https://github.com/bazelbuild/rules_nodejs/archive/99166f8eb7fc628ca561acf9f9a51a1c26edadad.zip", strip_prefix = "rules_nodejs-99166f8eb7fc628ca561acf9f9a51a1c26edadad", sha256 = "338e8495e5d1fa16de7190106c5675372ff4a347f6004e203e84a168db96281e", ) load("@build_bazel_rules_nodejs//:defs.bzl", "check_bazel_version", "node_repositories", "yarn_install") check_bazel_version("0.9.0") node_repositories(package_json = ["//:package.json"]) yarn_install( name = "ts-api-guardian_runtime_deps", package_json = "//tools/ts-api-guardian:package.json", yarn_lock = "//tools/ts-api-guardian:yarn.lock", ) http_archive( name = "build_bazel_rules_typescript", url = "https://github.com/bazelbuild/rules_typescript/archive/0.11.1.zip", strip_prefix = "rules_typescript-0.11.1", sha256 = "7406bea7954e1c906f075115dfa176551a881119f6820b126ea1eacb09f34a1a", ) load("@build_bazel_rules_typescript//:defs.bzl", "ts_setup_workspace") ts_setup_workspace() local_repository( name = "rxjs", path = "node_modules/rxjs/src", ) # Point to the integration test workspace just so that Bazel doesn't descend into it # when expanding the //... pattern local_repository( name = "bazel_integration_test", path = "integration/bazel", ) # This commit matches the version of buildifier in angular/ngcontainer # If you change this, also check if it matches the version in the angular/ngcontainer # version in /.circleci/config.yml BAZEL_BUILDTOOLS_VERSION = "b3b620e8bcff18ed3378cd3f35ebeb7016d71f71" http_archive( name = "com_github_bazelbuild_buildtools", url = "https://github.com/bazelbuild/buildtools/archive/%s.zip" % BAZEL_BUILDTOOLS_VERSION, strip_prefix = "buildtools-%s" % BAZEL_BUILDTOOLS_VERSION, sha256 = "dad19224258ed67cbdbae9b7befb785c3b966e5a33b04b3ce58ddb7824b97d73", ) http_archive( name = "io_bazel_rules_go", url = "https://github.com/bazelbuild/rules_go/releases/download/0.7.1/rules_go-0.7.1.tar.gz", sha256 = "341d5eacef704415386974bc82a1783a8b7ffbff2ab6ba02375e1ca20d9b031c", ) load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains") go_rules_dependencies() go_register_toolchains() # Fetching the Bazel source code allows us to compile the Skylark linter http_archive( name = "io_bazel", url = "https://github.com/bazelbuild/bazel/archive/9755c72b48866ed034bd28aa033e9abd27431b1e.zip", strip_prefix = "bazel-9755c72b48866ed034bd28aa033e9abd27431b1e", sha256 = "5b8443fc3481b5fcd9e7f348e1dd93c1397f78b223623c39eb56494c55f41962", ) # We have a source dependency on the Devkit repository, because it's built with # Bazel. # This allows us to edit sources and have the effect appear immediately without # re-packaging or "npm link"ing. # Even better, things like aspects will visit the entire graph including # ts_library rules in the devkit repository. http_archive( name = "angular_devkit", url = "https://github.com/angular/devkit/archive/v0.3.1.zip", strip_prefix = "devkit-0.3.1", sha256 = "31d4b597fe9336650acf13df053c1c84dcbe9c29c6a833bcac3819cd3fd8cad3", ) http_archive( name = "org_brotli", url = "https://github.com/google/brotli/archive/c6333e1e79fb62ea088443f192293f964409b04e.zip", strip_prefix = "brotli-c6333e1e79fb62ea088443f192293f964409b04e", sha256 = "3f781988dee7dd3bcce2bf238294663cfaaf3b6433505bdb762e24d0a284d1dc", )