<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hey Nick, this will be especially useful on Windows where symlinks aren't used in the obj. dir. (IIUC)!</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">The MDN page says that this requires an artifact build. What's the technical reason for that and are were considering making it work for changes supported by `mach build faster` in non-artifact builds?</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Cheers,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Matthew N. (:MattN)<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 11, 2018 at 7:43 PM, Nicholas Alexander <span dir="ltr"><<a href="mailto:nalexander@mozilla.com" target="_blank">nalexander@mozilla.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello Firefox front-end developers!</div><div><br></div><div>Long before Austin, Brian Grinstead and I did some work on improving the Firefox front-end developer workflow. We started with a lightweight filesystem watcher called |mach watch| to incrementally run |mach build faster|.</div><div><br><div>The first bits of that work landed [1] [2] but there were some issues around purging startup caches [3] [4] that prevented us publicizing it widely. I think I've addressed those issues now, so we're ready for wider usage!</div></div><div><br></div><div>Bare-bones instructions are at<br></div><div><br></div><div><a href="https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Incremental_builds_with_filesystem_watching" target="_blank">https://developer.mozilla.org/<wbr>en-US/docs/Mozilla/Developer_<wbr>guide/Build_Instructions/<wbr>Incremental_builds_with_<wbr>filesystem_watching</a></div><div><br></div><div><div>Basically, run |mach watch| in one terminal, run |mach run| in
another, and use the Quick Restart hot-key to test your editor changes
quickly.<br></div><div><br></div></div><div>I'm currently working on incorporating |mach watch| into |mach run| and adding a Web Socket server to |mach watch| [5]. That will let us immediately refresh browser CSS in a running browser, and also allow us to reload in-content pages like about: pages. This functionality will mimic the webpack watcher (but does not use any of the same implementation, sadly).</div><div><br></div><div>After that, the sky is the limit: anything you might like to do with a bidirectional communication channel between the build system and development environment, and the browser under development, could be possible.<br></div><div><br></div><div>Thanks to Brian for browser integration, and to Dave Townsend and Myk Melez for helpful conversations; to many in the Firefox front-end team and devtools team for early feedback; and to Greg Szorc for reviewing build system patches.</div><div><br></div><div>Best,</div><div>Nick<br></div><div><br></div><div>[1] <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1384241" target="_blank">https://bugzilla.mozilla.org/<wbr>show_bug.cgi?id=1384241</a></div><div>[2] <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1385452" target="_blank">https://bugzilla.mozilla.org/<wbr>show_bug.cgi?id=1385452</a><br></div><div>[3] <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1386040" target="_blank">https://bugzilla.mozilla.org/<wbr>show_bug.cgi?id=1386040</a></div><div>[4] <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1368699" target="_blank">https://bugzilla.mozilla.org/<wbr>show_bug.cgi?id=1368699</a></div><div>[5] <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1388899" target="_blank">https://bugzilla.mozilla.org/<wbr>show_bug.cgi?id=1388899</a><br></div></div>
<br>______________________________<wbr>_________________<br>
firefox-dev mailing list<br>
<a href="mailto:firefox-dev@mozilla.org">firefox-dev@mozilla.org</a><br>
<a href="https://mail.mozilla.org/listinfo/firefox-dev" rel="noreferrer" target="_blank">https://mail.mozilla.org/<wbr>listinfo/firefox-dev</a><br>
<br></blockquote></div><br></div>