Closed jkomoros closed 6 years ago
Also then make sure that boardgame-util serve
and others check for build/bundled or whatever and serve from there. build.SimpleStaticServer should take an option on whether to use that folder if it exists or not.
And make sure that build static --prod
works, because currently the polymer builder doesn't seem to work.
These were captured in #655 originally
Also note this error and fix will need to be used: https://github.com/PolymerElements/paper-swatch-picker/issues/36
Installing polymer-cli doesn't work correctly. See https://github.com/Polymer/polymer-cli/issues/836#issuecomment-320238380 for workaround
boardgame-util build static
so we can run on that composed project. Note though that modulizer doesn't like linked files (unclear if it cares about linked directories). Will need a build.Static(copy bool) variant that copies static files.server/static
(files in directories are fine). Oddly modulizer is getting some children (e.g. BoardgameTictacToeCell, but it's skipping everything listed in fragments.html for some reason. https://github.com/Polymer/polymer-modulizer/issues/211 . Maybe it's because it knows that the code that loads the fragments expects them to be named that way? Maybe remove them from fragments to get them to convert, and then modify the handful of places that load them? Maybe have to have an entrypoint in bower.json that lists them explicitly https://github.com/Polymer/polymer-modulizer/issues/461 Or literally include them as literal inline imports in the viers.html that use importHref, then un-literalize them after the conversionboardgame-util serve
use polymer serve
for the static filesboardgame-util build static
worksserve
after polymer doesboardgame-util stub
works for client output. Just cheat and have escape sequences e.g. ({[[
and ]]}
) that are converted to {{
and }}
after the template is rendereed to get around awkward escaping issues
And update README and tooling to support