Closed iandunn closed 3 years ago
News already has wporg-mu-plugins
set up as a workspace. I've been able to run yarn workspaces run start
successfully...
Yeah, I left it in there, but when I run it, it only runs the theme start
, not the mu-plugins start
.
Does it run both for you?
🤔 Hmm, looks like it only runs the theme for me as well. Both work when I run yarn workspaces run build
, though.
Maybe it has something to do with using chokidar instead of wp-scripts for the watch functionality...
For News, we have to run each of these watch tasks seperately:
yarn workspace run start
for the themestart
npm run sync
for browsersyncnpm run start
for wporg-mu-pluginsIt'd be more convenient if a
yarn workshop run start
would run the other two commands, and display their output alongside the output for the theme'sstart
command.It seems like setting up a workspace for
wporg-mu-plugins
would fix that one, but I tried that and it didn't seem to work. I'm not sure how to do it for browsersync off the top of my head, but I'm guessing there's a way.