-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rush] Custom "watch" command -- only running on subset even with high -p, no log passthrough #532
Comments
One note, the watch command doesn't rebuild anything it uses the babel-cli flag |
Hey @natew , sorry for the delay in response. You are correct that it registers all the packages, however, it still runs them in dependency order, which in your case means that it can only run 14 at a time. We just added a However, we don't currently have a watch command. As for not outputting logs, that is by design. Rush only captures output to stderr and highlights it in the summary at the end of the build. [We chose this design since we have over 100 projects and >10,000 lines of logs every build]. However, you could use the |
@nickpape-msft Thanks again for creating such an amazing project that's designed for enterprise. We are major users of Rush and have been promoting it across my org. Can you please provide a link to the pr or details on this "changed-projects-only" functionality? I searched in the repo and couldn't find it. More specifically, I'd really like to understand how this fits into the SDLC? Does this assume that devs check in the build artifacts for each project? If not, how else would a build server be able to proceed with building the downstream packages? Thanks |
Rush looks into each project in your mono repo and creates a dependency graph. It determines which projects have changed, and then builds everything that has changed and/or is affected by another package's change in the order necessary to propagate said changes. Basically, rush is not designed for this use case (according to my understanding). However, I want to look at some alternative ideas (maybe webpack's devServer can be configured to load 25 different projects?). If I can think of something, then I'll try to integrate it with rush. |
I'm going to close this for now. If you have more ideas or questions, then send me an email. |
Agreed. This issue is the same as #1202, which includes a somewhat complete current design proposal for this feature. |
Hey, just playing with Rush and it seems pretty snazzy.
We use a big monorepo and have something in Lerna now that basically does
npm run build-watch
parallel in all packages. This is to run babel and watch for changes as you develop.I wasn't sure the best way to do this in Rush. I added a custom command that seems to work, and then run it like:
rush watch -p 100 -v
.Two things:
Executing a maximum of 100 simultaneous processes...
, it only saysstarted
for 14 of them and doesn't seem to run beyond those 14.Perhaps I'm not doing things the Rush way here. Is there support for long-running development processes in some better way?
The text was updated successfully, but these errors were encountered: