| # BEGIN BORING BOILERPLATE |
| workspace(name = "bazel_managed_deps_example") |
| |
| local_repository( |
| name = "build_bazel_rules_nodejs", |
| path = "../..", |
| ) |
| |
| load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories", "yarn_install") |
| |
| node_repositories() |
| # END BORING BOILERPLATE |
| |
| # This runs yarn install, then our generate_build_file.js to create BUILD files |
| # inside the resulting node_modules directory. |
| # The name "npm" here means the resulting modules are referenced like |
| # @npm//jasmine |
| yarn_install( |
| name = "npm", |
| package_json = "//:package.json", |
| yarn_lock = "//:yarn.lock", |
| ) |