diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2020-04-22 07:19:27 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-22 16:19:27 +0200 |
| commit | f48a1990fb74a70de53ee58846291dbbce5a29f2 (patch) | |
| tree | e522d6b40b5a85f3f375b765f4258a95d627b2d5 /docs/internals/contributing/writing-code/javascript.txt | |
| parent | f27482f147ac5871a8e70dbbecead3691cc8eb3d (diff) | |
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.
Diffstat (limited to 'docs/internals/contributing/writing-code/javascript.txt')
| -rw-r--r-- | docs/internals/contributing/writing-code/javascript.txt | 3 |
1 files changed, 1 insertions, 2 deletions
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 |
