From f48a1990fb74a70de53ee58846291dbbce5a29f2 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Wed, 22 Apr 2020 07:19:27 -0700 Subject: 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. --- docs/internals/contributing/writing-code/javascript.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'docs/internals/contributing/writing-code/javascript.txt') diff --git a/docs/internals/contributing/writing-code/javascript.txt b/docs/internals/contributing/writing-code/javascript.txt index 09017af63a..3b90622f7e 100644 --- a/docs/internals/contributing/writing-code/javascript.txt +++ b/docs/internals/contributing/writing-code/javascript.txt @@ -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 -- cgit v1.3