Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion [ANN] New Chrome devtools extension for doing auto-save and live reload

Received: by 10.224.100.137 with SMTP id y9mr8080648qan.2.1343677056684;
        Mon, 30 Jul 2012 12:37:36 -0700 (PDT)
X-BeenThere: google-chrome-developer-tools@googlegroups.com
Received: by 10.224.95.200 with SMTP id e8ls9213840qan.5.gmail; Mon, 30 Jul
 2012 12:37:35 -0700 (PDT)
Received: by 10.224.100.137 with SMTP id y9mr8080616qan.2.1343677055954;
        Mon, 30 Jul 2012 12:37:35 -0700 (PDT)
Received: by 10.224.106.136 with SMTP id x8msqao;
        Wed, 25 Jul 2012 10:54:44 -0700 (PDT)
Received: by 10.68.197.70 with SMTP id is6mr3251278pbc.14.1343238884264;
        Wed, 25 Jul 2012 10:54:44 -0700 (PDT)
Date: Wed, 25 Jul 2012 10:54:43 -0700 (PDT)
From: johnjbarton <johnjbarton....@gmail.com>
To: google-chrome-developer-tools@googlegroups.com
Cc: John J Barton <johnjbar...@johnjbarton.com>, ryanack...@gmail.com
Message-Id: <b88a1170-5045-46f7-a4de-0e13a00495eb@googlegroups.com>
In-Reply-To: <CAGOLXFu6BiQ-FmUXrrYTsTfZymXNGaGOZKhWFddmPTb-+1XKeg@mail.gmail.com>
References: <e3a7e74c-b5e7-4b28-9da4-8e13273aa805@googlegroups.com>
 <9A70C7A9-407E-4C82-9025-9A547F3173D1@elv1s.ru>
 <5cf95629-aea4-423e-805e-d7b7ec1790e6@googlegroups.com>
 <248FBA47-3EC8-4A02-B01F-05E3C2B67058@elv1s.ru>
 <bab3a3d8-f81c-4802-82f8-54513208b58f@googlegroups.com>
 <CAFAtnWwsd3ECc3RB4Hrbi3fKOZBx1j=wxe8vne3G5Xs08mYbxw@mail.gmail.com>
 <CAGOLXFu6BiQ-FmUXrrYTsTfZymXNGaGOZKhWFddmPTb-+1XKeg@mail.gmail.com>
Subject: Re: [Chrome DevTools] [ANN] New Chrome devtools extension for doing
 auto-save and live reload
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_112_4147138.1343238883447"

------=_Part_112_4147138.1343238883447
Content-Type: multipart/alternative; 
	boundary="----=_Part_113_8398911.1343238883447"

------=_Part_113_8398911.1343238883447
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit



On Wednesday, July 25, 2012 3:26:30 AM UTC-7, Ryan Ackley wrote:
>
> Why wouldn't updating the live image be as simple as 
> "resource.setContent" with the new processed content and a sourcemap. 
>

Because the resource is source, eg a Less file. 
 

> The problem with the scenario right now is that I believe 
> onResourceContentCommitted is called after resource.setUpdate. In the 
> case of files that needed to be re-generated, it would need to be 
> called before. So you need something like 
> onBeforeResourceContentCommitted.


Well right now I think only JS can be edited anyway, but the entire 
Resoure/UISourceCode system is in flux.

Ultimately the user will be editing source, eg JS or CoffeeScript. When 
they save, listeners to onResourceContentCommitted get called. Those 
listeners can 1) save the source, eg to disk/cloud/etc and 2) process the 
source, eg live update JS or compile to JS then live update JS. So it seems 
like the event is already available right?
 

>
>
> > and probably not interesting anyway. More practical and interesting 
> would be 
> > dedicated extension panels for editing artifacts that are meaningful to 
> > developers at the level of these languages. 
>
> Why not in the existing Scripts/Source panel? Devtools already has 2 
> panels that present an editor and file-like heirarchy in a side panel.


Sorry I should have said "dedicated extensions for editing such artifacts". 
Extension authors may choice to use the Source panel or another panel. 
 

>
>
> What about a plugin point for the editor in the Scripts panel? That 
> way someone could inject an ace/orion/codemirror editor and do other 
> cool stuff like auto-complete. I would write an extension for it if 
> there was a plugin point. I might even volunteer to write the plugin 
> point if you guys aren't already working on something like that. 
>

Jan Keromnes is working on this, but it's orthogonal to the issues above. 
ace/orion/codemirror don't compile CoffeeScript/Less/SASS either.

jjb 

------=_Part_113_8398911.1343238883447
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<br><br>On Wednesday, July 25, 2012 3:26:30 AM UTC-7, Ryan Ackley wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Why wouldn't updating the live image be as simple as
<br>"resource.setContent" with the new processed content and a sourcemap.
<br></blockquote><div><br></div><div>Because the resource is source, eg a Less file.&nbsp;</div><div>&nbsp;</div><blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">The problem with the scenario right now is that I believe
<br>onResourceContentCommitted is called after resource.setUpdate. In the
<br>case of files that needed to be re-generated, it would need to be
<br>called before. So you need something like
<br>onBeforeResourceContentCommitt<wbr>ed.</blockquote><div><br></div><div>Well right now I think only JS can be edited anyway, but the entire Resoure/UISourceCode system is in flux.</div><div><br></div><div>Ultimately the user will be editing source, eg JS or CoffeeScript. When they save, listeners to onResourceContentCommitted get called. Those listeners can 1) save the source, eg to disk/cloud/etc and 2) process the source, eg live update JS or compile to JS then live update JS. So it seems like the event is already available right?</div><div>&nbsp;</div><blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<br>
<br>&gt; and probably not interesting anyway. More practical and interesting would be
<br>&gt; dedicated extension panels for editing artifacts that are meaningful to
<br>&gt; developers at the level of these languages.
<br>
<br>Why not in the existing Scripts/Source panel? Devtools already has 2
<br>panels that present an editor and file-like heirarchy in a side panel.</blockquote><div><br></div><div>Sorry I should have said "dedicated extensions for editing such artifacts". Extension authors may choice to use the Source panel or another panel.&nbsp;</div><div>&nbsp;</div><blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<br>
<br>What about a plugin point for the editor in the Scripts panel? That
<br>way someone could inject an ace/orion/codemirror editor and do other
<br>cool stuff like auto-complete. I would write an extension for it if
<br>there was a plugin point. I might even volunteer to write the plugin
<br>point if you guys aren't already working on something like that.
<br></blockquote><div><br></div><div>Jan Keromnes is working on this, but it's orthogonal to the issues above. ace/orion/codemirror don't compile CoffeeScript/Less/SASS either.</div><div><br></div><div>jjb&nbsp;</div>
------=_Part_113_8398911.1343238883447--

------=_Part_112_4147138.1343238883447--