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

Issue 2800833004: Create js_library and js_binary templates for closure compiling. (Closed)

Created:
3 years, 8 months ago by damargulis
Modified:
3 years, 8 months ago
CC:
aberent, brettw, chromium-reviews, dbeam+watch-closure_chromium.org, dpapad, Dirk Pranke, jlklein+watch-closure_chromium.org, vitalyp+closure_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Create js_library and js_binary templates for closure compiling. This creates the js_library and js_binary templates to be used within chromium. These templates simulate their matching partners in Blaze. The js_library template is used to create an ordering for .js files. The js_binary template is used to compile .js files and js_library targets. BUG=632206 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2800833004 Cr-Commit-Position: refs/heads/master@{#466471} Committed: https://chromium.googlesource.com/chromium/src/+/5c5337d8b474a6d07320536d0bab8bfbf548c219

Patch Set 1 #

Patch Set 2 : Remove unused import #

Patch Set 3 : fix comments #

Patch Set 4 : clean #

Patch Set 5 : add common_closure_args #

Patch Set 6 : format #

Patch Set 7 : use get_label_info #

Total comments: 32

Patch Set 8 : fixes #

Total comments: 10

Patch Set 9 : . #

Total comments: 2

Patch Set 10 : nits #

Patch Set 11 : fixes #

Patch Set 12 : format #

Total comments: 9

Patch Set 13 : fixes #

Total comments: 44

Patch Set 14 : fixes #

Total comments: 8

Patch Set 15 : glint #

Patch Set 16 : fixes #

Total comments: 2

Patch Set 17 : use compile2 #

Total comments: 1

Patch Set 18 : use minifying_closure_args #

Patch Set 19 : update comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+276 lines, -2 lines) Patch
M third_party/closure_compiler/compile2.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -2 lines 0 comments Download
A third_party/closure_compiler/compile_js.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +165 lines, -0 lines 0 comments Download
A third_party/closure_compiler/js_binary.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +80 lines, -0 lines 0 comments Download
A third_party/closure_compiler/js_library.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 49 (13 generated)
damargulis
Hi Stephen, Alok mentioned that you know alot about gn actions, so I'd really appreciate ...
3 years, 8 months ago (2017-04-06 21:18:54 UTC) #3
mbjorge
Relevant bug: https://bugs.chromium.org/p/chromium/issues/detail?id=632206
3 years, 8 months ago (2017-04-06 21:23:25 UTC) #5
mbjorge
Some unsolicited feedback :D I think you would be better off finding an alternative to ...
3 years, 8 months ago (2017-04-06 22:42:53 UTC) #7
damargulis
On 2017/04/06 22:42:53, mbjorge wrote: > Some unsolicited feedback :D > > I think you ...
3 years, 8 months ago (2017-04-06 22:57:52 UTC) #8
damargulis
On 2017/04/06 22:57:52, damargulis wrote: > On 2017/04/06 22:42:53, mbjorge wrote: > > Some unsolicited ...
3 years, 8 months ago (2017-04-06 23:01:56 UTC) #9
mbjorge
On 2017/04/06 at 23:01:56, damargulis wrote: > On 2017/04/06 22:57:52, damargulis wrote: > > On ...
3 years, 8 months ago (2017-04-06 23:06:35 UTC) #10
Dan Beam
cc'd some folks that I've talked about this with in the past
3 years, 8 months ago (2017-04-07 00:12:08 UTC) #12
mbjorge
imo, this looks pretty good! Mostly just style comments from me https://codereview.chromium.org/2800833004/diff/120001/third_party/closure_compiler/compile_js.gni File third_party/closure_compiler/compile_js.gni (right): ...
3 years, 8 months ago (2017-04-07 19:23:18 UTC) #13
damargulis
https://codereview.chromium.org/2800833004/diff/120001/third_party/closure_compiler/compile_js.gni File third_party/closure_compiler/compile_js.gni (right): https://codereview.chromium.org/2800833004/diff/120001/third_party/closure_compiler/compile_js.gni#newcode12 third_party/closure_compiler/compile_js.gni:12: # Usage is similar but adapted to fit the ...
3 years, 8 months ago (2017-04-07 23:02:19 UTC) #14
slan
This patch looks really solid to me, especially after Mike's comments. Nice work. lgtm. https://codereview.chromium.org/2800833004/diff/120001/third_party/closure_compiler/compile_js.gni ...
3 years, 8 months ago (2017-04-07 23:08:39 UTC) #15
mbjorge
https://codereview.chromium.org/2800833004/diff/140001/third_party/closure_compiler/js_binary.py File third_party/closure_compiler/js_binary.py (right): https://codereview.chromium.org/2800833004/diff/140001/third_party/closure_compiler/js_binary.py#newcode30 third_party/closure_compiler/js_binary.py:30: if IsExecutable(command): should this be IsExecutable(filepath)?
3 years, 8 months ago (2017-04-07 23:11:20 UTC) #16
mbjorge
just a few more nits If you wanted, you could use a .js_library extension instead ...
3 years, 8 months ago (2017-04-07 23:30:19 UTC) #17
damargulis
I changed the extension from .txt -> .js_library, but I was not able to check ...
3 years, 8 months ago (2017-04-08 00:19:49 UTC) #18
mbjorge
lgtm % last couple nits https://codereview.chromium.org/2800833004/diff/160001/third_party/closure_compiler/compile_js.gni File third_party/closure_compiler/compile_js.gni (right): https://codereview.chromium.org/2800833004/diff/160001/third_party/closure_compiler/compile_js.gni#newcode73 third_party/closure_compiler/compile_js.gni:73: # Only takes in ...
3 years, 8 months ago (2017-04-10 20:08:00 UTC) #19
damargulis
I noticed a few errors while attempting to use this, so I uploaded a couple ...
3 years, 8 months ago (2017-04-11 22:45:28 UTC) #20
mbjorge
On 2017/04/11 at 22:45:28, damargulis wrote: > I noticed a few errors while attempting to ...
3 years, 8 months ago (2017-04-12 18:45:44 UTC) #21
slan
Friendly ping for OWNER review!
3 years, 8 months ago (2017-04-12 22:46:09 UTC) #22
Dirk Pranke
Nice! This is more or less what I had in mind but never got around ...
3 years, 8 months ago (2017-04-14 02:01:44 UTC) #24
damargulis
Thanks for the help Dirk! I made some of the changes you mentioned, and left ...
3 years, 8 months ago (2017-04-14 17:46:33 UTC) #25
Dirk Pranke
lgtm! https://codereview.chromium.org/2800833004/diff/220001/third_party/closure_compiler/compile_js.gni File third_party/closure_compiler/compile_js.gni (right): https://codereview.chromium.org/2800833004/diff/220001/third_party/closure_compiler/compile_js.gni#newcode32 third_party/closure_compiler/compile_js.gni:32: "Need sources or deps in $target_name for js_library") ...
3 years, 8 months ago (2017-04-15 00:46:44 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2800833004/240001
3 years, 8 months ago (2017-04-15 00:48:53 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/412023)
3 years, 8 months ago (2017-04-15 01:00:08 UTC) #31
Dan Beam
hey Daniel, I think this generally looks good and I think this could be a ...
3 years, 8 months ago (2017-04-18 02:05:50 UTC) #32
Dan Beam
https://codereview.chromium.org/2800833004/diff/240001/third_party/closure_compiler/js_binary.py File third_party/closure_compiler/js_binary.py (right): https://codereview.chromium.org/2800833004/diff/240001/third_party/closure_compiler/js_binary.py#newcode103 third_party/closure_compiler/js_binary.py:103: compiler_args += ['--externs=' + extern] On 2017/04/18 02:05:50, Dan ...
3 years, 8 months ago (2017-04-18 02:07:42 UTC) #33
damargulis
Thanks for all the help Dan! I made most of the changes you suggested, and ...
3 years, 8 months ago (2017-04-19 00:42:13 UTC) #34
mbjorge
https://codereview.chromium.org/2800833004/diff/260001/third_party/closure_compiler/compile_js.gni File third_party/closure_compiler/compile_js.gni (right): https://codereview.chromium.org/2800833004/diff/260001/third_party/closure_compiler/compile_js.gni#newcode85 third_party/closure_compiler/compile_js.gni:85: # A list of custom flags to pass to ...
3 years, 8 months ago (2017-04-19 01:15:42 UTC) #35
damargulis
As talked about with Mike, I also ran glint on the python files and made ...
3 years, 8 months ago (2017-04-19 01:36:19 UTC) #36
Dan Beam
https://codereview.chromium.org/2800833004/diff/240001/third_party/closure_compiler/js_binary.py File third_party/closure_compiler/js_binary.py (right): https://codereview.chromium.org/2800833004/diff/240001/third_party/closure_compiler/js_binary.py#newcode16 third_party/closure_compiler/js_binary.py:16: import subprocess On 2017/04/19 00:42:12, damargulis wrote: > On ...
3 years, 8 months ago (2017-04-19 17:59:45 UTC) #37
damargulis
I changed js_binary.py to import compile2 and use its run_jar method, which I changed to ...
3 years, 8 months ago (2017-04-19 22:31:42 UTC) #38
Dan Beam
https://codereview.chromium.org/2800833004/diff/320001/third_party/closure_compiler/compile_js.gni File third_party/closure_compiler/compile_js.gni (right): https://codereview.chromium.org/2800833004/diff/320001/third_party/closure_compiler/compile_js.gni#newcode155 third_party/closure_compiler/compile_js.gni:155: args += [ "--flags" ] + default_closure_args - [ ...
3 years, 8 months ago (2017-04-21 00:33:40 UTC) #39
Dan Beam
otherwise this lgtm
3 years, 8 months ago (2017-04-21 00:33:49 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2800833004/360001
3 years, 8 months ago (2017-04-21 21:09:47 UTC) #43
mbjorge
On 2017/04/21 at 00:33:40, dbeam wrote: > https://codereview.chromium.org/2800833004/diff/320001/third_party/closure_compiler/compile_js.gni > File third_party/closure_compiler/compile_js.gni (right): > > https://codereview.chromium.org/2800833004/diff/320001/third_party/closure_compiler/compile_js.gni#newcode155 ...
3 years, 8 months ago (2017-04-21 21:13:58 UTC) #44
Dan Beam
On 2017/04/21 21:13:58, mbjorge wrote: > On 2017/04/21 at 00:33:40, dbeam wrote: > > > ...
3 years, 8 months ago (2017-04-21 22:12:51 UTC) #45
damargulis
On 2017/04/21 22:12:51, Dan Beam wrote: > On 2017/04/21 21:13:58, mbjorge wrote: > > On ...
3 years, 8 months ago (2017-04-21 22:22:53 UTC) #46
commit-bot: I haz the power
3 years, 8 months ago (2017-04-21 22:36:31 UTC) #49
Message was sent while issue was closed.
Committed patchset #19 (id:360001) as
https://chromium.googlesource.com/chromium/src/+/5c5337d8b474a6d07320536d0bab...

Powered by Google App Engine
This is Rietveld 408576698