Skip to content

Commit

Permalink
Add nodejs rules for the examples workspace.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnedmonds committed Aug 28, 2019
1 parent 9b0fb32 commit ef0bf46
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions examples/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,23 @@ http_archive(
],
)

http_archive(
name = "build_bazel_rules_nodejs",
url = "https://github.com/bazelbuild/rules_nodejs/archive/0.16.2.zip",
strip_prefix = "rules_nodejs-0.16.2",
sha256 = "9b72bb0aea72d7cbcfc82a01b1e25bf3d85f791e790ddec16c65e2d906382ee0"
)

load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories", "npm_install")
node_repositories()

# Dependencies for the @examples//hello_world_wasm example.
npm_install(
name = "npm",
package_json = "@io_bazel_rules_rust//:package.json",
package_lock_json = "@io_bazel_rules_rust//:package-lock.json",
)

load("@io_bazel_rules_rust//bindgen:repositories.bzl", "rust_bindgen_repositories")

rust_bindgen_repositories()
Expand Down

0 comments on commit ef0bf46

Please sign in to comment.