bazel-custom-rules:自定义 Bazel 构建规则来编译 TypeScript

时间:2024-06-24 05:55:03
【文件属性】:

文件名称:bazel-custom-rules:自定义 Bazel 构建规则来编译 TypeScript

文件大小:4KB

文件格式:ZIP

更新时间:2024-06-24 05:55:03

Python

TypeScript 的 Bazel 自定义构建规则 自定义构建规则来编译 。 句法 ts_library ( name = "externs" , srcs = [ "externs.d.ts" ], ) ts_library ( name = "common" , srcs = [ "common.ts" ], deps = [ ":externs" ], ) ts_binary ( name = "main" srcs = [ "main.ts" ], deps = [ ":common" ], flags = [ "--removeComments" , "--noEmitOnError" , ], ) 构建示例 安装 将load("/build-rules/typescript", "ts_library", "t


【文件预览】:
bazel-custom-rules-master
----.gitignore(8B)
----README.md(822B)
----examples()
--------typescript()
----build-rules()
--------typescript.bzl(1004B)
--------BUILD(0B)
----WORKSPACE(0B)

网友评论