| workspace(name = "com_github_google_flatbuffers") |
| |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| |
| http_archive( |
| name = "io_bazel_rules_go", |
| sha256 = "d1ffd055969c8f8d431e2d439813e42326961d0942bdf734d2c95dc30c369566", |
| urls = [ |
| "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.24.5/rules_go-v0.24.5.tar.gz", |
| "https://github.com/bazelbuild/rules_go/releases/download/v0.24.5/rules_go-v0.24.5.tar.gz", |
| ], |
| ) |
| |
| load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") |
| |
| go_rules_dependencies() |
| |
| go_register_toolchains() |
| |
| ##### Protobuf |
| _PROTOBUF_VERSION = "3.15.2" |
| |
| http_archive( |
| name = "com_google_protobuf", |
| strip_prefix = "protobuf-" + _PROTOBUF_VERSION, |
| urls = [ |
| "https://github.com/protocolbuffers/protobuf/archive/v" + _PROTOBUF_VERSION + ".tar.gz", |
| ], |
| ) |
| |
| ##### GRPC |
| _GRPC_VERSION = "1.42.0" |
| |
| http_archive( |
| name = "com_github_grpc_grpc", |
| strip_prefix = "grpc-" + _GRPC_VERSION, |
| urls = ["https://github.com/grpc/grpc/archive/v" + _GRPC_VERSION + ".tar.gz"], |
| ) |
| |
| load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps") |
| |
| grpc_deps() |
| |
| load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps") |
| |
| grpc_extra_deps() |
| |
| http_archive( |
| name = "build_bazel_rules_nodejs", |
| sha256 = "965ee2492a2b087cf9e0f2ca472aeaf1be2eb650e0cfbddf514b9a7d3ea4b02a", |
| urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.2.0/rules_nodejs-5.2.0.tar.gz"], |
| ) |
| |
| load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies") |
| |
| build_bazel_rules_nodejs_dependencies() |
| |
| load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install") |
| |
| node_repositories() |
| |
| yarn_install( |
| name = "npm", |
| exports_directories_only = False, |
| # Unfreeze to add/remove packages. |
| frozen_lockfile = True, |
| package_json = "//:package.json", |
| symlink_node_modules = False, |
| yarn_lock = "//:yarn.lock", |
| ) |