Automating WordPress development

If you spend any time developing themes, you will no doubt know that it is a manual process, which takes time. Themes often require careful tweaking and retesting; it can get particularly tedious when recompiling Less files!

Fortunately, there are a number of solutions available to relieve some of the tedium experienced when developing WordPress themes; the most popular option is to use a package we first met back in Chapter 2, Building a Less Development Toolkit. It's time to revisit using Grunt!

Note

For the more experienced, it is worth looking online for lessphp, which is a port of Less to PHP. There is code available that allows direct compilation within WordPress, in much the same way as we will cover in this ...

Get Learning Less.js now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.