Remove gr-app.html and all its reference
Use gr-app.js as the entry and shell. https://polymer-library.polymer-project.org/3.0/docs/tools/polymer-json Change-Id: Iacd7a433157355f89d7f8e6c782abfe43ba725ea
This commit is contained in:
@@ -18,7 +18,7 @@ polygerrit_bundle(
|
||||
],
|
||||
),
|
||||
outs = ["polygerrit_ui.zip"],
|
||||
entry_point = "elements/gr-app.html",
|
||||
entry_point = "elements/gr-app.js",
|
||||
)
|
||||
|
||||
filegroup(
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
<script src='./gr-app.js' type='module'></script>
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"entrypoint": "elements/gr-app.html",
|
||||
"shell": "elements/gr-app.js",
|
||||
"sources": [
|
||||
"behaviors/**/*",
|
||||
"elements/**/*",
|
||||
|
||||
@@ -8,10 +8,10 @@ def polygerrit_bundle(name, srcs, outs, entry_point):
|
||||
name: rule name
|
||||
srcs: source files
|
||||
outs: array with a single item - the output file name
|
||||
entry_point: application entry-point
|
||||
entry_point: application js entry-point
|
||||
"""
|
||||
|
||||
app_name = entry_point.split(".html")[0].split("/").pop() # eg: gr-app
|
||||
app_name = entry_point.split(".js")[0].split("/").pop() # eg: gr-app
|
||||
|
||||
native.filegroup(
|
||||
name = app_name + "-full-src",
|
||||
@@ -24,7 +24,7 @@ def polygerrit_bundle(name, srcs, outs, entry_point):
|
||||
name = app_name + "-bundle-js",
|
||||
srcs = [app_name + "-full-src"],
|
||||
config_file = ":rollup.config.js",
|
||||
entry_point = "elements/" + app_name + ".js",
|
||||
entry_point = entry_point,
|
||||
rollup_bin = "//tools/node_tools:rollup-bin",
|
||||
sourcemap = "hidden",
|
||||
deps = [
|
||||
@@ -36,7 +36,6 @@ def polygerrit_bundle(name, srcs, outs, entry_point):
|
||||
name = name + "_app_sources",
|
||||
srcs = [
|
||||
app_name + "-bundle-js.js",
|
||||
entry_point,
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@
|
||||
// Content between webcomponents-lite and the load of the main app element
|
||||
// run before polymer-resin is installed so may have security consequences.
|
||||
// Contact your local security engineer if you have any questions, and
|
||||
// CC them on any changes that load content before gr-app.html.
|
||||
// CC them on any changes that load content before gr-app.js.
|
||||
//
|
||||
// github.com/Polymer/polymer-resin/blob/master/getting-started.md#integrating
|
||||
{if $assetsPath and $assetsBundle}
|
||||
|
||||
Reference in New Issue
Block a user