Sage 9 Beta 1

Development on Sage 9 started back in December of 2015 and we’ve finally shipped the first beta after four alpha releases.

Follow the installation instructions to get started with Sage 9.

Sage 9 has several improvements, and here’s the list of some of the important changes:

  • Laravel’s Blade as a templating engine. Check out the templates directory to see what it looks like if you aren’t familiar with Blade. You can opt-out of Blade templates by replacing them with regular PHP ones (you could copy over the templates from Sage 8 if you really wanted to).

  • Replaced gulp and Bower with Webpack and npm. Bower is pretty much dead at this point, and the packages you’re used to pulling in with Bower should also be available on the npm registry. We’re using Webpack to handle automatically resolving assets from 3rd party packages, as well as for compiling assets, optimizing images, and concatenating and minifying files.

  • ES6 for JavaScript. Not familiar with ES6? Wes Bos’ ES6 for Everyone is one of the best resources for learning modern JavaScript. Use Lebab to convert your existing JS to ES6.

  • Bootstrap 4. Yeah, it’s still in alpha (hopefully beta soon), just like we have been, but there’s so many improvements over Bootstrap 3. Lots of people are building sites with the BS4 alphas, and we are, too. In an ideal world Bootstrap 4 would ship before Sage 9, but we won’t wait on them if we wrap things up first.

  • PSR-2 coding standards. Roots projects switched to PSR-2 last year. Previously we had used a modified PSR-2 ruleset, but we stopped caring about 2-spaces in our PHP files and fully adopted PSR-2.

  • Restructured theme files. All theme templates are finally out of the theme root! Our implementation is a little hacky because a 7 year old WordPress Trac ticket still hasn’t landed, but we believe our implementation is the best we can do at this time.

  • Introduced Yarn. Yarn is a drop in npm client replacement. With Yarn, the installation of Node dependencies is quicker & the node_modules directory is smaller.

There’s a few bugs we need to squash prior to final release. We could use your help with feedback, testing, and documentation, so give Sage 9 a shot and let us know what you think.

I’ve been working on the 3rd edition to the Sage book during the development of Sage 9. The book update will be released at the same time as Sage 9, and the 3rd edition includes 2x the amount of content as well as ePub support and a website for viewing it, along with the PDF.

Thanks for your support and patience — we’re stoked to be getting close to the final release!

Read the discussion on our Discourse

Subscribe to our newsletter to get the latest Roots updates, along with occasional tips on building better WordPress sites.

Looking for WordPress plugin recommendations, the newest modern WordPress projects, and general web development tips and articles?

Follow @rootswp on Twitter