Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Issue 958383003: Output closure-compiled JavaScript files (Closed)

Created:
5 years, 9 months ago by Theresa
Modified:
5 years, 9 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews, vitalyp+closure_chromium.org, noyau+watch_chromium.org, arv+watch_chromium.org, dbeam+watch-closure_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Output closure-compiled JavaScript files If generate_output is set, chcker.py adds compiler flags to actually output the compiled JS. It will also output a source map if the build is Debug. BUG=393874 Committed: https://crrev.com/b7f849b027b42917a032dca4f2467db357fa26a4 Cr-Commit-Position: refs/heads/master@{#319637}

Patch Set 1 #

Patch Set 2 : Little bit of clean up #

Total comments: 3

Patch Set 3 : Always generate source map if minified js is output #

Total comments: 21

Patch Set 4 : Always generate compiled output, revert changes to example files #

Total comments: 2

Patch Set 5 : Create output file if doesn't already exist #

Total comments: 1

Patch Set 6 : Add back checks for if(out_file) #

Total comments: 8

Patch Set 7 : Address issues from last review #

Patch Set 8 : Fix a line wrap #

Total comments: 3

Patch Set 9 : Update out_file pydoc #

Patch Set 10 : Fix line wrap #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -11 lines) Patch
M third_party/closure_compiler/checker.py View 1 2 3 4 5 6 7 8 9 7 chunks +21 lines, -11 lines 1 comment Download

Messages

Total messages: 32 (7 generated)
Theresa
This is a first pass at outputting closure-compiled JS files. Ultimately, only checker.py and compile_js.gypi ...
5 years, 9 months ago (2015-02-27 20:24:09 UTC) #2
Dan Beam
https://codereview.chromium.org/958383003/diff/20001/chrome/browser/resources/enhanced_bookmarks/get_salient_image_url.js File chrome/browser/resources/enhanced_bookmarks/get_salient_image_url.js (right): https://codereview.chromium.org/958383003/diff/20001/chrome/browser/resources/enhanced_bookmarks/get_salient_image_url.js#newcode21 chrome/browser/resources/enhanced_bookmarks/get_salient_image_url.js:21: var jsonEncoder = JSON['stringify']; is JSON.{encode,stringify} not in the ...
5 years, 9 months ago (2015-03-06 02:57:29 UTC) #3
Theresa
Thank you for the review :) a few comments inline, will work on getting this ...
5 years, 9 months ago (2015-03-06 03:07:19 UTC) #4
Dan Beam
yeah, actually... i'd say just always write the output and let people use it if ...
5 years, 9 months ago (2015-03-06 03:41:38 UTC) #5
chromium-reviews
+1, that's certainly simpler :) On Thu, Mar 5, 2015, 7:41 PM null <dbeam@chromium.org> wrote: ...
5 years, 9 months ago (2015-03-06 04:01:41 UTC) #6
Theresa
ptal had some time while the London sheriff was still on duty; compiled JS and ...
5 years, 9 months ago (2015-03-06 18:09:19 UTC) #7
Dan Beam
https://codereview.chromium.org/958383003/diff/60001/third_party/closure_compiler/checker.py File third_party/closure_compiler/checker.py (left): https://codereview.chromium.org/958383003/diff/60001/third_party/closure_compiler/checker.py#oldcode314 third_party/closure_compiler/checker.py:314: os.makedirs(out_dir) still need to do this somewhere $ echo ...
5 years, 9 months ago (2015-03-06 19:58:55 UTC) #8
Theresa
ptal https://codereview.chromium.org/958383003/diff/60001/third_party/closure_compiler/checker.py File third_party/closure_compiler/checker.py (left): https://codereview.chromium.org/958383003/diff/60001/third_party/closure_compiler/checker.py#oldcode314 third_party/closure_compiler/checker.py:314: os.makedirs(out_dir) On 2015/03/06 19:58:55, Dan Beam wrote: > ...
5 years, 9 months ago (2015-03-06 20:30:30 UTC) #9
Dan Beam
https://codereview.chromium.org/958383003/diff/80001/third_party/closure_compiler/checker.py File third_party/closure_compiler/checker.py (right): https://codereview.chromium.org/958383003/diff/80001/third_party/closure_compiler/checker.py#newcode311 third_party/closure_compiler/checker.py:311: open(opts.out_file, "w").close() this last part isn't needed, just the ...
5 years, 9 months ago (2015-03-06 20:36:26 UTC) #10
Theresa
On 2015/03/06 20:36:26, Dan Beam wrote: > https://codereview.chromium.org/958383003/diff/80001/third_party/closure_compiler/checker.py > File third_party/closure_compiler/checker.py (right): > > https://codereview.chromium.org/958383003/diff/80001/third_party/closure_compiler/checker.py#newcode311 ...
5 years, 9 months ago (2015-03-06 20:40:01 UTC) #11
Theresa
On 2015/03/06 20:40:01, twellington wrote: > On 2015/03/06 20:36:26, Dan Beam wrote: > > > ...
5 years, 9 months ago (2015-03-06 20:42:48 UTC) #12
Theresa
ptal Decided to add back the checks for if(opt_file) (keeping the argument optional, since it's ...
5 years, 9 months ago (2015-03-06 23:24:46 UTC) #13
Dan Beam
https://codereview.chromium.org/958383003/diff/100001/third_party/closure_compiler/checker.py File third_party/closure_compiler/checker.py (right): https://codereview.chromium.org/958383003/diff/100001/third_party/closure_compiler/checker.py#newcode182 third_party/closure_compiler/checker.py:182: def run_js_check(self, sources, out_file=None, externs=None): can you make this ...
5 years, 9 months ago (2015-03-07 00:43:54 UTC) #14
Theresa
ptal https://codereview.chromium.org/958383003/diff/100001/third_party/closure_compiler/checker.py File third_party/closure_compiler/checker.py (right): https://codereview.chromium.org/958383003/diff/100001/third_party/closure_compiler/checker.py#newcode182 third_party/closure_compiler/checker.py:182: def run_js_check(self, sources, out_file=None, externs=None): On 2015/03/07 00:43:54, ...
5 years, 9 months ago (2015-03-07 00:54:18 UTC) #15
Dan Beam
lgtm https://codereview.chromium.org/958383003/diff/140001/third_party/closure_compiler/checker.py File third_party/closure_compiler/checker.py (right): https://codereview.chromium.org/958383003/diff/140001/third_party/closure_compiler/checker.py#newcode20 third_party/closure_compiler/checker.py:20: class Checker(object): i guess i'll have to rename ...
5 years, 9 months ago (2015-03-07 01:55:26 UTC) #16
Theresa
https://codereview.chromium.org/958383003/diff/140001/third_party/closure_compiler/checker.py File third_party/closure_compiler/checker.py (right): https://codereview.chromium.org/958383003/diff/140001/third_party/closure_compiler/checker.py#newcode216 third_party/closure_compiler/checker.py:216: out_file: A file to output results. On 2015/03/07 01:55:26, ...
5 years, 9 months ago (2015-03-07 02:50:59 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/958383003/180001
5 years, 9 months ago (2015-03-07 02:51:48 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) mac_chromium_rel_ng on ...
5 years, 9 months ago (2015-03-07 04:52:51 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/958383003/180001
5 years, 9 months ago (2015-03-07 17:06:07 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) mac_chromium_rel_ng on ...
5 years, 9 months ago (2015-03-07 19:06:44 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/958383003/180001
5 years, 9 months ago (2015-03-09 15:14:44 UTC) #28
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 9 months ago (2015-03-09 15:36:52 UTC) #29
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/b7f849b027b42917a032dca4f2467db357fa26a4 Cr-Commit-Position: refs/heads/master@{#319637}
5 years, 9 months ago (2015-03-09 15:37:31 UTC) #30
Marc Treib
A revert of this CL (patchset #10 id:180001) has been created in https://codereview.chromium.org/989253003/ by treib@chromium.org. ...
5 years, 9 months ago (2015-03-09 15:50:21 UTC) #31
Dan Beam
5 years, 9 months ago (2015-03-09 16:45:51 UTC) #32
Message was sent while issue was closed.
https://codereview.chromium.org/958383003/diff/180001/third_party/closure_com...
File third_party/closure_compiler/checker.py (left):

https://codereview.chromium.org/958383003/diff/180001/third_party/closure_com...
third_party/closure_compiler/checker.py:243: errors, stderr =
self.run_js_check([self._expanded_file], externs)
oh, guess this is used somewhere else...

Powered by Google App Engine
This is Rietveld 408576698