Return-Path: Delivered-To: apmail-tapestry-dev-archive@www.apache.org Received: (qmail 37709 invoked from network); 3 Mar 2011 22:03:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Mar 2011 22:03:35 -0000 Received: (qmail 56086 invoked by uid 500); 3 Mar 2011 22:03:35 -0000 Delivered-To: apmail-tapestry-dev-archive@tapestry.apache.org Received: (qmail 56048 invoked by uid 500); 3 Mar 2011 22:03:35 -0000 Mailing-List: contact dev-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tapestry development" Delivered-To: mailing list dev@tapestry.apache.org Received: (qmail 56040 invoked by uid 99); 3 Mar 2011 22:03:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Mar 2011 22:03:35 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hlship@gmail.com designates 74.125.83.48 as permitted sender) Received: from [74.125.83.48] (HELO mail-gw0-f48.google.com) (74.125.83.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Mar 2011 22:03:28 +0000 Received: by gwj20 with SMTP id 20so654852gwj.21 for ; Thu, 03 Mar 2011 14:03:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=tk0NF0cxdQ59T5uzlYbx2Admr/vpP8iMmQjaZ9mX/rw=; b=Rt4kzv7D7mK3/nKdAjIyWeZ8AkcQgAMQsHhHA2JKjckbPzacjkxhCV8h8+o49WrRtY 6s574uh1VlOPTALZfcozzsOXo66sf5mWkP/ak7ipNVswSQoR8A5mB0jI+2sA0qIURdJc AWa0wZ634HR2vNBMEET6UKlgLtDhNMgRRR1kc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Q7AiisrH3rzDjfCnGT9Zt1D9z4IPuvTuiWoh29XlkXgpqCTlqXwX2NeT5d0lgzS3Hz ukomqgVUac6bhT49taIgibu8QZ9ogrAekPRYTEmdMpuQc66wvX2AeQgiLTSN1uLh0YQq tNjM4hmPCCYr2b/S68bKeGUReTv4BD/iZdeuU= MIME-Version: 1.0 Received: by 10.101.121.16 with SMTP id y16mr817219anm.37.1299189787015; Thu, 03 Mar 2011 14:03:07 -0800 (PST) Received: by 10.100.10.17 with HTTP; Thu, 3 Mar 2011 14:03:06 -0800 (PST) In-Reply-To: References: Date: Thu, 3 Mar 2011 14:03:06 -0800 Message-ID: Subject: Re: YUICompresser/Rhino as dependency? From: Howard Lewis Ship To: Tapestry development , francois.facon@atosorigin.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2011/3/3 fran=E7ois facon : > seems to be compatible with jQuery and others toolkits. > better performance on both client an server side. it's Green. > +1 for tapestry-minification, or 3rd party library (in case license troub= le) > Perhaps this will also let the door open to use any compressor during the > Maven *build.* > I think the advantage of doing it at runtime, rather than build time, is that the un-minified files are always there, which are easier to debug on the client. I think it's a have-your-cake-and-eat-it-too situation ... though there's the cost of aggregating and mini-fying the JS files the first time. Other solutions involve shipping multiple copies of files (individual, minified, aggregated, aggregated/minified). That can cause its own problems, not just bloat. > 2011/3/3 Howard Lewis Ship > >> Check out my most recent commit, which will make it super-easy to >> override any default behavior. >> >> On Thu, Mar 3, 2011 at 11:09 AM, Josh Canfield >> wrote: >> >> So ... where should the hooks into YUICompressor go? =A0Could put it >> >> right into tapestry-core, could create a new sub-project, >> >> tapestry-minification, or it could just be a 3rd party library on >> >> GitHub. >> > >> > I would make my decision based on whether this would turn into a >> > prototype vs. jquery debate at some point. If you make it a module >> > then I assume core would get public APIs that would make integrating >> > the next great js/css compressor. >> > >> > Maybe just keeping an eye on replaceability would be good enough. >> > >> > Josh >> > >> > On Thu, Mar 3, 2011 at 10:16 AM, Howard Lewis Ship >> wrote: >> >> If you've been watching the commits, I've been reorganizing things >> >> inside Tapestry's asset processing to support some new features. The >> >> big goal is JavaScript (and CSS) minification. Right now, all the >> >> pipelines are in place, and there's a placeholder service, >> >> ResourceMinimizer, waiting for a real implementation. >> >> >> >> I've targeted YUICompressor >> >> (http://developer.yahoo.com/yui/compressor/) which uses a BSD license >> >> (and requires Rhino, =A0MPL license). I believe these are compatible >> >> licences w/ ASL. >> >> >> >> So ... where should the hooks into YUICompressor go? =A0Could put it >> >> right into tapestry-core, could create a new sub-project, >> >> tapestry-minification, or it could just be a 3rd party library on >> >> GitHub. >> >> >> >> Thoughts? Preferences? >> >> >> >> -- >> >> Howard M. Lewis Ship >> >> >> >> Creator of Apache Tapestry >> >> >> >> The source for Tapestry training, mentoring and support. Contact me t= o >> >> learn how I can get you up and productive in Tapestry fast! >> >> >> >> (971) 678-5210 >> >> http://howardlewisship.com >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org >> >> For additional commands, e-mail: dev-help@tapestry.apache.org >> >> >> >> >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org >> > For additional commands, e-mail: dev-help@tapestry.apache.org >> > >> > >> >> >> >> -- >> Howard M. Lewis Ship >> >> Creator of Apache Tapestry >> >> The source for Tapestry training, mentoring and support. Contact me to >> learn how I can get you up and productive in Tapestry fast! >> >> (971) 678-5210 >> http://howardlewisship.com >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org >> For additional commands, e-mail: dev-help@tapestry.apache.org >> >> > --=20 Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org For additional commands, e-mail: dev-help@tapestry.apache.org