Hi,

I'd like to host a new plugin to manage javascript and css libraries from
within Jenkins.

Here is the link to the hosting request
https://issues.jenkins-ci.org/browse/HOSTING-53
which has more details on how the plugin works.

The idea behind the plugin is to
  1) provide a centralized location within Jenkins to manage js and css
libraries.
  2) prevent the same js/css library from being loaded multiple times
  3) dependency/version management of js/css libraries

The plugin includes these libraries under the head tag of all html pages in
Jenkins.

Below are some use-cases for this plugin

1) If someone wants to customize Jenkins UI they can use this plugin to add
necessary js and css libraries to the head section.

2) If another plugin wants to use a js library then instead of including
the js library as part of the plugin itself it can use the extension-point
provided by the htmlresource plugin to manage the js library in a
centralized location. This will prevent multiple plugins that want to use
the same js library from loading the library multiple times in the head
section of jenkins page.

Currently to prevent a js library from being loaded multiple times we have
to create a specific plugin for that library he and have other plugins
include it as a dependency. An example is the jquery plugin library.
Creating a plugin just to use a js library can be too cumbersome,
especially since there are so many popular js libraries available.

3) If someone uses version-1 of a js library to customize Jenkins UI, but
also adds a plugin that uses version-2 of the same js library then
currently both versions of the libraries wold get added to head section of
jenkins html pages. This can be prevented if the plugin uses the
htmlresource extension point to manage the js library.

The extension-point to allow plugins to manage js libraries  is a work in
progress.
More details and screenshots can be found here.

https://github.com/vimil/htmlresource-plugin

Let me know what you think about the concept.

Thanks
Vimil

-- 
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/CAFyP1DhcMh5yy-u0Qznph5g0C5utJeBg6x%3DDz2iLSpTH%2BcmoiA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to