I just to report back here on how I finally implemented the modularization of the JS modules: for each JS dependency I created a new api plugin that contains the WebJar of the JS library and some utility classes. So other plugins can use these dependencies as well now. The resulting plugin dependencies are given in the following UML diagram:
Legend: - blue: my plugins - green: API plugins for JS libraries - yellow: standard Java library I’m currently beta testing these new libraries, an example implementation is available in PR https://github.com/jenkinsci/warnings-ng-plugin/pull/252 > Am 08.07.2019 um 07:24 schrieb 'Gavin Mogan' via Jenkins Developers > <[email protected]>: > > https://github.com/jenkinsci/graphql-server-plugin/pull/4 > <https://github.com/jenkinsci/graphql-server-plugin/pull/4> is doing a > wishlist item with parceljs > > On Sun, Jul 7, 2019 at 4:10 PM Gavin Mogan <[email protected] > <mailto:[email protected]>> wrote: > I don't have fond memories of js-builder from working on blueocean. > > Personally I still think larger bundle sizes for an app like this is fine, so > using webpack or parcel or something to embed all the libraries you need > directly will take care of the version problem. > > If you have a simple web app, I can submit a PR or try to setup a sample > plugin at some point. > > https://parceljs.org/recipes.html <https://parceljs.org/recipes.html> will > let you use commonjs, so its just requiring, no worrying about what other > plugins are doing. > > Gavin > > On Sun, Jul 7, 2019 at 2:20 PM Ullrich Hafner <[email protected] > <mailto:[email protected]>> wrote: > Yes, I tried that last year. But I got stuck somewhere in between (see > https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/jenkinsci-dev/1nb5UDiUjeI/h6f38kTiBgAJ > > <https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/jenkinsci-dev/1nb5UDiUjeI/h6f38kTiBgAJ>). > So I finally gave up since nobody was there to help. Also, looking at the > commit history, it indicates that this approach is dead as well :-( > > >> Am 07.07.2019 um 20:32 schrieb Daniel Beck <[email protected] >> <mailto:[email protected]>>: >> >> >> >>> On 2. Jul 2019, at 16:12, Jesse Glick <[email protected] >>> <mailto:[email protected]>> wrote: >>> >>> Read >>> >>> https://github.com/jenkinsci/js-libs <https://github.com/jenkinsci/js-libs> >>> >>> and you will know more than I. >> >> There's also https://github.com/jenkinsci/js-samples >> <https://github.com/jenkinsci/js-samples> which looks like it might be >> useful? >> >> Step 4 looks potentially relevant? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Jenkins Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] >> <mailto:[email protected]>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-dev/382F79BF-6618-4E97-8E1E-CA892BB0A381%40beckweb.net >> >> <https://groups.google.com/d/msgid/jenkinsci-dev/382F79BF-6618-4E97-8E1E-CA892BB0A381%40beckweb.net>. >> For more options, visit https://groups.google.com/d/optout >> <https://groups.google.com/d/optout>. > > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/3B172B21-751B-4660-8561-966B8C2CB15C%40gmail.com > > <https://groups.google.com/d/msgid/jenkinsci-dev/3B172B21-751B-4660-8561-966B8C2CB15C%40gmail.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/CAG%3D_DuvnS%3DaNwvqYCpAXL1EaaS9CrTvFQKR2Xq3hXviGS2-Cfg%40mail.gmail.com > > <https://groups.google.com/d/msgid/jenkinsci-dev/CAG%3D_DuvnS%3DaNwvqYCpAXL1EaaS9CrTvFQKR2Xq3hXviGS2-Cfg%40mail.gmail.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/F957912C-7E32-46D0-A9B7-1E568A7E37E1%40gmail.com.
