anki/ts/svelte/BUILD.bazel

25 lines
579 B
Python
Raw Normal View History

load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary")
nodejs_binary(
name = "typescript",
data = [
"@npm//typescript",
],
entry_point = "@npm//:node_modules/typescript/lib/tsc.js",
visibility = ["//visibility:public"],
)
nodejs_binary(
name = "svelte",
data = [
":svelte.js",
"@npm//sass",
"@npm//svelte",
"@npm//svelte-preprocess",
"@npm//svelte2tsx",
],
entry_point = ":svelte.js",
templated_args = ["--bazel_patch_module_resolver"],
visibility = ["//visibility:public"],
)