Added BUILD file for gui2-fw-lib bazel build
This is another step along the way of having Native Bazel builds for Angular
Not fully there yet - waiting for Angular v9 in next 2 weeks
but don't want to wait that long to merge all of this
For most people the main concern is updates to WORKSPACE
Change-Id: I28170b8f8daaa2959327c259fe6a10df075113bb
diff --git a/web/gui2-fw-lib/angular-metadata.tsconfig.json b/web/gui2-fw-lib/angular-metadata.tsconfig.json
new file mode 100644
index 0000000..55ac161
--- /dev/null
+++ b/web/gui2-fw-lib/angular-metadata.tsconfig.json
@@ -0,0 +1,27 @@
+// Workaround for https://github.com/angular/angular/issues/18810
+// This file is required because when using the Angular NPM packages and building
+// with AOT compilation, NGC needs the "ngsummary.json" files.
+{
+ "compilerOptions": {
+ "lib": [
+ "dom",
+ "es2017"
+ ],
+ "experimentalDecorators": true,
+ "types": [],
+ "module": "amd",
+ "moduleResolution": "node"
+ },
+ "include": [
+ "node_modules/@angular/**/*"
+ ],
+ "exclude": [
+ "node_modules/@angular/bazel/**",
+ "node_modules/@angular/**/schematics/**",
+ "node_modules/@angular/**/testing/**",
+ "node_modules/@angular/compiler-cli/**",
+ "node_modules/@angular/common/upgrade*",
+ "node_modules/@angular/router/upgrade*",
+ "node_modules/@angular/cli/**"
+ ]
+}