Skip to content
This repository has been archived by the owner on Jun 5, 2021. It is now read-only.

Commit

Permalink
Remove deprecated use of the native git_repository() rule (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwouts authored Jan 8, 2019
1 parent b61c90d commit adbd49e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ First, install [Bazel](https://docs.bazel.build/versions/master/install.html) an
Next, create a `WORKSPACE` file in your project root containing:

```python
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

# Required for access to js_library, ts_library, js_test, web_bundle, etc.
git_repository(
name = "bazel_javascript",
Expand Down
1 change: 1 addition & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
workspace(name = "bazel_javascript")

load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
git_repository(
name = "build_bazel_rules_nodejs",
remote = "https://github.com/bazelbuild/rules_nodejs.git",
Expand Down
1 change: 1 addition & 0 deletions examples/node-typescript-app/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ local_repository(
path = "../..",
)

load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
# git_repository(
# name = "bazel_javascript",
# remote = "https://github.com/zenclabs/bazel-javascript.git",
Expand Down
1 change: 1 addition & 0 deletions examples/react-app-javascript/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ local_repository(
path = "../..",
)

load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
# git_repository(
# name = "bazel_javascript",
# remote = "https://github.com/zenclabs/bazel-javascript.git",
Expand Down
1 change: 1 addition & 0 deletions examples/react-app-typescript/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ local_repository(
path = "../..",
)

load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
# git_repository(
# name = "bazel_javascript",
# remote = "https://github.com/zenclabs/bazel-javascript.git",
Expand Down
1 change: 1 addition & 0 deletions examples/react-storybook-typescript/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ local_repository(
path = "../..",
)

load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
# git_repository(
# name = "bazel_javascript",
# remote = "https://github.com/zenclabs/bazel-javascript.git",
Expand Down

0 comments on commit adbd49e

Please sign in to comment.