-
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: bulk updates for write_source_files (#40)
- Loading branch information
Showing
8 changed files
with
213 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
load("//lib:write_source_files.bzl", "write_source_files") | ||
|
||
genrule( | ||
name = "c-desired", | ||
outs = ["c-desired.js"], | ||
cmd = "echo 'console.log(\"c*\");' > $@", | ||
) | ||
|
||
write_source_files( | ||
name = "macro_smoke_test", | ||
files = { | ||
"c.js": ":c-desired", | ||
}, | ||
suggested_update_target = "//lib/tests/write_source_files:macro_smoke_test", | ||
visibility = ["//visibility:public"], | ||
additional_update_targets = [ | ||
"//lib/tests/write_source_files/subdir/subsubdir:macro_smoke_test", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log("c*"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
load("//lib:write_source_files.bzl", "write_source_files") | ||
|
||
genrule( | ||
name = "d-desired", | ||
outs = ["d-desired.js"], | ||
cmd = "echo 'console.log(\"d*\");' > $@", | ||
) | ||
|
||
write_source_files( | ||
name = "macro_smoke_test", | ||
files = { | ||
"d.js": ":d-desired", | ||
}, | ||
suggested_update_target = "//lib/tests/write_source_files:macro_smoke_test", | ||
visibility = ["//visibility:public"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log("d*"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters