Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 821 Bytes

install-coffeescript.md

File metadata and controls

41 lines (32 loc) · 821 Bytes

title: Install Coffeescript updated: 2013-07-14 19:36:00 os: [macosx] tags: coffeescript deps: [install-homebrew] contributors: ["http://www.github.com/sloria"]

# Mac-specific instructions
# Install node
$ brew update 
$ brew install node

Add the node directory to your PATH.

# In you shell profile (.bash_profile, .zshrc, etc.), add this line
export PATH=/usr/local/share/npm/bin:$PATH
# Install coffee (notice the dash)
npm install -g coffee-script

You now have Coffeescript installed.

# To compile a file
coffee -c cupofjoe.coffee
# Watch mode--compile a file whenever it is changed
coffee -cw cupofjoe.coffee

See also: