[openstack-dev] [horizon] xstatic for removing bundled js libs

Radomir Dopieralski openstack at sheep.art.pl
Wed Mar 26 11:01:56 UTC 2014

On 26/03/14 11:43, Maxime Vidori wrote:
>> I propose a more general solution of using xstatic-* Python packages,
>> which contain basically just the files that we want to bundle, plus some
>> small amount of metadata. All of the JavaScript (and any static files,
>> really, including styles, fonts and icons) would be then handled the
>> same way, by just adding the relevant package to the requirements and to
>> the settings.py file. Packaging the libraries that are missing is very
>> easy (as there is no extra code to write), and we get to share the
>> effort with other projects that use xstatic.

> Hi Radomir,
> I quickly looked at xstatic and I have the impression that you have to handle
> manually the retrievement of the javascript library files and the version of
> the scripts. What do you think of wrapping bower in a script in order to
> dynamically generate packages with the right versions?

How the actual xstatic-* packages are created and maintained is up to
the packager. They are not part of Horizon, so you can use any tools
you wish to create and update them.

Radomir Dopieralski

More information about the OpenStack-dev mailing list