| load("@npm_angular_bazel//:index.bzl", "ng_module") |
| |
| package(default_visibility = ["//:__subpackages__"]) |
| |
| # We don't import from these, but the generated ngfactory code will |
| NG_FACTORY_ADDED_IMPORTS = [ |
| "@npm//@angular/animations", |
| "@npm//@angular/cdk", |
| "@npm//@angular/material", |
| "@npm//@angular/forms", |
| ] |
| |
| ng_module( |
| name = "app", |
| srcs = glob(["*.ts"]), |
| assets = ["app.component.html"], |
| tsconfig = "//src:tsconfig.json", |
| deps = NG_FACTORY_ADDED_IMPORTS + [ |
| "//src/app/hello-world", |
| "//src/app/home", |
| "//src/app/todos", |
| "//src/shared/material", |
| "@npm//@angular/core", |
| "@npm//@angular/router", |
| "@npm//@angular/platform-browser", |
| "@npm//@ngrx/store", |
| ], |
| ) |
| |
| # For testing from the root workspace of this repository with bazel_integration_test. |
| filegroup( |
| name = "all_files", |
| srcs = glob(["**/*"]) + [ |
| "//src/app/hello-world:all_files", |
| "//src/app/todos:all_files", |
| "//src/app/home:all_files", |
| ], |
| ) |