2021-01-09 05:16:26 +01:00
|
|
|
load("//ts:prettier.bzl", "prettier", "prettier_test")
|
|
|
|
load("//ts:sql_format.bzl", "sql_format_setup")
|
2021-03-28 10:17:07 +02:00
|
|
|
load("@npm//@bazel/typescript:index.bzl", "ts_library")
|
2020-11-12 11:49:00 +01:00
|
|
|
|
|
|
|
prettier()
|
|
|
|
|
2021-01-09 05:16:26 +01:00
|
|
|
prettier_test(
|
|
|
|
name = "format_check",
|
|
|
|
srcs = glob([
|
|
|
|
"*.ts",
|
|
|
|
"*.js",
|
|
|
|
]),
|
|
|
|
)
|
|
|
|
|
|
|
|
sql_format_setup()
|
|
|
|
|
2021-03-28 10:17:07 +02:00
|
|
|
ts_library(
|
|
|
|
name = "image_module_support",
|
|
|
|
srcs = ["images.d.ts"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
2020-11-01 05:26:58 +01:00
|
|
|
# Exported files
|
|
|
|
#################
|
|
|
|
|
|
|
|
exports_files([
|
|
|
|
"tsconfig.json",
|
|
|
|
".prettierrc",
|
|
|
|
".eslintrc.js",
|
2020-11-12 10:54:13 +01:00
|
|
|
"licenses.json",
|
2021-01-09 09:03:26 +01:00
|
|
|
"sql_format.ts",
|
2021-03-28 11:39:11 +02:00
|
|
|
"jest.config.js",
|
|
|
|
"package.json",
|
2021-04-17 09:05:48 +02:00
|
|
|
"protobuf-no-long.js",
|
2020-11-01 05:26:58 +01:00
|
|
|
])
|
2020-12-31 03:20:51 +01:00
|
|
|
|
|
|
|
alias(
|
|
|
|
name = "yarn",
|
2020-12-31 03:32:51 +01:00
|
|
|
actual = "@nodejs//:yarn",
|
2020-12-31 03:20:51 +01:00
|
|
|
)
|