Created
May 1, 2018 05:07
-
-
Save ElisePatrikainen/6af039ee4576cb10f9cfd01d7a6ffe40 to your computer and use it in GitHub Desktop.
From the official demo: https://github.com/alexeagle/angular-bazel-example/blob/master/WORKSPACE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#################################### | |
# Fetch and install the NodeJS rules | |
http_archive( | |
name = "build_bazel_rules_nodejs", | |
url = "https://github.com/bazelbuild/rules_nodejs/archive/0.7.0.zip", | |
strip_prefix = "rules_nodejs-0.7.0", | |
sha256 = "d0cecf6b149d431ee8349f683d1db6a2a881ee81d8066a66c1b112a4b02748de", | |
) | |
load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories") | |
node_repositories(package_json = ["//:package.json"]) | |
#################################### | |
# Tell Bazel about some workspaces that were installed from npm. | |
local_repository( | |
name = "angular", | |
path = "node_modules/@angular/bazel", | |
) | |
local_repository( | |
name = "rxjs", | |
path = "node_modules/rxjs/src", | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment