Re: CSS / JS Compression
You can use this other CSS and Js compressor in Cake 2.x, see https://github.com/glaucocustodio/easy-compressor-plugin Em sábado, 14 de julho de 2012 22h30min59s UTC-3, advantage+ escreveu: > > Hello Mark, > > > > I did see the one you wrote but having to define the specific sets of > different css / js files did not seem like the option I was looking for in > a separate ini file. I want to be able to say ok let me try using > colorbox.js or lightbox.js and add that directly in the view rather than > define different sets of js / css in a remote file. > > > > *From:* cake...@googlegroups.com [mailto: > cake...@googlegroups.com ] *On Behalf Of *mark_story > *Sent:* Saturday, July 14, 2012 10:58 PM > *To:* cake...@googlegroups.com > *Subject:* Re: CSS / JS Compression > > > > I wrote one, its on github. > > > > http://github.com/markstory/asset_compress. > > > > It affords the ability to concatenate and minify files. It also allows you > to integrate preprocessors like less, sass and coffee-script into your > projects. > > > > -Mark > > On Saturday, 14 July 2012 17:27:34 UTC-4, advantage+ wrote: > > I know in older versions of cake there were many compression / combine > plugins that would take the defined css /js for the view and compress / > combine / minimize so you ended up with 1 js and 1 css file. Is there > anything like that for 2.x? > > > > I liked the way I defined what I needed in each view specifically…. > > > > I had used Compressor plugin. And in the view simply dropped in > > > > Compressor->add_libs( 'js', array('jquery.form', > 'jquery.blockUI', 'jquery-ui-1.8.6.custom.min') );?> > > > > Anyone fine anything similar? > > > > Thanks all. > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > cake-php+u...@googlegroups.com For more options, visit this > group at http://groups.google.com/group/cake-php > -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
RE: CSS / JS Compression
> I will take another look. Just first off the first thing I thought was ok > this age needs these 5 js scripts, other page needs 2, 15 pages need a > different 6, all and all my site has close to 1000 views and 50% have a > combination of different required scripts so just though ok which confing > name do I use for this page? Just seemed it might be a bit hard to remember. If you have a lot of views and a lot of different combinations of js files - thats a great example of why trying to automate things gets tricky. Because serving one js bundle becomes counter productive, so the problem becomes _which_ js bundles (plural) to include. If your js-bundles are not preconfigured that can easily turn into a build/on-demand logic mess. AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
RE: CSS / JS Compression
I will take another look. Just first off the first thing I thought was ok this age needs these 5 js scripts, other page needs 2, 15 pages need a different 6, all and all my site has close to 1000 views and 50% have a combination of different required scripts so just though ok which confing name do I use for this page? Just seemed it might be a bit hard to remember. But I will dig into the link you sent and give it another go. Thanks Dave From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of mark_story Sent: Sunday, July 15, 2012 10:30 AM To: cake-php@googlegroups.com Subject: Re: CSS / JS Compression I've found overtime that having explicit build files makes life much easier in the long run. AssetCompress does have support for anonymous builds as well https://github.com/markstory/asset_compress/wiki/Helper-usage -Mark On Saturday, 14 July 2012 21:30:59 UTC-4, advantage+ wrote: Hello Mark, I did see the one you wrote but having to define the specific sets of different css / js files did not seem like the option I was looking for in a separate ini file. I want to be able to say ok let me try using colorbox.js or lightbox.js and add that directly in the view rather than define different sets of js / css in a remote file. From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of mark_story Sent: Saturday, July 14, 2012 10:58 PM To: cake-php@googlegroups.com Subject: Re: CSS / JS Compression I wrote one, its on github. http://github.com/markstory/asset_compress. It affords the ability to concatenate and minify files. It also allows you to integrate preprocessors like less, sass and coffee-script into your projects. -Mark On Saturday, 14 July 2012 17:27:34 UTC-4, advantage+ wrote: I know in older versions of cake there were many compression / combine plugins that would take the defined css /js for the view and compress / combine / minimize so you ended up with 1 js and 1 css file. Is there anything like that for 2.x? I liked the way I defined what I needed in each view specifically.. I had used Compressor plugin. And in the view simply dropped in Compressor->add_libs( 'js', array('jquery.form', 'jquery.blockUI', 'jquery-ui-1.8.6.custom.min') );?> Anyone fine anything similar? Thanks all. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: CSS / JS Compression
I've to agree with this. At first I wasn't to shabby about it (mainly having all asset configuration in 1 place, that's why I hacked in support for plugin ini files) but once I started working with it, it made a whole lot of things (combining assets and compressing them with YUI on deployment via Jenkins) easier and less time consuming. So more time to develop awesome features :). On Sunday, July 15, 2012 3:00:11 PM UTC+2, mark_story wrote: > > I've found overtime that having explicit build files makes life much > easier in the long run. AssetCompress does have support for anonymous > builds as well > > https://github.com/markstory/asset_compress/wiki/Helper-usage > > -Mark > > On Saturday, 14 July 2012 21:30:59 UTC-4, advantage+ wrote: >> >> Hello Mark, >> >> >> >> I did see the one you wrote but having to define the specific sets of >> different css / js files did not seem like the option I was looking for in >> a separate ini file. I want to be able to say ok let me try using >> colorbox.js or lightbox.js and add that directly in the view rather than >> define different sets of js / css in a remote file. >> >> >> >> *From:* cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] *On >> Behalf Of *mark_story >> *Sent:* Saturday, July 14, 2012 10:58 PM >> *To:* cake-php@googlegroups.com >> *Subject:* Re: CSS / JS Compression >> >> >> >> I wrote one, its on github. >> >> >> >> http://github.com/markstory/asset_compress. >> >> >> >> It affords the ability to concatenate and minify files. It also allows >> you to integrate preprocessors like less, sass and coffee-script into your >> projects. >> >> >> >> -Mark >> >> On Saturday, 14 July 2012 17:27:34 UTC-4, advantage+ wrote: >> >> I know in older versions of cake there were many compression / combine >> plugins that would take the defined css /js for the view and compress / >> combine / minimize so you ended up with 1 js and 1 css file. Is there >> anything like that for 2.x? >> >> >> >> I liked the way I defined what I needed in each view specifically…. >> >> >> >> I had used Compressor plugin. And in the view simply dropped in >> >> >> >> Compressor->add_libs( 'js', array('jquery.form', >> 'jquery.blockUI', 'jquery-ui-1.8.6.custom.min') );?> >> >> >> >> Anyone fine anything similar? >> >> >> >> Thanks all. >> >> -- >> Our newest site for the community: CakePHP Video Tutorials >> http://tv.cakephp.org >> Check out the new CakePHP Questions site http://ask.cakephp.org and help >> others with their CakePHP related questions. >> >> >> To unsubscribe from this group, send email to >> cake-php+unsubscr...@googlegroups.com For more options, visit this group >> at http://groups.google.com/group/cake-php >> > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: CSS / JS Compression
I've found overtime that having explicit build files makes life much easier in the long run. AssetCompress does have support for anonymous builds as well https://github.com/markstory/asset_compress/wiki/Helper-usage -Mark On Saturday, 14 July 2012 21:30:59 UTC-4, advantage+ wrote: > > Hello Mark, > > > > I did see the one you wrote but having to define the specific sets of > different css / js files did not seem like the option I was looking for in > a separate ini file. I want to be able to say ok let me try using > colorbox.js or lightbox.js and add that directly in the view rather than > define different sets of js / css in a remote file. > > > > *From:* cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] *On > Behalf Of *mark_story > *Sent:* Saturday, July 14, 2012 10:58 PM > *To:* cake-php@googlegroups.com > *Subject:* Re: CSS / JS Compression > > > > I wrote one, its on github. > > > > http://github.com/markstory/asset_compress. > > > > It affords the ability to concatenate and minify files. It also allows you > to integrate preprocessors like less, sass and coffee-script into your > projects. > > > > -Mark > > On Saturday, 14 July 2012 17:27:34 UTC-4, advantage+ wrote: > > I know in older versions of cake there were many compression / combine > plugins that would take the defined css /js for the view and compress / > combine / minimize so you ended up with 1 js and 1 css file. Is there > anything like that for 2.x? > > > > I liked the way I defined what I needed in each view specifically…. > > > > I had used Compressor plugin. And in the view simply dropped in > > > > Compressor->add_libs( 'js', array('jquery.form', > 'jquery.blockUI', 'jquery-ui-1.8.6.custom.min') );?> > > > > Anyone fine anything similar? > > > > Thanks all. > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com For more options, visit this group > at http://groups.google.com/group/cake-php > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: CSS / JS Compression
Maybe http://code.google.com/p/minify/ ? Regards, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br <http://goo.gl/b1EEd> thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt On Sat, Jul 14, 2012 at 10:30 PM, Advantage+ wrote: > Hello Mark, > > ** ** > > I did see the one you wrote but having to define the specific sets of > different css / js files did not seem like the option I was looking for in > a separate ini file. I want to be able to say ok let me try using > colorbox.js or lightbox.js and add that directly in the view rather than > define different sets of js / css in a remote file. > > ** ** > > *From:* cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] *On > Behalf Of *mark_story > *Sent:* Saturday, July 14, 2012 10:58 PM > *To:* cake-php@googlegroups.com > *Subject:* Re: CSS / JS Compression > > ** ** > > I wrote one, its on github. > > ** ** > > http://github.com/markstory/asset_compress. > > ** ** > > It affords the ability to concatenate and minify files. It also allows you > to integrate preprocessors like less, sass and coffee-script into your > projects. > > ** ** > > -Mark > > On Saturday, 14 July 2012 17:27:34 UTC-4, advantage+ wrote: > > I know in older versions of cake there were many compression / combine > plugins that would take the defined css /js for the view and compress / > combine / minimize so you ended up with 1 js and 1 css file. Is there > anything like that for 2.x? > > > > I liked the way I defined what I needed in each view specifically…. > > > > I had used Compressor plugin. And in the view simply dropped in > > > > Compressor->add_libs( 'js', array('jquery.form', > 'jquery.blockUI', 'jquery-ui-1.8.6.custom.min') );?> > > > > Anyone fine anything similar? > > > > Thanks all. > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com For more options, visit this group > at http://groups.google.com/group/cake-php > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com For more options, visit this group > at http://groups.google.com/group/cake-php > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
RE: CSS / JS Compression
Hello Mark, I did see the one you wrote but having to define the specific sets of different css / js files did not seem like the option I was looking for in a separate ini file. I want to be able to say ok let me try using colorbox.js or lightbox.js and add that directly in the view rather than define different sets of js / css in a remote file. From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of mark_story Sent: Saturday, July 14, 2012 10:58 PM To: cake-php@googlegroups.com Subject: Re: CSS / JS Compression I wrote one, its on github. http://github.com/markstory/asset_compress. It affords the ability to concatenate and minify files. It also allows you to integrate preprocessors like less, sass and coffee-script into your projects. -Mark On Saturday, 14 July 2012 17:27:34 UTC-4, advantage+ wrote: I know in older versions of cake there were many compression / combine plugins that would take the defined css /js for the view and compress / combine / minimize so you ended up with 1 js and 1 css file. Is there anything like that for 2.x? I liked the way I defined what I needed in each view specifically.. I had used Compressor plugin. And in the view simply dropped in Compressor->add_libs( 'js', array('jquery.form', 'jquery.blockUI', 'jquery-ui-1.8.6.custom.min') );?> Anyone fine anything similar? Thanks all. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: CSS / JS Compression
I wrote one, its on github. http://github.com/markstory/asset_compress. It affords the ability to concatenate and minify files. It also allows you to integrate preprocessors like less, sass and coffee-script into your projects. -Mark On Saturday, 14 July 2012 17:27:34 UTC-4, advantage+ wrote: > > I know in older versions of cake there were many compression / combine > plugins that would take the defined css /js for the view and compress / > combine / minimize so you ended up with 1 js and 1 css file. Is there > anything like that for 2.x? > > > > I liked the way I defined what I needed in each view specifically…. > > > > I had used Compressor plugin. And in the view simply dropped in > > > > Compressor->add_libs( 'js', array('jquery.form', > 'jquery.blockUI', 'jquery-ui-1.8.6.custom.min') );?> > > > > Anyone fine anything similar? > > > > Thanks all. > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php