Skip to content

Commit

Permalink
Add more comments to closure-templates-bazel files.
Browse files Browse the repository at this point in the history
  • Loading branch information
mknichel committed Jul 27, 2015
1 parent 9abf40a commit 5141411
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
bazel/
bazel-bin/
bazel*
1 change: 1 addition & 0 deletions BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Intentionally empty. Needed by Bazel.
1 change: 1 addition & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Intentionally empty.
15 changes: 15 additions & 0 deletions closure_templates.bzl
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# Compiles the provided Soy files into JavaScript files. Each Soy file in the
# srcs attribute will have a corresponding .soy.js file in the output.
#
# This rule expects the SoyToJsSrcCompiler.jar to be provided in a //tools/
# directory in a Bazel filegroup rule called "soy_js_compiler".
#
# Arguments:
# - name: string, The name of this rule.
# - srcs: list of string, List of Soy source files.
# - should_provide_require_soy_namespaces: bool, Whether to output
# goog.provide and goog.require statements for each namespace in a Soy file.
# This is useful when used in conjunction with the Closure Library and
# Closure Compiler. Defaults to True.
# - visibility: list of string, List of Bazel packages that this rule is
# visible to.
def soy_library(
name,
srcs,
Expand Down
1 change: 1 addition & 0 deletions demo/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# This loads the Bazel macro for use in this BUILD file.
load("/closure_templates", "soy_library")

soy_library(
Expand Down
2 changes: 2 additions & 0 deletions tools/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This filegroup makes the SoyToJsSrcCompiler.jar available for use by the
# soy_library Bazel macro.
filegroup(
name = "soy_js_compiler",
srcs = ["SoyToJsSrcCompiler.jar"],
Expand Down

0 comments on commit 5141411

Please sign in to comment.