| load("//infra-sk:index.bzl", "karma_test", "sk_demo_page_server", "sk_element", "sk_element_puppeteer_test", "sk_page", "ts_library") |
| |
| sk_demo_page_server( |
| name = "demo_page_server", |
| sk_page = ":query-dialog-sk-demo", |
| ) |
| |
| sk_element( |
| name = "query-dialog-sk", |
| sass_deps = ["//infra-sk:elements-sk_scss"], |
| sass_srcs = ["query-dialog-sk.scss"], |
| sk_element_deps = [ |
| "//infra-sk/modules/paramset-sk", |
| "//infra-sk/modules/query-sk", |
| ], |
| ts_deps = [ |
| "//infra-sk/modules/ElementSk:index_ts_lib", |
| "@npm//@types/dialog-polyfill", |
| "@npm//common-sk", |
| "@npm//dialog-polyfill", |
| "@npm//elements-sk", |
| "@npm//lit-html", |
| ], |
| ts_srcs = [ |
| "index.ts", |
| "query-dialog-sk.ts", |
| ], |
| visibility = ["//visibility:public"], |
| ) |
| |
| sk_page( |
| name = "query-dialog-sk-demo", |
| html_file = "query-dialog-sk-demo.html", |
| sk_element_deps = [":query-dialog-sk"], |
| ts_deps = ["@npm//common-sk"], |
| ts_entry_point = "query-dialog-sk-demo.ts", |
| ) |
| |
| ts_library( |
| name = "query-dialog-sk_po_ts_lib", |
| srcs = ["query-dialog-sk_po.ts"], |
| visibility = ["//visibility:public"], |
| deps = [ |
| "//infra-sk/modules/page_object:page_object_element_ts_lib", |
| "//infra-sk/modules/page_object:page_object_ts_lib", |
| "//infra-sk/modules/paramset-sk:paramset-sk_po_ts_lib", |
| "//infra-sk/modules/query-sk:query-sk_po_ts_lib", |
| "@npm//common-sk", |
| ], |
| ) |
| |
| sk_element_puppeteer_test( |
| name = "query-dialog-sk_puppeteer_test", |
| src = "query-dialog-sk_puppeteer_test.ts", |
| sk_demo_page_server = ":demo_page_server", |
| deps = [ |
| ":query-dialog-sk_po_ts_lib", |
| "//puppeteer-tests:util_ts_lib", |
| "@npm//@types/chai", |
| "@npm//chai", |
| ], |
| ) |
| |
| karma_test( |
| name = "query-dialog-sk_test", |
| src = "query-dialog-sk_test.ts", |
| deps = [ |
| ":query-dialog-sk", |
| ":query-dialog-sk_po_ts_lib", |
| "//infra-sk/modules:test_util_ts_lib", |
| "@npm//@types/chai", |
| "@npm//chai", |
| "@npm//common-sk", |
| ], |
| ) |