These are chat archives for brunch/brunch

10th
Jul 2016
Jamon Holmgren
@jamonholmgren
Jul 10 2016 06:13
Hey all. I'm having a problem where when I brunch build it compiles the JS to one thing, and when another dev on my team does brunch build it compiles to something else. Same version of brunch, 2.8.2 (and it was doing this on our previous version, 2.2.3). Any ideas?
Colin Bate
@colinbate
Jul 10 2016 06:25
When you say one thing do you mean file? As in it is getting compiled to a particular file name on your machine and a different one for your teammate? Do you have your brunch-config file checked in? Is there any process which might be changing the config locally on one of your machines? Are there other teammates with different results? Are either of your outputs the 'expected' version? Sorry for so many questions but we need a bit more info.
Jamon Holmgren
@jamonholmgren
Jul 10 2016 07:33
@colinbate sorry about the delayed response. By "one thing" I mean a file of a particular configuration. When my co-worker builds it changes that file to a different configuration. We use the same brunch-config which is checked in. I'll check if others on the team get different results as well.
I'm typically getting the "expected" version, I think, but it's a large file with 10k+ lines of code so it's hard to tell for sure. It does work on mine.
I'll ask if his version works or not on Monday
Bernardo Kuri
@bkuri
Jul 10 2016 16:33

Hello all. Does anyone know of a reliable way for a brunch plugin to determine if it's being run inside a brunch watch --server call? I have a plugin that needs to emit an event whenever a file has been modified (for hot reloading purposes), but it only should be called inside a live dev server. For now my solution involves setting a BRUNCH_WATCHINGenvironment variable right before the brunch watch --servercall, but I'm sure there's a better way to solve this.

Here's the relevant line if someone wants to take a look: https://github.com/bkuri/marko-brunch/blob/master/index.coffee#L39

Thanks in advance!