Shortly after BuddyPress 2.0 is released, we’re going to be updating BuddyPress’ development trunk (buddypress.svn.wordpress.org/trunk) to a Grunt-powered build system. Most people won’t even notice, but for developers and contributors, this means a small workflow change.
TL;DR – keep reading if:
- You develop plugins for BuddyPress
- You are a core contributor
- You run a checkout of trunk on a production site
Last year, the WordPress project adopted Grunt for handling things like script minification, right-to-left styling conversions, and a few other tasks that become tedious to do repeatedly. The BuddyPress project is adopting many of these same approaches, as well as others more geared towards plugin development than WordPress core.
Without further ado, here’s the gist:
trunkwill be re-organised with
srcwill contain almost all of BuddyPress as you’ve known it.
testswill contain our phpUnit tests.
- A plugin loader file will be added to the root to prevent these changes breaking existing sites running trunk (example).
- Configuration files for tests and Travis-CI are moved to the root.
srcwill no longer include bbPress 1.1 in
srcwill no longer include the BP-Default theme (we’re moving it to the WordPress.org Themes Directory).
Our Grunt runner will be then be used to perform the following tasks:
- Validate and lint CSS/JS
- Generate right-to-left CSS
- Compress images
- Run unit tests
- Generate the .pot file for internationalisation
- Check for missing text domains
- Make it easier for developers to apply patches from BuddyPress Trac for testing
- Maybe a few other bits and bobs by the time we’re done
To clarify, production releases of BuddyPress will come packaged as they always have:
- Including old bbPress 1.1
- Including the BP-Default theme
- With RTL support
- With minified CSS/JS
- Be completely internationalised
These changes only affect the development trunk, and will help the core team with less manual labor going forward.
If this all sounds a bit scary, please rest assured not much is actually changing. bbPress made these exact same changes 2 months ago, and it’s only improved their workflow, helped reduce the number of manual tweaks and version bumps, and generally improved the lives of their contributing audience with minimal added complexity.
If you have questions, concerns, or want to get involved in our Grunt incorporation, drop us a line here, or on this Trac ticket.