Skip to content

Instantly share code, notes, and snippets.

@aseemk
Created May 21, 2012 20:34
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aseemk/2764497 to your computer and use it in GitHub Desktop.
Save aseemk/2764497 to your computer and use it in GitHub Desktop.

General:

TextMate:

Node:

  • --watch vs. coffee app or require('coffee-script'); require('./app');
  • "prepublish": "coffee -c lib/" or "postinstall": "coffee -c lib/"
  • "npm install coffee-script@{semver}" if CS is a devDependency
  • "postinstall": "if [ \"$NODE_ENV\" = production ]; then ...; fi" for production-only (e.g. Heroku), and "npm uninstall coffee-script" too for robustness

Connect/Express:

Gotchas:

Extras:

Examples:

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