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

Commit adbd49e

Browse files
authored
Remove deprecated use of the native git_repository() rule (#38)
1 parent b61c90d commit adbd49e

File tree

6 files changed

+7
-0
lines changed

6 files changed

+7
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ First, install [Bazel](https://docs.bazel.build/versions/master/install.html) an
3030
Next, create a `WORKSPACE` file in your project root containing:
3131

3232
```python
33+
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
34+
3335
# Required for access to js_library, ts_library, js_test, web_bundle, etc.
3436
git_repository(
3537
name = "bazel_javascript",

WORKSPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
workspace(name = "bazel_javascript")
22

3+
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
34
git_repository(
45
name = "build_bazel_rules_nodejs",
56
remote = "https://github.com/bazelbuild/rules_nodejs.git",

examples/node-typescript-app/WORKSPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ local_repository(
66
path = "../..",
77
)
88

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

examples/react-app-javascript/WORKSPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ local_repository(
66
path = "../..",
77
)
88

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

examples/react-app-typescript/WORKSPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ local_repository(
66
path = "../..",
77
)
88

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

examples/react-storybook-typescript/WORKSPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ local_repository(
66
path = "../..",
77
)
88

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

0 commit comments

Comments
 (0)