These are chat archives for jescalan/roots

27th
Jan 2016
Malone Hedges
@malonehedges
Jan 27 2016 03:10
Hey, is anyone online right now?
Jeff Escalante
@jescalan
Jan 27 2016 08:09
yes
and @malonehedges hi, sorry a little late but feel free to drop a question and someone will answer it!
Steve Babigian
@k00k
Jan 27 2016 13:54
@jenius i cloned roots, checkout browsersync, npm i,npm link, made sure that my global roots version was 3.2.2, roots new abc, npm i —save babel-core babel-preset-es2015, added es2015 to .babelrc presets. added a really basic es6 script that does import from, and i get that error. Did I miss something?
Declan de Wet
@declandewet
Jan 27 2016 16:03
If you're doing any work with Babel 6 and above, you absolutely need NPM v3.0 or higher.
Steve Babigian
@k00k
Jan 27 2016 16:03
@declandewet ah, thanks. i’ll give that a shot, i think i’m on 2.7.4
been jumping around with n for different projects
Declan de Wet
@declandewet
Jan 27 2016 16:05
a lot of issues with Babel 6 come from the dependency tree, which npm dedupe fixes - NPM 3 and above will automatically dedupe anytime npm install is run
Steve Babigian
@k00k
Jan 27 2016 16:05
good to know
Seth Krasnianski
@sethkrasnianski
Jan 27 2016 16:06
@k00k npm i -g avn avn-n setup a .node-version file with vX.X.XX
it will auto swap the version
Steve Babigian
@k00k
Jan 27 2016 16:06
@sethkrasnianski sweet, thanks
Declan de Wet
@declandewet
Jan 27 2016 16:07
looks super useful, thanks @sethkrasnianski. works with nvm too :D
Seth Krasnianski
@sethkrasnianski
Jan 27 2016 16:07
yes indeed!
I personally like n a bit more
I’ve used both
just preference
Steve Babigian
@k00k
Jan 27 2016 16:07
any reason nvm over n, i always have used n
ok
Declan de Wet
@declandewet
Jan 27 2016 16:09
there is one reason but it's not a deal-breaker and depends on your tooling - lot of open source CI servers use nvm, and it's beneficial to keep development environments as close to testing environments as possible.
Seth Krasnianski
@sethkrasnianski
Jan 27 2016 16:09
yeah. they essentially do the same thing though. I just like the n interface better
Declan de Wet
@declandewet
Jan 27 2016 16:10
but you could just as easily set up your CI server to use n instead
Seth Krasnianski
@sethkrasnianski
Jan 27 2016 16:10
as long as you have your engine setup in your package.json you shouldn’t have any issues with CI
no need to switch to n on CI
Declan de Wet
@declandewet
Jan 27 2016 16:11
suppose it all boils down to preference really
n doesn't work on windows though
Steve Babigian
@k00k
Jan 27 2016 16:11
what is this windows you speak of?
Seth Krasnianski
@sethkrasnianski
Jan 27 2016 16:11
hah yeah!
Declan de Wet
@declandewet
Jan 27 2016 16:12
a horrid place full of disease and famine
Seth Krasnianski
@sethkrasnianski
Jan 27 2016 16:12
but aggreed @declandewet. all about the preference p.r.e.a.m.
he’s got the cure, baby!
Seth Krasnianski
@sethkrasnianski
Jan 27 2016 16:13
now that they’re trying to make their way into node core.. that image seems a little more accurate
with Chakra as the node js engine
David Eglin
@djeglin
Jan 27 2016 16:21
Hey guys. I'm sure this is a pretty basic question (and I'm sure I'll have more as this is only my second roots project), but does anyone know how I might be able to set default values for, say, the title tag, but then override them for pages where I want to? I've got a meta block set up and I tried to nest something within that in my layout and see if that got picked up if nothing was set in the page view inheriting the layout, but no joy.
Declan de Wet
@declandewet
Jan 27 2016 16:26
this assumes you're using jade
the stuff you're trying to do is toward the end of the answer
Steve Babigian
@k00k
Jan 27 2016 16:27
@declandewet that seems like the sort of thing that would be great in the docs, maybe even just a list of helpful links
Seth Krasnianski
@sethkrasnianski
Jan 27 2016 16:27
indeed
Declan de Wet
@declandewet
Jan 27 2016 16:28
Jeff would have to approve of that - This particular edge case is very Jade-specific
and has nothing to do with Roots, really
Seth Krasnianski
@sethkrasnianski
Jan 27 2016 16:28
ahh. that is true
Steve Babigian
@k00k
Jan 27 2016 16:28
ok, i didn’t even read the SO post yet, just saying, in general
David Eglin
@djeglin
Jan 27 2016 16:43
Thanks for that, @declandewet . I knew there had to be a better way to do it than overwriting the whole block. Combining your answer with jade's append method means that I can set a default value for a load of stuff and just override the values I want to override. Obviously it means that variables are being set and re-set in some cases, but as this is only ever done behind the scenes at compile time, I don't really see that as a problem.
Declan de Wet
@declandewet
Jan 27 2016 16:45
did I not use append in the answer?
oh wow
it appears I didn't
David Eglin
@djeglin
Jan 27 2016 16:45
:)
John Peele
@johnpeele
Jan 27 2016 17:26
hello all! i need to use Haml templates for a new project, but have never used them with Roots. anyone have a Haml-based layout and index template they could point me to? thx!!