mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Made compress.py script use the official google-closure-compiler release.
The script previously used the PyPI package closure, which is slightly out of date and not maintained by Google. The JavaScript contribution docs and the compress.py script now runs the google-closure-compiler package in the recommended way. Google's documentation on usage and installation can be found at: https://github.com/google/closure-compiler-npm/tree/master/packages/google-closure-compiler#usage This also makes the usage simpler as the package now runs through npm's npx utility, which will automatically install google-closure-compiler to a per-user cache.
This commit is contained in:
parent
f27482f147
commit
f48a1990fb
2 changed files with 9 additions and 26 deletions
|
@ -55,12 +55,11 @@ version. To run it:
|
|||
|
||||
.. console::
|
||||
|
||||
$ python -m pip install closure
|
||||
$ python django/contrib/admin/bin/compress.py
|
||||
|
||||
Behind the scenes, ``compress.py`` is a front-end for Google's
|
||||
`Closure Compiler`_ which is written in Java. The Closure Compiler library is
|
||||
not bundled with Django, but you can install it using pip as done above. The
|
||||
not bundled with Django, but will be installed automatically by ``npm``. The
|
||||
Closure Compiler library requires `Java`_ 7 or higher.
|
||||
|
||||
Please don't forget to run ``compress.py`` and include the ``diff`` of the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue