From 415f42af822783255b0f4be73b27b2e7f3e027a7 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Sun, 26 Jul 2015 18:12:15 +0000 Subject: [PATCH] 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 --- ietf/static/README.rst | 22 ++++++++++++++++++++++ ietf/static/bower.json | 17 +++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 ietf/static/README.rst create mode 100644 ietf/static/bower.json diff --git a/ietf/static/README.rst b/ietf/static/README.rst new file mode 100644 index 000000000..5b4595ae1 --- /dev/null +++ b/ietf/static/README.rst @@ -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/ diff --git a/ietf/static/bower.json b/ietf/static/bower.json new file mode 100644 index 000000000..ec91739b8 --- /dev/null +++ b/ietf/static/bower.json @@ -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": {} +}