[wp-trac] [WordPress Trac] #19592: Automate script and style compression and bumps
WordPress Trac
wp-trac at lists.automattic.com
Sat Dec 17 22:15:00 UTC 2011
#19592: Automate script and style compression and bumps
--------------------------+-----------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.4
Component: General | Version:
Severity: normal | Keywords:
--------------------------+-----------------
Commits with CSS changes (and to a lesser extent JS changes) are polluted
with thousands of characters of scripts and styles. This was agitated
further in 3.3 with the merge of most CSS into a single file.
These commits are more difficult to review, both for wp-svn and on Trac,
and most certainly get less eyes.
Here's a tiered proposal to fix this:
1. After a commit that edits a .dev.css or .dev.js file, a bot should
compress all relevant files, bump all relevant version numbers, and commit
this as a subsequent revision.
2. Use a single version number for all scripts and styles. For users, the
only necessary version number is the WordPress version. The individual
version numbers benefit development only. We should merge this into a
single variable to be bumped, thus invalidating all cache files, to make
it simple.
3. This single variable should actually be $wp_version. We already
manually add SVN revision numbers to beta and RC versions to provide
additional context in nightly builds. The bot can instead be charged with
bumping $wp_version to add or update a revision number. We will still be
able to update (or remove, in the case of a pre-release or final release)
the revision number on our own, as necessary.
Attached patch handles 2 and 3. The bot still needs to be written.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19592>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list