These are chat archives for brunch/brunch

19th
Feb 2016
Paul Miller
@paulmillr
Feb 19 2016 13:09
@jacwright If you have any issues please file an issue: https://github.com/brunch/brunch/issues/new
Node 4+ and NPM 3+ is required, as @moviedo mentioned. Make sure you're on the latest brunch.
Jacob Wright
@jacwright
Feb 19 2016 14:32
oh NPM 3+? That doesn’t come shipped with node until 5.0.
Paul Miller
@paulmillr
Feb 19 2016 14:33
Yeah, you can install it manually for node 4.0 though.
Jacob Wright
@jacwright
Feb 19 2016 14:33
can a min npm be part of package.json, or only node?
Paul Miller
@paulmillr
Feb 19 2016 14:34
Added it to package.json. Although the requirement is not strictly checked by node.
Jacob Wright
@jacwright
Feb 19 2016 14:35
too bad. You get a big warning and can’t use brunch when on node < 4 but nothing for npm.
Paul Miller
@paulmillr
Feb 19 2016 14:38
I've just added this. It'll be live in a couple days. We haven't had this problem before.
Jacob Wright
@jacwright
Feb 19 2016 14:38
oh, maybe npm will give a warning? That would be nice.
Paul Miller
@paulmillr
Feb 19 2016 14:38
yes, with brunch 2.3.3 in a few days.
Jacob Wright
@jacwright
Feb 19 2016 14:39
is the npm 3+ for the new npm feature in brunch?
I’m curious what new features it provides
Paul Miller
@paulmillr
Feb 19 2016 14:40
It flattens the dependency tree. Basically almost all packages would be inside node_modules instead of being nested inside other node modules. That helps with Brunch NPM package resolution a lot.
Jacob Wright
@jacwright
Feb 19 2016 14:41
for some plugins to require others as a dependency. Cool
Paul Miller
@paulmillr
Feb 19 2016 14:41
Let me know how NPM 3, Node 4+ and Brunch 2.3.2 works for you @jacwright
Jacob Wright
@jacwright
Feb 19 2016 14:42
Will do. I’m trying to use the npm feature for a skeleton.
Jacob Wright
@jacwright
Feb 19 2016 15:04
And… it works! I had to delete the node_modules folder completely as a rebuild doesn’t seem to put everything at the root level. But for a skeleton this isn’t an isssue.
using node 5.6.0 / npm 3.6.0
Something to document, if you’re being explicit about javascripts.joinTo you’ll need to add node_modules/ in there. Mine ended up being:
joinTo: {
  'js/app.js': /^app|^node_modules/,
  'js/test.js': /^test/
}
Paul Miller
@paulmillr
Feb 19 2016 16:13
:+1: