2021-03-22 03:06:53 +01:00
|
|
|
load("@npm//@bazel/typescript:index.bzl", "ts_library")
|
|
|
|
load("//ts:prettier.bzl", "prettier_test")
|
|
|
|
load("//ts:eslint.bzl", "eslint_test")
|
|
|
|
|
|
|
|
# Anki Library
|
|
|
|
################
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "sveltelib",
|
|
|
|
srcs = glob(["**/*.ts"]),
|
|
|
|
data = [],
|
|
|
|
module_name = "sveltelib",
|
|
|
|
tsconfig = "//:tsconfig.json",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
2021-08-24 02:19:26 +02:00
|
|
|
"//ts/lib",
|
2021-03-22 03:06:53 +01:00
|
|
|
"@npm//svelte",
|
|
|
|
"@npm//tslib",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
# Tests
|
|
|
|
################
|
|
|
|
|
|
|
|
prettier_test(
|
|
|
|
name = "format_check",
|
|
|
|
srcs = glob(["*.ts"]),
|
|
|
|
)
|
|
|
|
|
|
|
|
eslint_test(
|
|
|
|
name = "eslint",
|
|
|
|
srcs = glob(["*.ts"]),
|
|
|
|
)
|