These are chat archives for jescalan/roots

31st
May 2015
Daniel Box
@dbox
May 31 2015 02:30
This message was deleted
Daniel Box
@dbox
May 31 2015 03:12
Been messing with modules. exports ignores. Can't seem to figure out how to ignore a specific folder in /assets
Henry Snopek
@hhsnopek
May 31 2015 04:33
@dbox roots uses https://github.com/isaacs/minimatch for ignores
Here's a way to test your minimatch string: http://www.globtester.com/
@enmod, what seems to be the accord issue?
Noel Quiles
@EnMod
May 31 2015 04:52

From way up there in the chat: I have run roots watch on the problematic directory, and watched the console as I saved files, hoping to see proper compilation. However, on changing my views and saving them there is no recompile! so I change my stylus files and save, and there goes the issue again!

This leads me to believe that:

  • Roots now thinks my assets/css directory is my views directory
  • Roots is somehow reading from views when compiling the Stylus files in assets/css
  • it's possible my process to update accord from git is having unforseen consequences
That's essentially the issue
This occurs after updating to the Accord master in order to utilize PostCSS in my workflow
Noel Quiles
@EnMod
May 31 2015 09:24
One last thing: the issue only comes up after the second compile after roots watch. When I run the command it works as expected, but it only picks up changes to stylus files, and kicks out an error saying it can't find _layout.jadein my CSS folder on the next compile.
If I comment out the lines for roots-contentful in app.coffee as I mentioned earlier, then all things compile and work as expected.
Whatever is going on in those two lines is making roots-contentful not play nice with either the Accord master or its new PostCSS adapter, or likely just the latter.
When it kicks out the error it lists lines from my _post.jade view, meaning it's finding the views fine but the internal view path variable for roots-contentful is somehow being switch to my assets/css` folder.
Jan Viehweger
@janviehweger
May 31 2015 14:00
@EnMod, @hhsnopek and @declandewet big THANK YOU for solving the postcss/roots issuse during my absence from the chat. @EnMod, your proposed workaround works great!
Jan Viehweger
@janviehweger
May 31 2015 14:36
FYI: i've just submitted the [PostCSS issue] (jenius/roots#643)
Noel Quiles
@EnMod
May 31 2015 15:53
No problem, and thanks for that issue submission, @janviehweger ! Bear in mind it seems my workaround is incompatible with the template/path lines in app.coffee used in the config for roots-contentful, as mentioned above.
Henry Snopek
@hhsnopek
May 31 2015 18:36
Awesome!
Daniel Box
@dbox
May 31 2015 20:34

Would someone mind looking at this for me:

https://github.com/dbox/roots-bower

Just trying to figure out a decent roots setup using bower components.

I'm using js-manifest.yml, and css-manifest.yml, to bring in the appropriate js and css files from the bower components.

The thing I'm stumped on is how to hide bower_components from the public folder. I think it's properly piping everything into the css and js file, but if I ignore the bower folder it stops working..

Henry Snopek
@hhsnopek
May 31 2015 23:50
@dbox I'm very confused on your repo
oh wait
to ignore your bower_components folder use
in the ignores array: ./bower_components/**
This message was deleted