blob: 2381fcbb85923149e29b423a3b75dec281297ab6 [file] [log] [blame]
Philipp Schrader175a93c2023-02-19 13:13:40 -08001load("@npm//:@angular/compiler-cli/package_json.bzl", angular_compiler_cli = "bin")
2load(":ts.bzl", "ts_project")
3
4# Define the @angular/compiler-cli ngc bin binary as a target
5angular_compiler_cli.ngc_binary(
6 name = "ngc",
7 visibility = ["//visibility:public"],
8)
9
10# ESBuild plugin to run the Angular linker
11ts_project(
12 name = "ngc.esbuild",
13 srcs = ["ngc.esbuild.ts"],
14 tsconfig = "//:tsconfig.node",
15 visibility = ["//visibility:public"],
16 deps = [
17 "//:node_modules/@angular/compiler-cli",
18 "//:node_modules/@babel/core",
19 #"//:node_modules/@types/babel__core",
20 "//:node_modules/@types/node",
21 ],
22)