anki/ts/svelte/BUILD.bazel
Damien Elmes ea7611d8cc vendor Svelte rules
The separate repo made it difficult to update the rules, and made things
more complicated than they needed to be.
2021-03-20 15:04:19 +10:00

25 lines
579 B
Python

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"],
)