Philipp Schrader | 175a93c | 2023-02-19 13:13:40 -0800 | [diff] [blame^] | 1 | load("@npm//:@angular/compiler-cli/package_json.bzl", angular_compiler_cli = "bin") |
| 2 | load(":ts.bzl", "ts_project") |
| 3 | |
| 4 | # Define the @angular/compiler-cli ngc bin binary as a target |
| 5 | angular_compiler_cli.ngc_binary( |
| 6 | name = "ngc", |
| 7 | visibility = ["//visibility:public"], |
| 8 | ) |
| 9 | |
| 10 | # ESBuild plugin to run the Angular linker |
| 11 | ts_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 | ) |