| load("@aspect_rules_js//js:defs.bzl", "js_binary", "js_run_binary") |
| load("//common:defs.bzl", "copy_file") |
| |
| copy_file( |
| name = "license_header_local", |
| src = "//scripts:license_header.txt", |
| out = "license_header.txt", |
| ) |
| |
| copy_file( |
| name = "generated_note_local", |
| src = "//scripts:generated_note_template.txt", |
| out = "generated_note_template.txt", |
| ) |
| |
| js_binary( |
| name = "make_atoms_module", |
| data = [ |
| "make-atoms-module.js", |
| ":generated_note_local", |
| ":license_header_local", |
| ], |
| entry_point = ":make-atoms-module.js", |
| ) |
| |
| js_run_binary( |
| name = "is_displayed", |
| srcs = ["//javascript/atoms/fragments:is-displayed-typescript.js"], |
| outs = ["is-displayed.js"], |
| args = [ |
| "$(rootpath //javascript/atoms/fragments:is-displayed-typescript.js)", |
| "$(rootpath :is-displayed.js)", |
| ], |
| tool = ":make_atoms_module", |
| visibility = ["//javascript/selenium-webdriver:__pkg__"], |
| ) |
| |
| js_run_binary( |
| name = "get_attribute", |
| srcs = ["//javascript/atoms/fragments:get-attribute-typescript.js"], |
| outs = ["get-attribute.js"], |
| args = [ |
| "$(rootpath //javascript/atoms/fragments:get-attribute-typescript.js)", |
| "$(rootpath :get-attribute.js)", |
| ], |
| tool = ":make_atoms_module", |
| visibility = ["//javascript/selenium-webdriver:__pkg__"], |
| ) |
| |
| js_run_binary( |
| name = "find-elements", |
| srcs = ["//javascript/atoms/fragments:find-elements-typescript.js"], |
| outs = ["find-elements.js"], |
| args = [ |
| "$(rootpath //javascript/atoms/fragments:find-elements-typescript.js)", |
| "$(rootpath :find-elements.js)", |
| ], |
| tool = ":make_atoms_module", |
| visibility = ["//javascript/selenium-webdriver:__pkg__"], |
| ) |
| |
| copy_file( |
| name = "mutation-listener", |
| src = "//javascript/cdp-support:mutation-listener.js", |
| out = "mutation-listener.js", |
| visibility = ["//javascript/selenium-webdriver:__pkg__"], |
| ) |
| |
| copy_file( |
| name = "bidi-mutation-listener", |
| src = "//javascript/bidi-support:bidi-mutation-listener.js", |
| out = "bidi-mutation-listener.js", |
| visibility = ["//javascript/selenium-webdriver:__pkg__"], |
| ) |