I try to transform a vaadin 15 app (from start.vaadin.com with spring boot and TypeScript) into an offline PWA. I know the basic of the PWA stuff and wrote one with pure js. But I’ve absolutely no idea how to add all the ts files after the are converted to js to the cache.
I also found nothing on the documentation. Or did I missed it?
You will need to customize webpack to produce a manifest that has the reference to the generated bundles.
That is something that vaadin will add at some point but not in the very short time.
Take a look to this plugin https://github.com/arthurbergmz/webpack-pwa-manifest
This is to sad. Like I understand you are only a small step away from having a real PWA framework. Frankly speaking: I don’t understand why you waiting so long to go this step.
Well, it’s a matter of priorities and resources, we are first focused on improve Typescript Experience for the UI.
Be patient all good things will come, and obviously good PWA experience
Our roadmap is indeed a bit vague since this whole thing is still quite new and we’re collecting more feedback to understand how to prioritize different ideas.
We have a bunch of directions to expand towards. Here are some of the most promising ones (in no particular order):
Offline bootstrapping and navigation. Automatically generate a Service Worker and such based on a declaratively defined routing configuration. Automatic placeholder for views implemented using Java when the user is offline.
Offline data. Transparently cache selected parts of the application’s data for offline use and queue pending changes to that data to be sent to the server once you’re online again.
Server push. Allow pushing out updates from the Java backend using an API similar to the current request-based endpoints.
Really stateless. Use JWT for authenticating the user so that endpoints can won’t need a server-side session.
Support more of the JVM ecosystem. CDI, Kotlin, Portlet, OSGi, …