| workspace(name = "webapp_example") |
| |
| # In your code, you'd fetch this repository with an `http_archive` call. |
| # We do this local repository only because this example lives in the same |
| # repository with the rules_nodejs code and we want to test them together. |
| local_repository( |
| name = "build_bazel_rules_nodejs", |
| path = "../../bazel-bin/local_testing_package", |
| ) |
| |
| load("@build_bazel_rules_nodejs//:defs.bzl", "yarn_install") |
| |
| yarn_install( |
| name = "npm", |
| package_json = "//:package.json", |
| yarn_lock = "//:yarn.lock", |
| ) |