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 | |
Philipp Schrader | 155e76c | 2023-02-25 18:42:31 -0800 | [diff] [blame] | 4 | exports_files([ |
| 5 | "cypress.config.js", |
| 6 | ]) |
| 7 | |
Philipp Schrader | 175a93c | 2023-02-19 13:13:40 -0800 | [diff] [blame] | 8 | # Define the @angular/compiler-cli ngc bin binary as a target |
| 9 | angular_compiler_cli.ngc_binary( |
| 10 | name = "ngc", |
| 11 | visibility = ["//visibility:public"], |
| 12 | ) |
| 13 | |
| 14 | # ESBuild plugin to run the Angular linker |
| 15 | ts_project( |
| 16 | name = "ngc.esbuild", |
| 17 | srcs = ["ngc.esbuild.ts"], |
| 18 | tsconfig = "//:tsconfig.node", |
| 19 | visibility = ["//visibility:public"], |
| 20 | deps = [ |
| 21 | "//:node_modules/@angular/compiler-cli", |
| 22 | "//:node_modules/@babel/core", |
| 23 | #"//:node_modules/@types/babel__core", |
| 24 | "//:node_modules/@types/node", |
| 25 | ], |
| 26 | ) |