-
Hey all 👋 As we continue to adopt moon as the official monorepo tool my in my full-stack development cohort, we ran into an issue using the Not to use strong language, but a package such as concurrently should not exist, rather, a decent task runner should instead offer this functionality (let me know what you think of this). Motivated by an error using concurrently (in which the commands moon run server:dev-tsc server:dev-nodemon We also liked the consistency of the output formatting, compared to the However, we weren't so sure as we went from there to investigating the right way to enter the concurrent task into the tasks file in moon, allowing us to invoke the above using the following command: moon run server:dev Doing so we tried using a My understanding is that the As a result we ended up using the following: tasks:
dev:
command: "moon run server:dev-tsc server:dev-nodemon" I do not like this for a few reasons. The one thing that stands out the most is the use of the redundant scope of I am posting to see what you think of this, if there is a better way to achieve the same, and hopefully have more fun and constructive discussions around this and related wishes of a modern task runner. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey @diraneyya, Great question. A You mentioned you tried this. Can you talk about why it didn't work? It should theoretically be the same as |
Beta Was this translation helpful? Give feedback.
Hey @diraneyya,
Great question. A
noop
command withdeps
is our go to solution for this at the moment, here's an example: https://moonrepo.dev/docs/cheat-sheet#run-multiple-watchersservers-in-parallelYou mentioned you tried this. Can you talk about why it didn't work? It should theoretically be the same as
moon run server:dev-tsc server:dev-nodemon
.