mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Introduce a bazel-based build for the entire JS pack.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
load("@//:dist.bzl", "dist")
|
||||
load("@rules_pkg//pkg:mappings.bzl", "pkg_files")
|
||||
load("@//buildutils-internal:zipmerge.bzl", "zipmerge")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
alias(
|
||||
@@ -9,3 +13,36 @@ alias(
|
||||
name = "dbscheme-stats",
|
||||
actual = "//javascript/ql/lib:dbscheme-stats",
|
||||
)
|
||||
|
||||
pkg_files(
|
||||
name = "dbscheme-group",
|
||||
srcs = [
|
||||
":dbscheme",
|
||||
":dbscheme-stats",
|
||||
],
|
||||
strip_prefix = None,
|
||||
)
|
||||
|
||||
dist(
|
||||
name = "javascript-extractor-pack",
|
||||
srcs = [
|
||||
":dbscheme-group",
|
||||
"//javascript/downgrades",
|
||||
"//javascript/externs",
|
||||
"//javascript/extractor:tools-extractor",
|
||||
"@//language-packs/javascript:resources",
|
||||
],
|
||||
prefix = "javascript",
|
||||
)
|
||||
|
||||
# We have to zipmerge in the typescript parser wrapper, as it's generated by a genrule
|
||||
# and we don't know a list of its output files. Therefore, we sidestep the
|
||||
# rules_pkg tooling here, and generate the zip for the language pack manually.
|
||||
zipmerge(
|
||||
name = "javascript",
|
||||
srcs = [
|
||||
":javascript-extractor-pack.zip",
|
||||
"//javascript/extractor/lib/typescript",
|
||||
],
|
||||
out = "javascript.zip",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user