mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-16 09:39:09 +00:00
chore: sync tinkering updates
This commit is contained in:
parent
4cef998233
commit
0002cefd7f
13 changed files with 628 additions and 121 deletions
32
BUILD.bazel
32
BUILD.bazel
|
@ -1,5 +1,4 @@
|
|||
load("@bazel_gazelle//:def.bzl", "gazelle")
|
||||
load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary")
|
||||
|
||||
# gazelle:prefix github.com/roleypoly/roleypoly
|
||||
# gazelle:exclude hack/**
|
||||
|
@ -9,34 +8,3 @@ 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",
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue