Added a static directory to hold possible future staticfiles and also README and bower.json files related to the CDN-related changes.

- Legacy-Id: 9886
This commit is contained in:
Henrik Levkowetz 2015-07-26 18:12:15 +00:00
parent c40fc2d0dc
commit 415f42af82
2 changed files with 39 additions and 0 deletions

22
ietf/static/README.rst Normal file
View file

@ -0,0 +1,22 @@
Handling of External Javascript and CSS Components
==================================================
This directory (``ietf/static/``) exists for the sole purpose of providing a visible
location for ``ietf/static/bower.json``, a bower_ file which lists the external
web assets used by the datatracker.
In order to update the version of a component listed in ``ietf/static/bower.json``,
or add a new one, you should edit ``bower.json``, and then run the management command::
$ ietf/manage.py bower_install
That command will fetch the required version of each external component listed in ``bower.json``
(actually, it will do this for *all* ``bower.json`` files found in the ``static/`` directories
of all ``INSTALLED_APPS`` and the directories in ``settings.STATICFILES_DIRS``), saving them
temporarily under ``.tmp/bower_components/``; it will then extract the relevant ``js`` and
``css`` files and place them in an appropriately named directory under ``static/lib/``. The
latter location is controlled by ``COMPONENT_ROOT`` in ``settings.py``.
(Not surprisingly, you need to have bower_ installed in order to use this management command.)
.. _bower: http://bower.io/

17
ietf/static/bower.json Normal file
View file

@ -0,0 +1,17 @@
{
"name": "datatracker",
"version": "6.0.0",
"ignore": [],
"main": [],
"dependencies": {
"bootstrap": "3.3.4",
"bootstrap-datepicker": "1.3.1",
"font-awesome": "4.3.0",
"jquery": "1.11.2",
"jquery.cookie": "1.4.1",
"qunit": "1.12.0",
"select2": "3.5.2",
"select2-bootstrap-css": "1.4.6"
},
"devDependencies": {}
}