Re: Generating a single .js library with GWT

2013-02-12 Thread Marcos Scriven
I had the very same question. It's irritating the 1.5 docs are still quite 
so prominent in Google search!

The closest I could find is this:

http://www.mccarroll.net/snippets/j2js/index.html

Which uses a bit of Python to strip out the useful code. I believe that 
could instead be done with a custom linker.

Marcos

On Monday, January 14, 2013 2:13:40 PM UTC, Patrick Coleman wrote:

 Hey all - 

 I have a GWT app that I'd like to serve as a single .js file that I can 
 use as a library, has anyone had success in this area?

 I notice that the 'Linker 
 Designhttp://code.google.com/p/google-web-toolkit/wiki/LinkerDesign' 
 site has the following bullet:

 *Use cases we definitely want to enable:*
 ...
 Create a module that appears to be a regular old JavaScript library 
 (i.e. no deferred binding, no two-step startup). 

 So it seems that that's exactly what I'm after, though have had troubles 
 combining everything in the right way to get that result -
 Does anyone know a linker setup which achieves this use-case, or should I 
 be writing my own?



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Generating a single .js library with GWT

2013-02-12 Thread Marcos Scriven
Just to add to that, specifically, you could override this:

http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/core/src/com/google/gwt/core/linker/SingleScriptTemplate.js

Thus obviating the need to strip out the unneeded stuff!

On Tuesday, February 12, 2013 10:23:11 PM UTC, Marcos Scriven wrote:

 I had the very same question. It's irritating the 1.5 docs are still quite 
 so prominent in Google search!

 The closest I could find is this:

 http://www.mccarroll.net/snippets/j2js/index.html

 Which uses a bit of Python to strip out the useful code. I believe that 
 could instead be done with a custom linker.

 Marcos

 On Monday, January 14, 2013 2:13:40 PM UTC, Patrick Coleman wrote:

 Hey all - 

 I have a GWT app that I'd like to serve as a single .js file that I can 
 use as a library, has anyone had success in this area?

 I notice that the 'Linker 
 Designhttp://code.google.com/p/google-web-toolkit/wiki/LinkerDesign' 
 site has the following bullet:

 *Use cases we definitely want to enable:*
 ...
 Create a module that appears to be a regular old JavaScript library 
 (i.e. no deferred binding, no two-step startup). 

 So it seems that that's exactly what I'm after, though have had troubles 
 combining everything in the right way to get that result -
 Does anyone know a linker setup which achieves this use-case, or should I 
 be writing my own?



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Generating a single .js library with GWT

2013-02-13 Thread Marcos Scriven
Thanks for the suggestion - in my particular case though I was looking to 
create a JS library. One that didn't touch the DOM at all.

Thus there should be no variations I believe? So I arbitrarily chose 
'safari' (As the 'webkit' agent).

Marcos

On Wednesday, February 13, 2013 12:53:26 AM UTC, Thomas Broyer wrote:

 Have you tried collapse-all-properties/ (see 
 https://code.google.com/p/google-web-toolkit/wiki/SoftPermutations) 
 possibly combined with add-linker name=sso/

 On Tuesday, February 12, 2013 11:23:11 PM UTC+1, Marcos Scriven wrote:

 I had the very same question. It's irritating the 1.5 docs are still 
 quite so prominent in Google search!

 The closest I could find is this:

 http://www.mccarroll.net/snippets/j2js/index.html

 Which uses a bit of Python to strip out the useful code. I believe that 
 could instead be done with a custom linker.

 Marcos

 On Monday, January 14, 2013 2:13:40 PM UTC, Patrick Coleman wrote:

 Hey all - 

 I have a GWT app that I'd like to serve as a single .js file that I can 
 use as a library, has anyone had success in this area?

 I notice that the 'Linker 
 Designhttp://code.google.com/p/google-web-toolkit/wiki/LinkerDesign' 
 site has the following bullet:

 *Use cases we definitely want to enable:*
 ...
 Create a module that appears to be a regular old JavaScript library 
 (i.e. no deferred binding, no two-step startup). 

 So it seems that that's exactly what I'm after, though have had troubles 
 combining everything in the right way to get that result -
 Does anyone know a linker setup which achieves this use-case, or should 
 I be writing my own?



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.