GUI2 Change gui2-fw-lib refs to abs paths
Change-Id: Iddc121c70ddf9fa69c8d9f99e9768de6c2143eab
diff --git a/web/gui2-fw-lib/BUILD.bazel b/web/gui2-fw-lib/BUILD.bazel
index 3a42f63..97a86f3 100644
--- a/web/gui2-fw-lib/BUILD.bazel
+++ b/web/gui2-fw-lib/BUILD.bazel
@@ -40,11 +40,10 @@
],
),
assets = glob([
- "src/lib/**/*.css",
- "src/lib/**/*.html",
+ "lib/**/*.css",
+ "lib/**/*.html",
]),
- entry_point = ":src/public_api.ts",
- module_name = "gui2-fw-lib",
+ entry_point = ":public_api.ts",
tsconfig = "//web/gui2:tsconfig.json",
deps = [
"@npm//@angular/animations",
@@ -106,7 +105,7 @@
],
)
-# bazel run //web/gui2-fw-lib:gui2-fw-lib-pkg.pack to create a tgz
+# bazel run //web/gui2-fw-lib:npm_package.pack to create a tgz
ng_package(
name = "npm_package",
srcs = ["package.json"],
@@ -114,8 +113,7 @@
"**/*.css",
"**/*.html",
]),
- entry_point = ":index.ts",
- entry_point_name = "gui2-fw-lib",
+ entry_point = ":public_api.ts",
include_devmode_srcs = False,
readme_md = ":README.md",
deps = [
diff --git a/web/gui2-fw-lib/index.ts b/web/gui2-fw-lib/index.ts
new file mode 100644
index 0000000..68d937c
--- /dev/null
+++ b/web/gui2-fw-lib/index.ts
@@ -0,0 +1,17 @@
+/*
+ * Copyright 2020-present Open Networking Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+export * from './public_api';