These are chat archives for jescalan/roots

15th
Mar 2015
Thiago De Bastos
@thiagodebastos
Mar 15 2015 00:46
Thanks for that @jenius I guess I can’t have the best of all worlds! I’ll get back to you on how I’m going with it. For now, I’ll alias some text expander shortcuts instead hehe
Thiago De Bastos
@thiagodebastos
Mar 15 2015 10:25
for your info, here is the beginning of the atomic-roots project I am working on. It’s just the initial commit for now but I’ll get there!
Thiago De Bastos
@thiagodebastos
Mar 15 2015 18:54

Can anyone familian with globbing explain how I can use ignores: in app.coffee to ignore everything inside a particular directory except for one specific directory?
At the moment I am trying:

ignores: [ '_patterns/**/*’, ‘!_patterns/pages/']

with no luck

Declan de Wet
@declandewet
Mar 15 2015 19:30
minimatch supports negating globbing patterns with an exclamation mark (!). See this for an example
Thiago De Bastos
@thiagodebastos
Mar 15 2015 19:52
Thanks for that, I cant seem to get it working.. testing against:
string:
/_patterns/**/*.*
/_patterns/atoms/
/_patterns/molecules/header.jade
/_patterns/pages/homepage.jade
/_patterns/templates/home-template.jade
Declan de Wet
@declandewet
Mar 15 2015 19:55
try ['_patterns/**/*.*', '!_patterns/pages/**/*.*'] - although im not sure if that second item would actually overwrite the first - but try anyway
Thiago De Bastos
@thiagodebastos
Mar 15 2015 20:14
When I try that on globtester.com nothing gets selected. Does globtester only work with the preset ‘testing against’ lines?
Thiago De Bastos
@thiagodebastos
Mar 15 2015 20:19
Sorry, on another note, how would I add a node-js module to app.coffee? I am making an atomic design template based on pattern lab and want to be able to include directories with jade using https://github.com/KellyLSB/jade-glob-include
PS: Is this the right place for me to be asking questions? If not, apologies!
Declan de Wet
@declandewet
Mar 15 2015 20:25
ithink globtester only supports one minimatch string
so using two wont work. @jenius made it so he would know more.
as for adding a node-js module just use it as you would a normal node.js module - but the module you want to use is a little weird. accord handles all of the compilation from transpilers to static output and it explicitly requires jade - although you can probably write a roots extension that does this for you! http://roots.cx/docs/extensions
Thiago De Bastos
@thiagodebastos
Mar 15 2015 20:30
Ah thanks for that! I will look into it for sure. I have some time at the moment and am learning the ins and outs of roots, having lots of fun!
I think I just found a limit to how many includes jade can handle. I am just working on the pattern library bit of my project and after a certain amount of includes, nothing else compiles to the page!
Declan de Wet
@declandewet
Mar 15 2015 20:32
o_O that's pretty weird
definitely worth opening an issue if that is something you can reproduce
Thiago De Bastos
@thiagodebastos
Mar 15 2015 20:33
Yeah It just cuts off halfway through the last include. I tried changing it up using other includes in case one of the includes itself was broken but I get the same result. I’m going to try compile with jade CLI and see if reproduces the error
Thiago De Bastos
@thiagodebastos
Mar 15 2015 20:47
hmm i tried with Jade and it compiles fine. I tried with roots and there is a limit. I simplified it to including a simple sequence of orderered and unordered lists over and over and it certainly has a limit to how many times it renders. Ill go open an issue
Thiago De Bastos
@thiagodebastos
Mar 15 2015 23:55
Has anyone had a chance to look into #622? I am not getting any errors in the console when compiling. I feel like I’m taking shots in the dark debugging it