[wp-trac] [WordPress Trac] #19592: Automate script and style compression and bumps

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 5 22:16:24 UTC 2012


#19592: Automate script and style compression and bumps
-------------------------+------------------
 Reporter:  nacin        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.4
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------

Comment (by nacin):

 bumpbot.php attached. It captures warning output, but doesn't currently do
 anything with it.

 I originally aimed to write it to function as a post-commit hook and then
 identify any .dev.* files in the previous commit. This has the benefit of
 easily identifying where the change was made, with the potential of
 extracting a ticket number (for warnings to be posted), etc. After
 starting down that path, I came up with the existing code, which would run
 on cron (for now, probably on my sandbox) and simply attempt to compress
 all dev.css and dev.js files it finds in trunk. If it doesn't diff clean,
 it results in a commit.

 I agree, JSLint should probably be run as a pre-commit hook.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19592#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list