Skip to content

Commit a065aa1

Browse files
committed
Rename @rules_closure -> @io_bazel_rules_closure
1 parent 34b0ab5 commit a065aa1

120 files changed

Lines changed: 140 additions & 140 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module(
2-
name = "rules_closure",
2+
name = "io_bazel_rules_closure",
33
version = "0.0.0",
44
compatibility_level = 1,
55
)

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Notice
22

3-
This is fork of [bazelbuild/rules_closure](https://github.com/bazelbuild/rules_closure) with the following main differences:
3+
This is fork of [bazelbuild/io_bazel_rules_closure](https://github.com/bazelbuild/io_bazel_rules_closure) with the following main differences:
44

55
- the `closure/library` has been restored.
66
- support for protobuf-javascript has been restored.
@@ -74,7 +74,7 @@ First you must [install Bazel].
7474
Then you add the following to your MODULE.bazel file:
7575

7676
```bzl
77-
bazel_dep(name = "rules_closure", version = "0.15.0")
77+
bazel_dep(name = "io_bazel_rules_closure", version = "0.15.0")
7878
```
7979
The root module has to declare the same override for rules_webtesting,
8080
rules_scala, and google_bazel_common temporarily until they are registered
@@ -87,9 +87,9 @@ for that matter; they will be fetched automatically by Bazel.
8787

8888
Please see the test directories within this project for concrete examples of usage:
8989

90-
- [//closure/testing/test](https://github.com/bazelbuild/rules_closure/tree/master/closure/testing/test)
91-
- [//closure/compiler/test](https://github.com/bazelbuild/rules_closure/tree/master/closure/compiler/test)
92-
- [//closure/stylesheets/test](https://github.com/bazelbuild/rules_closure/tree/master/closure/stylesheets/test)
90+
- [//closure/testing/test](https://github.com/bazelbuild/io_bazel_rules_closure/tree/master/closure/testing/test)
91+
- [//closure/compiler/test](https://github.com/bazelbuild/io_bazel_rules_closure/tree/master/closure/compiler/test)
92+
- [//closure/stylesheets/test](https://github.com/bazelbuild/io_bazel_rules_closure/tree/master/closure/stylesheets/test)
9393

9494

9595
# Reference
@@ -98,7 +98,7 @@ Please see the test directories within this project for concrete examples of usa
9898
## closure\_js\_library
9999

100100
```starlark
101-
load("@rules_closure//closure:defs.bzl", "closure_js_library")
101+
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_library")
102102
closure_js_library(name, srcs, data, deps, exports, suppress, convention,
103103
no_closure_library)
104104
```
@@ -198,7 +198,7 @@ This rule can be referenced as though it were the following:
198198
## closure\_js\_binary
199199

200200
```starlark
201-
load("@rules_closure//closure:defs.bzl", "closure_js_binary")
201+
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_binary")
202202
closure_js_binary(name, deps, css, debug, language, entry_points,
203203
dependency_mode, compilation_level, formatting,
204204
output_wrapper, property_renaming_report, defs)
@@ -311,7 +311,7 @@ This rule can be referenced as though it were the following:
311311
- **defs:** (List of strings; optional) Specifies additional flags to be passed
312312
to the Closure Compiler, e.g. `"--hide_warnings_for=some/path/"`. To see what
313313
flags are available, run:
314-
`bazel run @rules_closure//third_party/java/jscomp:main -- --help`
314+
`bazel run @io_bazel_rules_closure//third_party/java/jscomp:main -- --help`
315315

316316
### Support for AngularJS
317317

@@ -332,7 +332,7 @@ closure_js_binary(
332332
## closure\_js\_test
333333

334334
```starlark
335-
load("@rules_closure//closure:defs.bzl", "closure_js_test")
335+
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_test")
336336
closure_js_test(name, srcs, data, deps, css, html, language, suppress,
337337
compilation_level, entry_points, defs)
338338
```
@@ -404,7 +404,7 @@ This rule can be referenced as though it were the following:
404404
## phantomjs\_test
405405

406406
```starlark
407-
load("@rules_closure//closure:defs.bzl", "phantomjs_test")
407+
load("@io_bazel_rules_closure//closure:defs.bzl", "phantomjs_test")
408408
phantomjs_test(name, data, deps, html, harness, runner)
409409
```
410410

@@ -433,17 +433,17 @@ This rule can be referenced as though it were the following:
433433
`<script>` tag based on a depth-first preordering.
434434

435435
- **html:** (Label; optional; default is
436-
`"@rules_closure//closure/testing:empty.html"`) HTML file containing
436+
`"@io_bazel_rules_closure//closure/testing:empty.html"`) HTML file containing
437437
DOM structure of virtual web page *before* `<script>` tags are automatically
438438
inserted. Do not include a doctype in this file.
439439

440440
- **harness:** (Label; required; default is
441-
`"@rules_closure//closure/testing:phantomjs_harness"`) JS binary or
441+
`"@io_bazel_rules_closure//closure/testing:phantomjs_harness"`) JS binary or
442442
library exporting a single source file, to be used as the PhantomJS outer
443443
script.
444444

445445
- **runner:** (Label; optional; default is
446-
`"@rules_closure//closure/testing:phantomjs_jsunit_runner"`) Same as
446+
`"@io_bazel_rules_closure//closure/testing:phantomjs_jsunit_runner"`) Same as
447447
`deps` but guaranteed to be loaded inside the virtual web page last. This
448448
should run whatever tests got loaded by `deps` and then invoke `callPhantom`
449449
to report the result to the `harness`.
@@ -452,7 +452,7 @@ This rule can be referenced as though it were the following:
452452
## closure\_css\_library
453453

454454
```starlark
455-
load("@rules_closure//closure:defs.bzl", "closure_css_library")
455+
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_css_library")
456456
closure_css_library(name, srcs, data, deps)
457457
```
458458

@@ -515,7 +515,7 @@ This rule can be referenced as though it were the following:
515515
## closure\_css\_binary
516516

517517
```starlark
518-
load("@rules_closure//closure:defs.bzl", "closure_css_binary")
518+
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_css_binary")
519519
closure_css_binary(name, deps, renaming, debug, defs)
520520
```
521521

@@ -624,7 +624,7 @@ This rule can be referenced as though it were the following:
624624
[Closure Tools]: https://developers.google.com/closure/
625625
[Closure coding conventions]: https://github.com/google/closure-compiler/blob/master/src/com/google/javascript/jscomp/ClosureCodingConvention.java
626626
[ECMASCRIPT6]: http://es6-features.org/
627-
[Exports and Entry Points]: https://github.com/bazelbuild/rules_closure/blob/master/closure/compiler/test/exports_and_entry_points/BUILD
627+
[Exports and Entry Points]: https://github.com/bazelbuild/io_bazel_rules_closure/blob/master/closure/compiler/test/exports_and_entry_points/BUILD
628628
[Google JavaScript Style Guide]: https://google.github.io/styleguide/jsguide.html
629629
[Google coding conventions]: https://github.com/google/closure-compiler/blob/master/src/com/google/javascript/jscomp/GoogleCodingConvention.java
630630
[Name]: https://docs.bazel.build/versions/master/build-ref.html#name
@@ -634,7 +634,7 @@ This rule can be referenced as though it were the following:
634634
[asserts]: https://github.com/google/closure-library/blob/master/closure/goog/testing/asserts.js#L1308
635635
[base.js]: https://github.com/google/closure-library/blob/master/closure/goog/base.js
636636
[install Bazel]: https://docs.bazel.build/versions/master/install.html
637-
[blockers]: https://github.com/bazelbuild/rules_closure/labels/launch%20blocker
637+
[blockers]: https://github.com/bazelbuild/io_bazel_rules_closure/labels/launch%20blocker
638638
[closure_css_binary]: #closure_css_binary
639639
[closure_css_library]: #closure_css_library
640640
[closure_grpc_web_library]: https://github.com/grpc/grpc-web/blob/9b7b2d5411c486aa646ba2491cfd894d5352775b/bazel/closure_grpc_web_library.bzl#L149
@@ -646,7 +646,7 @@ This rule can be referenced as though it were the following:
646646
[css-sourcemap]: https://developer.chrome.com/devtools/docs/css-preprocessors
647647
[dependency]: https://docs.bazel.build/versions/master/build-ref.html#dependencies
648648
[filegroup]: https://docs.bazel.build/versions/master/be/general.html#filegroup
649-
[idom-example]: https://github.com/bazelbuild/rules_closure/blob/80d493d5ffc3099372929a8cd4a301da72e1b43f/closure/templates/test/greeter_idom.js
649+
[idom-example]: https://github.com/bazelbuild/io_bazel_rules_closure/blob/80d493d5ffc3099372929a8cd4a301da72e1b43f/closure/templates/test/greeter_idom.js
650650
[java_library.exports]: https://docs.bazel.build/versions/master/be/java.html#java_library.exports
651651
[java_library]: https://docs.bazel.build/versions/master/be/java.html#java_library
652652
[jquery]: http://jquery.com/

closure/compiler/test/app/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
load("@build_stack_rules_proto//rules:proto_compile.bzl", "proto_compile")
22
load(
3-
"@rules_closure//closure:defs.bzl",
3+
"@io_bazel_rules_closure//closure:defs.bzl",
44
"closure_css_binary",
55
"closure_css_library",
66
"closure_js_binary",
77
"closure_js_library",
88
"closure_js_template_library",
99
"web_library",
1010
)
11-
load("@rules_closure//closure/protobuf:defs.bzl", "closure_jspb_library")
11+
load("@io_bazel_rules_closure//closure/protobuf:defs.bzl", "closure_jspb_library")
1212

1313
package(default_testonly = True)
1414

closure/compiler/test/goog_es6_interop/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ closure_js_library(
3939
"person_factory.js",
4040
],
4141
# TODO(yannic): Remove this suppression when
42-
# `bazelbuild/rules_closure#436` is fixed.
42+
# `bazelbuild/io_bazel_rules_closure#436` is fixed.
4343
suppress = ["moduleLoad"],
4444
deps = [
4545
":person",

closure/goog/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# This file is a open-sourced version of internal BUILD file for closure base.
22
# They are too different to attempt a copybara transform between them.
3-
# This file is used in the closure-library repo by external Bazel users (via rules_closure)
3+
# This file is used in the closure-library repo by external Bazel users (via io_bazel_rules_closure)
44

5-
load("@rules_closure//closure/compiler:closure_base_js_library.bzl", "closure_base_js_library")
5+
load("@io_bazel_rules_closure//closure/compiler:closure_base_js_library.bzl", "closure_base_js_library")
66

77
package(default_visibility = ["//visibility:public"])
88

closure/goog/a11y/aria/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@rules_closure//closure:defs.bzl", "closure_js_library")
1+
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_library")
22

33
package(default_visibility = ["//visibility:public"])
44

closure/goog/array/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@rules_closure//closure:defs.bzl", "closure_js_library")
1+
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_library")
22

33
package(default_visibility = ["//visibility:public"])
44

closure/goog/asserts/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@rules_closure//closure:defs.bzl", "closure_js_library")
1+
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_library")
22

33
package(default_visibility = ["//visibility:public"])
44

closure/goog/async/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@rules_closure//closure:defs.bzl", "closure_js_library")
1+
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_library")
22

33
package(default_visibility = ["//visibility:public"])
44

closure/goog/bootstrap/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@rules_closure//closure:defs.bzl", "closure_js_library")
1+
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_library")
22

33
package(default_visibility = ["//visibility:public"])
44

0 commit comments

Comments
 (0)