Skip to content

Instantly share code, notes, and snippets.

@OrganicPanda
Last active December 20, 2015 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OrganicPanda/6150166 to your computer and use it in GitHub Desktop.
Save OrganicPanda/6150166 to your computer and use it in GitHub Desktop.
Various helper Gists for setting up projects

Ruby, Sass & Compass

Mac

sudo gem install sass
sudo gem install compass

Ubuntu-like Linux

sudo apt-get install ruby
sudo apt-get install rubygems
sudo gem install sass
sudo gem install compass

Windows

Get Ruby from http://rubyinstaller.org/

gem install sass
gem install compass

Grunt

I like to keep my projects self-contained as much as possible so I install Grunt on a per-project bases.

First change to your project directory in your CLI of choice.

Linux & Mac

sudo npm install grunt-cli --save-dev

Windows

npm install grunt-cli --save-dev

Problem

The above will install grunt and grunt-cli but by default this will not work because grunt-cli needs to be in your PATH.

Solution 1

Add the relative path to your path. This will work but only if you're in your site's root directory.

Mac

Add export PATH="./node_modules/.bin:$PATH" to ~/.profile

Windows

Add .\node_modules\.bin; to the start of the PATH environment variable (This is done through Advanced System Settings)

Linux

TODO

Solution 2

Install grunt-cli globally. This has the potential to introduce cross-project version problems as all projects will use the global version of grunt-cli not the version that they have listed in their dependencies.

Mac & Linux

sudo npm install -g grunt-cli

Windows

npm install -g grunt-cli

Solution 3

Use the local version by calling it directly:

Mac & Linux

TODO

Windows

.\node_modules\.bin\grunt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment