These are chat archives for jescalan/roots

7th
Dec 2015
Martin Berggren
@marthings
Dec 07 2015 08:31
Is it possible / any solution looping through a folder of images and present them in a template with jade :)? I have a gallery and it would be nice to just add a images in the folder and tada.
pauljakobwhite
@pauljakobwhite
Dec 07 2015 17:05
Any one try adding images/icons to a roots template? For instance we want to have a default favicon generated with the other scaffolding that’s already linked up in the jade layouts. However the .ico seems to be throwing an error upon starting a new project. Tried adding in root/, root/assets/, and root/assets/img, no luck. Plus best practice is to have the favicon in the root of the project.
@marthings I’ve seen this accomplished in other static site generators like harpjs, I’ll see if I can extract what is happening there to pull actual content from a folder and not from json using jade
RJ Lewis
@justrjlewis
Dec 07 2015 17:54
So I've installed roots (no sudo per https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md). I checked and it's[roots] in ~/npm-packages.... When I run roots new example-project per the docs, I'm getting command not found --- HELP
pauljakobwhite
@pauljakobwhite
Dec 07 2015 18:14
you installed with the -g global flag?
Mathias Biilmann
@biilmann
Dec 07 2015 18:18
sounds ike you might not have the right bin folder in your PATH
RJ Lewis
@justrjlewis
Dec 07 2015 18:32
yes - I did install with the global flag. I had a sprout-cli globally installed before I did the commands to change the path. Removing that got rid of the command not found, but now the computer is looking for roots here: usr/local/bin/roots
Shouldn't it be looking in ~/.npm-packages/bin?
RJ Lewis
@justrjlewis
Dec 07 2015 18:38
~/.bashrc has this per the directions. I left the manpath stuff alone since I hadn't configured it anywhere else - the one in /etc/manpath points to /usr/local/share
NPM_PACKAGES="${HOME}/.npm-packages"

PATH="$NPM_PACKAGES/bin:$PATH"

# Unset manpath so we can inherit from /etc/manpath via the `manpath` command
unset MANPATH # delete if you already modified MANPATH elsewhere in your config
export MANPATH="$NPM_PACKAGES/share/man:$(manpath)"
RJ Lewis
@justrjlewis
Dec 07 2015 19:18

fyi got it working:
I read through these instructions: http://www.johnpapa.net/how-to-use-npm-global-without-sudo-on-osx/

my ~/.bashrc has been updated to:

NPM_PACKAGES="${HOME}/.npm-packages"
NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
PATH="$NPM_PACKAGES/bin:$PATH"