WordPress / wporg-repo-tools

6 stars 4 forks source link

Combine watch tasks #11

Closed iandunn closed 3 years ago

iandunn commented 3 years ago

For News, we have to run each of these watch tasks seperately:

It'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's start 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.

coreymckrill commented 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...

iandunn commented 3 years ago

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?

coreymckrill commented 3 years ago

🤔 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...