| load( |
| "//infra-sk:index.bzl", |
| "sk_demo_page_server", |
| "sk_element", |
| "sk_element_puppeteer_test", |
| "sk_page", |
| "ts_library", |
| ) |
| |
| sk_demo_page_server( |
| name = "demo_page_server", |
| sk_page = ":skottie-sk-demo", |
| static_assets = { |
| "/static": [ |
| "//skottie/wasm_libs:version.js", |
| "//skottie/wasm_libs:canvaskit.js", |
| "//skottie/wasm_libs:canvaskit.wasm", |
| ], |
| "/img": [ |
| # Not quite sure why this is being looked for in /img and not /static/img. |
| "@npm//:node_modules/jsoneditor/dist/img/jsoneditor-icons.svg", |
| ], |
| }, |
| ) |
| |
| sk_element( |
| name = "skottie-sk", |
| sass_deps = [ |
| "@npm//:node_modules/jsoneditor/dist/jsoneditor.min.css", |
| ], |
| sass_srcs = ["skottie-sk.scss"], |
| sk_element_deps = [ |
| "//skottie/modules/skottie-audio-sk", |
| "//skottie/modules/skottie-config-sk", |
| "//skottie/modules/skottie-gif-exporter-sk", |
| "//skottie/modules/skottie-library-sk", |
| "//skottie/modules/skottie-performance-sk", |
| "//skottie/modules/skottie-player-sk", |
| "//skottie/modules/skottie-shader-editor-sk", |
| "//skottie/modules/skottie-text-editor-sk", |
| "//infra-sk/modules/app-sk", |
| "//infra-sk/modules/theme-chooser-sk", |
| "//elements-sk/modules/checkbox-sk", |
| "//elements-sk/modules/collapse-sk", |
| "//elements-sk/modules/error-toast-sk", |
| "//elements-sk/modules/icons/expand-less-icon-sk", |
| "//elements-sk/modules/icons/expand-more-icon-sk", |
| "//elements-sk/modules/icons/pause-icon-sk", |
| "//elements-sk/modules/icons/play-arrow-icon-sk", |
| "//elements-sk/modules/icons/replay-icon-sk", |
| "//skottie/modules/skottie-button-sk", |
| "//skottie/modules/skottie-dropdown-sk", |
| "//skottie/modules/skottie-exporter-sk", |
| "//skottie/modules/skottie-file-settings-sk", |
| "//elements-sk/modules/icons/file-download-icon-sk", |
| "//skottie/modules/skottie-file-form-sk", |
| "//skottie/modules/skottie-background-settings-sk", |
| ], |
| ts_deps = [ |
| "//infra-sk/modules/ElementSk:index_ts_lib", |
| "//skottie/modules/helpers:domains_ts_lib", |
| "//skottie/modules/helpers:templates_ts_lib", |
| "//skottie/modules/skottie-text-editor-sk:text-replace_ts_lib", |
| "//skottie/modules:audio_ts_lib", |
| "//skottie/modules:types_ts_lib", |
| "@npm//@types/jsoneditor", |
| "@npm//jsoneditor", |
| "@npm//lit-html", |
| "@npm//lottie-web", |
| "//skottie/modules/skottie-shader-editor-sk:shader-replace_ts_lib", |
| "//elements-sk/modules:define_ts_lib", |
| "//elements-sk/modules:errormessage_ts_lib", |
| "//infra-sk/modules:dom_ts_lib", |
| "//infra-sk/modules:jsonorthrow_ts_lib", |
| "//infra-sk/modules:statereflector_ts_lib", |
| ], |
| ts_srcs = [ |
| "index.ts", |
| "skottie-sk.ts", |
| ], |
| visibility = ["//visibility:public"], |
| ) |
| |
| sk_page( |
| name = "skottie-sk-demo", |
| html_file = "skottie-sk-demo.html", |
| scss_entry_point = "skottie-sk-demo.scss", |
| sk_element_deps = [":skottie-sk"], |
| ts_deps = [ |
| ":test_gear_ts_lib", |
| "@npm//fetch-mock", |
| "//infra-sk/modules:dom_ts_lib", |
| ], |
| ts_entry_point = "skottie-sk-demo.ts", |
| ) |
| |
| sk_element_puppeteer_test( |
| name = "skottie-sk_puppeteer_test", |
| src = "skottie-sk_puppeteer_test.ts", |
| sk_demo_page_server = ":demo_page_server", |
| deps = [ |
| "//puppeteer-tests:util_ts_lib", |
| "@npm//@types/chai", |
| "@npm//chai", |
| "@npm//puppeteer", |
| ], |
| ) |
| |
| ts_library( |
| name = "test_gear_ts_lib", |
| srcs = ["test_gear.ts"], |
| visibility = ["//visibility:public"], |
| deps = ["//skottie/modules:types_ts_lib"], |
| ) |