| workspace( | |
| name = "create_react_app", | |
| managed_directories = {"@npm": ["node_modules"]}, | |
| ) | |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | |
| http_archive( | |
| name = "build_bazel_rules_nodejs", | |
| sha256 = "e79c08a488cc5ac40981987d862c7320cee8741122a2649e9b08e850b6f20442", | |
| urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.8.0/rules_nodejs-3.8.0.tar.gz"], | |
| ) | |
| http_archive( | |
| name = "bazel_skylib", | |
| sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44", | |
| urls = [ | |
| "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz", | |
| "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz", | |
| ], | |
| ) | |
| load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") | |
| yarn_install( | |
| # Name this npm so that Bazel Label references look like @npm//package | |
| name = "npm", | |
| exports_directories_only = True, | |
| package_json = "//:package.json", | |
| yarn_lock = "//:yarn.lock", | |
| ) |