mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 11:29:12 +00:00
41 lines
1.3 KiB
Text
41 lines
1.3 KiB
Text
load("@bazel_gazelle//:def.bzl", "gazelle")
|
|
load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary")
|
|
|
|
# gazelle:prefix github.com/roleypoly/roleypoly
|
|
gazelle(name = "gazelle")
|
|
|
|
exports_files(
|
|
["tsconfig.json"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "node_modules",
|
|
srcs = glob(
|
|
include = [
|
|
"node_modules/**/*.js",
|
|
"node_modules/**/*.d.ts",
|
|
"node_modules/**/*.json",
|
|
"node_modules/.bin/*",
|
|
],
|
|
exclude = [
|
|
# Files under test & docs may contain file names that
|
|
# are not legal Bazel labels (e.g.,
|
|
# node_modules/ecstatic/test/public/中文/檔案.html)
|
|
"node_modules/**/test/**",
|
|
"node_modules/**/docs/**",
|
|
# Files with spaces in the name are not legal Bazel labels
|
|
"node_modules/**/* */**",
|
|
"node_modules/**/* *",
|
|
],
|
|
),
|
|
)
|
|
|
|
# Create a tsc_wrapped compiler rule to use in the ts_library
|
|
# compiler attribute when using self-managed dependencies
|
|
nodejs_binary(
|
|
name = "@bazel/typescript/tsc_wrapped",
|
|
entry_point = "@npm//:node_modules/@bazel/typescript/internal/tsc_wrapped/tsc_wrapped.js",
|
|
# Point bazel to your node_modules to find the entry point
|
|
node_modules = "//:node_modules",
|
|
)
|