• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package(
2    default_visibility = ["//visibility:public"],
3)
4
5licenses(["notice"])  # MIT
6
7load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_library")
8
9# Not a real polyfill. Do NOT use for anything, but tests.
10closure_js_library(
11    name = "polyfill",
12    srcs = ["polyfill.js"],
13    language = "ECMASCRIPT6_STRICT",
14    suppress = ["JSC_MISSING_JSDOC"],
15)
16
17# Do NOT use this artifact; it is for test purposes only.
18closure_js_library(
19    name = "decode",
20    srcs = ["decode.js"],
21    language = "ECMASCRIPT6_STRICT",
22    suppress = ["JSC_USELESS_BLOCK"],
23    deps = [":polyfill"],
24)
25
26load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_test")
27
28closure_js_test(
29    name = "all_tests",
30    srcs = ["decode_test.js"],
31    language = "ECMASCRIPT6_STRICT",
32    deps = [
33        ":decode",
34        ":polyfill",
35        "@io_bazel_rules_closure//closure/library:testing",
36    ],
37)
38