Automate script and style compression and bumps
|Reported by:||nacin||Owned by:|
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:
- 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.
- 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.
- 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.
Change History (37)
- Type changed from defect (bug) to enhancement