Trellis is designed to be theme-agnostic and is not tied to Roots' Sage theme at all. That doesn't mean it's hard though; all that's needed is a way to compile assets.
Compiling production theme assets
Sage, like many WordPress themes now, requires a step during deploys to compile production assets.
Trellis includes an example
build-before deploy hook designed to work with Sage. See
For Sage users, simply uncomment that built-in example hook file and deploy away. Assets will be compiled locally and then copied to the remote server.
The Sage example deploy hook can also serve as s blueprint for many other themes that need to run an
yarn command for compiling assets.
If you use nvm to manage Node.js versions for running themes locally, the easiest way to use it is via
Help us continue to build and maintain our open source projects. We’re a small team of independent developers and every little bit helps.Sponsor Roots on GitHub