Skip to content

Commit f3046cd

Browse files
authored
Rename bzl module to rules_closure (#663)
* Update io_bazel_rules_closure to rules_closure for registry consistency and rename some files with old module name
1 parent d0d133f commit f3046cd

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

MODULE.bazel

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

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ First you must [install Bazel].
6464
Then you add the following to your MODULE.bazel file:
6565

6666
```bzl
67-
bazel_dep(name = "io_bazel_rules_closure", version = "0.15.0")
67+
bazel_dep(name = "rules_closure", version = "0.15.0")
6868
```
6969
The root module has to declare the same override for rules_webtesting,
7070
rules_scala, and google_bazel_common temporarily until they are registered
@@ -88,7 +88,7 @@ Please see the test directories within this project for concrete examples of usa
8888
## closure\_js\_library
8989

9090
```starlark
91-
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_library")
91+
load("@rules_closure//closure:defs.bzl", "closure_js_library")
9292
closure_js_library(name, srcs, data, deps, exports, suppress, convention,
9393
no_closure_library)
9494
```
@@ -188,7 +188,7 @@ This rule can be referenced as though it were the following:
188188
## closure\_js\_binary
189189

190190
```starlark
191-
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_binary")
191+
load("@rules_closure//closure:defs.bzl", "closure_js_binary")
192192
closure_js_binary(name, deps, css, debug, language, entry_points,
193193
dependency_mode, compilation_level, formatting,
194194
output_wrapper, property_renaming_report, defs)
@@ -301,7 +301,7 @@ This rule can be referenced as though it were the following:
301301
- **defs:** (List of strings; optional) Specifies additional flags to be passed
302302
to the Closure Compiler, e.g. `"--hide_warnings_for=some/path/"`. To see what
303303
flags are available, run:
304-
`bazel run @io_bazel_rules_closure//third_party/java/jscomp:main -- --help`
304+
`bazel run @rules_closure//third_party/java/jscomp:main -- --help`
305305

306306
### Support for AngularJS
307307

@@ -322,7 +322,7 @@ closure_js_binary(
322322
## closure\_js\_test
323323

324324
```starlark
325-
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_test")
325+
load("@rules_closure//closure:defs.bzl", "closure_js_test")
326326
closure_js_test(name, srcs, data, deps, css, html, language, suppress,
327327
compilation_level, entry_points, defs)
328328
```
@@ -394,7 +394,7 @@ This rule can be referenced as though it were the following:
394394
## phantomjs\_test
395395

396396
```starlark
397-
load("@io_bazel_rules_closure//closure:defs.bzl", "phantomjs_test")
397+
load("@rules_closure//closure:defs.bzl", "phantomjs_test")
398398
phantomjs_test(name, data, deps, html, harness, runner)
399399
```
400400

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

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

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

435435
- **runner:** (Label; optional; default is
436-
`"@io_bazel_rules_closure//closure/testing:phantomjs_jsunit_runner"`) Same as
436+
`"@rules_closure//closure/testing:phantomjs_jsunit_runner"`) Same as
437437
`deps` but guaranteed to be loaded inside the virtual web page last. This
438438
should run whatever tests got loaded by `deps` and then invoke `callPhantom`
439439
to report the result to the `harness`.
@@ -442,7 +442,7 @@ This rule can be referenced as though it were the following:
442442
## closure\_css\_library
443443

444444
```starlark
445-
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_css_library")
445+
load("@rules_closure//closure:defs.bzl", "closure_css_library")
446446
closure_css_library(name, srcs, data, deps)
447447
```
448448

@@ -505,7 +505,7 @@ This rule can be referenced as though it were the following:
505505
## closure\_css\_binary
506506

507507
```starlark
508-
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_css_binary")
508+
load("@rules_closure//closure:defs.bzl", "closure_css_binary")
509509
closure_css_binary(name, deps, renaming, debug, defs)
510510
```
511511

third_party/phantomjs/phantomjs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ source "${RUNFILES_DIR:-/dev/null}/$f" 2>/dev/null || \
3131
# --- end runfiles.bash initialization v3 ---
3232

3333

34-
RUNFILES="$(rlocation io_bazel_rules_closure/.)"
34+
RUNFILES="$(rlocation rules_closure/.)"
3535

3636
export LD_LIBRARY_PATH="${RUNFILES}/third_party/fontconfig/k8:${LD_LIBRARY_PATH:-}"
3737
export LD_LIBRARY_PATH="${RUNFILES}/third_party/freetype/k8:${LD_LIBRARY_PATH}"

0 commit comments

Comments
 (0)