Philipp Schrader | 175a93c | 2023-02-19 13:13:40 -0800 | [diff] [blame] | 1 | load("@aspect_rules_esbuild//esbuild:defs.bzl", "esbuild") |
| 2 | load(":ts.bzl", "ts_project") |
| 3 | |
| 4 | def ng_project(name, **kwargs): |
| 5 | """The rules_js ts_project() configured with the Angular ngc compiler. |
| 6 | """ |
| 7 | ts_project( |
| 8 | name = name, |
| 9 | |
| 10 | # Compiler |
| 11 | tsc = "//tools/build_rules/js:ngc", |
| 12 | |
| 13 | # Any other ts_project() or generic args |
| 14 | **kwargs |
| 15 | ) |
| 16 | |
| 17 | def ng_esbuild(name, **kwargs): |
| 18 | """The rules_esbuild esbuild() configured with the Angular linker configuration |
| 19 | """ |
| 20 | |
| 21 | esbuild( |
| 22 | name = name, |
Austin Schuh | 869bf09 | 2024-04-13 17:45:12 -0700 | [diff] [blame] | 23 | config = "//tools/build_rules/js:ngc.esbuild.mjs", |
Philipp Schrader | 175a93c | 2023-02-19 13:13:40 -0800 | [diff] [blame] | 24 | **kwargs |
| 25 | ) |