From 5218916a7e8d6dd7aab17698ef3c1dd69d95e041 Mon Sep 17 00:00:00 2001 From: Wagner Maciel Date: Tue, 23 Jun 2020 15:27:18 -0700 Subject: [PATCH] feat(dev-infra): add a way to pass assets down to a benchmark application (#37695) * add a param called ng_assets to the component_benchmark macro to allow static assets to be provided to the base angular app, not just through the ts_devserver PR Close #37695 --- .../benchmark/component_benchmark/component_benchmark.bzl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dev-infra/benchmark/component_benchmark/component_benchmark.bzl b/dev-infra/benchmark/component_benchmark/component_benchmark.bzl index edf4d0f4e0..809e92d259 100644 --- a/dev-infra/benchmark/component_benchmark/component_benchmark.bzl +++ b/dev-infra/benchmark/component_benchmark/component_benchmark.bzl @@ -25,6 +25,7 @@ def component_benchmark( driver_deps, ng_srcs, ng_deps, + ng_assets = [], assets = None, styles = None, entry_point = None, @@ -65,6 +66,7 @@ def component_benchmark( driver_deps: Driver's dependencies ng_srcs: All of the ts srcs for the angular app ng_deps: Dependencies for the angular app + ng_assets: The static assets for the angular app assets: Static files styles: Stylesheets entry_point: Main entry point for the angular app @@ -104,6 +106,7 @@ def component_benchmark( ng_module( name = app_lib, srcs = ng_srcs, + assets = ng_assets, # Creates ngFactory and ngSummary to be imported by the app's entry point. generate_ve_shims = True, deps = ng_deps,