Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 1 | load("@npm_angular_bazel//:index.bzl", "ng_module") |
| 2 | |
| 3 | package(default_visibility = ["//:__subpackages__"]) |
| 4 | |
| 5 | # We don't import from these, but the generated ngfactory code will |
| 6 | NG_FACTORY_ADDED_IMPORTS = [ |
| 7 | "@npm//@angular/animations", |
| 8 | "@npm//@angular/forms", |
| 9 | ] |
| 10 | |
| 11 | ng_module( |
| 12 | name = "gui2-topo-lib", |
| 13 | srcs = glob( |
| 14 | include = ["**/*.ts"], |
| 15 | exclude = [ |
| 16 | "**/*.spec.ts", |
| 17 | "test.ts", |
| 18 | ], |
| 19 | ), |
| 20 | assets = glob([ |
| 21 | "**/*.css", |
| 22 | "**/*.html", |
| 23 | ]), |
| 24 | deps = NG_FACTORY_ADDED_IMPORTS + [ |
| 25 | "//web/gui2-fw-lib", |
| 26 | "@npm//@angular/core", |
| 27 | "@npm//@angular/router", |
| 28 | "@npm//@angular/platform-browser", |
| 29 | "@npm//rxjs", |
| 30 | "@npm//@types", |
| 31 | "@npm//topojson-client", |
| 32 | ], |
| 33 | ) |