File: BUILD.bazel

package info (click to toggle)
golang-github-google-flatbuffers 24.12.23-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 17,704 kB
  • sloc: cpp: 53,217; python: 6,900; cs: 5,566; java: 4,370; php: 1,460; javascript: 1,061; xml: 1,016; sh: 886; makefile: 13
file content (41 lines) | stat: -rw-r--r-- 918 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
load("@aspect_rules_js//js:defs.bzl", "js_test")
load("@aspect_rules_js//npm:defs.bzl", "npm_link_package")
load("@com_github_google_flatbuffers//:typescript.bzl", "flatbuffer_ts_library")
load("@npm//:defs.bzl", "npm_link_all_packages")

npm_link_all_packages(name = "node_modules")

npm_link_package(
    name = "node_modules/flatbuffers",
    src = "@com_github_google_flatbuffers//ts:flatbuffers",
)

flatbuffer_ts_library(
    name = "one_fbs",
    srcs = ["one.fbs"],
)

flatbuffer_ts_library(
    name = "two_fbs",
    srcs = ["two.fbs"],
    deps = [":one_fbs"],
)

js_test(
    name = "import_test",
    data = [
        "package.json",
        ":node_modules/flatbuffers",
        ":two_fbs",
    ],
    entry_point = "import_test.js",
)

js_test(
    name = "independent_deps_test",
    data = [
        "package.json",
        ":node_modules/lodash",
    ],
    entry_point = "independent_deps_test.js",
)