This is maybe a weird, noobish question, but does the Sage 9 working directory need to be located inside the wp-content/theme/theme folder?
In our workflow it might make more sense to have Sage 9 at our project root folder, and have it output the compiled theme to /wp-content/theme/themename/. It would save a lot of typing of paths and make the repo that much cleaner. Something like:
projects/ project1/ project2/ project2-theme # <- sage9 working directory www/ [wordpress core] wp-content/themes/project2-theme # <- sage9 yarn output directory
We’re looking at moving to a docker-based dev workflow and something like this would help keep our git repo flat and our path typing short.
All of our coding and yarn and composer commands would happen in
While yarn run start and yarn run build:production would both compile to