| load("//infra-sk:index.bzl", "karma_test", "sk_demo_page_server", "sk_element", "sk_element_puppeteer_test", "sk_page", "ts_library") |
| |
| sk_element( |
| name = "comments-sk", |
| sass_deps = [ |
| "//elements-sk/modules/styles:buttons_sass_lib", |
| "//infra-sk:themes_sass_lib", |
| ], |
| sass_srcs = ["comments-sk.scss"], |
| sk_element_deps = [ |
| "//ct/modules/input-sk", |
| "//infra-sk/modules/human-date-sk", |
| "//elements-sk/modules/checkbox-sk", |
| "//elements-sk/modules/icons/check-box-icon-sk", |
| "//elements-sk/modules/icons/check-box-outline-blank-icon-sk", |
| "//elements-sk/modules/icons/delete-icon-sk", |
| ], |
| ts_deps = [ |
| "//infra-sk/modules/ElementSk:index_ts_lib", |
| "//infra-sk/modules:linkify_ts_lib", |
| "//status/modules/rpc:index_ts_lib", |
| "//elements-sk/modules:define_ts_lib", |
| "//elements-sk/modules:errormessage_ts_lib", |
| "//infra-sk/modules:dom_ts_lib", |
| "//:node_modules/lit", |
| ], |
| ts_srcs = [ |
| "comments-sk.ts", |
| "index.ts", |
| ], |
| visibility = ["//visibility:public"], |
| ) |
| |
| sk_page( |
| name = "comments-sk-demo", |
| html_file = "comments-sk-demo.html", |
| sk_element_deps = [":comments-sk"], |
| ts_deps = [ |
| "//status/modules/rpc-mock:index_ts_lib", |
| ":test_data_ts_lib", |
| "//infra-sk/modules:dom_ts_lib", |
| ], |
| ts_entry_point = "comments-sk-demo.ts", |
| ) |
| |
| sk_element_puppeteer_test( |
| name = "comments-sk_puppeteer_test", |
| src = "comments-sk_puppeteer_test.ts", |
| sk_demo_page_server = ":demo_page_server", |
| deps = [ |
| "//:node_modules/@types/chai", |
| "//:node_modules/chai", |
| "//puppeteer-tests:util_ts_lib", |
| ], |
| ) |
| |
| karma_test( |
| name = "comments-sk_test", |
| src = "comments-sk_test.ts", |
| deps = [ |
| ":comments-sk", |
| ":test_data_ts_lib", |
| "//:node_modules/@types/chai", |
| "//:node_modules/chai", |
| "//infra-sk/modules:dom_ts_lib", |
| "//infra-sk/modules:test_util_ts_lib", |
| "//status/modules/rpc-mock:index_ts_lib", |
| ], |
| ) |
| |
| sk_demo_page_server( |
| name = "demo_page_server", |
| sk_page = ":comments-sk-demo", |
| ) |
| |
| ts_library( |
| name = "test_data_ts_lib", |
| srcs = ["test_data.ts"], |
| visibility = ["//visibility:public"], |
| deps = [ |
| "//status/modules/rpc:index_ts_lib", |
| "//status/modules/rpc-mock:index_ts_lib", |
| ], |
| ) |