Merge lp:~deryck/launchpad/minify-app-specific-js-592795 into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Deryck Hodge on 2010-06-14 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 11009 |
| Proposed branch: | lp:~deryck/launchpad/minify-app-specific-js-592795 |
| Merge into: | lp:launchpad |
| Diff against target: |
55 lines (+19/-4) 2 files modified
Makefile (+1/-1) utilities/lp-deps.py (+18/-3) |
| To merge this branch: | bzr merge lp:~deryck/launchpad/minify-app-specific-js-592795 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Māris Fogels (community) | 2010-06-11 | Approve on 2010-06-11 | |
|
Review via email:
|
|||
Commit Message
Ensure JavaScript included from app-specific modules is minified.
Description of the Change
This gets js files that live in app-specific javascript directories
minified. They are not currently minified, and while moving bugs js
code to lp.bugs.javascript, I got the build error about launchpad.js
being over 500k.
I've run the fix by rockstar who wrote the original lp-dep script,
and mars since he maintains the front-end build infrastructure. Both
seemed generally fine with the approach here, after some small
discussion on IRC.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files:
Makefile
utilities/
| Deryck Hodge (deryck) wrote : | # |
Hi, Maris.
I'm adding a comment for the monkey patch, and yes, I have run this through make jscheck. Passes fine.
Thanks for the review and comments!
Cheers,
deryck

Hi Deryck,
I assume the log_none() monkey patch is because this script's output to STDOUT is a programmatic input to another script? It would be nice to put a comment before if that is the case.
I assume you ran this through 'xvfb-run make jscheck'?
And thanks for the Makefile fix.
With the added comment, r=mars.
Maris