Howdy Folks,
Thanks for the great demo app.
I am just trying to get it up and running and ran into a problem right away.
First of all you should know that I installed polymer-cli with
npm install -g polymer-cli
When I ran
I got a warning for each html file in the articles folder
The error is very similar to the one reported here: polymer-cli/issues/546.
On that issue the recommended fix is to
If you do this, note that you should uninstall the existing polymer-cli
After installing polymer-cli@next the build process runs with two new deprecation warnings and then fails with a notice about the app entry point.
warn: [polymer-project-config] "sourceGlobs" config option has been renamed to "sources" and will no longer be supported
in future versions
warn: [polymer-project-config] "includeDependencies" config option has been renamed to "extraDependencies" and will no l
onger be supported in future versions
error: cli runtime exception: AssertionError: Polymer Config Error: entrypoint (/) does not resolve within root (/Users/s
merth/Sites/Javascript/Polymer/Polymer v2/news-app/news)
error: AssertionError: Polymer Config Error: entrypoint (/) does not resolve within root (/Users/smerth/Sites/Javascript/
Polymer/Polymer v2/news-app/news)
You need to fix the polymer.json config file as follows:
{
"entrypoint": "index.html",
"shell": "src/news-app.html",
"fragments": [
"src/news-list.html",
"src/news-article.html",
"src/news-path-warning.html",
"src/lazy-resources.html"
],
"sources": [
"src/**/*",
"images/**/*",
"data/**/*",
"app.yaml",
"bower.json",
"index.html",
"main.py"
],
"extraDependencies": [
"manifest.json",
"bower_components/webcomponentsjs/webcomponents-lite.min.js"
]
}
It seems that polymer-cli@next doesn't accept "entrypoint": "/", but does accept "entrypoint": "index.html",
Now the build works.
I would be nice if the News demo app built using a stable release of polymer-cli. I think polymer-cli@next is the bleeding edge release???
Maybe the polymer.json file should be updated???