Renaissance Nerd

  • Random
  • Archive
  • RSS
  • Ask me anything

Standard CoffeeScript Procedure

Here’s a quick one that I’ve really started to like. I’ve taken to setting up new projects with js and coffee directories in the root of the project. Then, I use Jitter to watch the coffee directory for changes. It automatically recompiles the JavaScript files every time I save my changes.

Jitter takes two arguments: your CoffeeScript directory, and your compiled JavaScript directory, like this:

$> jitter coffee js

So, when I start working, I run that command in the root directory of the project, and Jitter goes to work.

You can make it even simpler by setting up a Bash alias. Add this to your .bashrc or .bash_profile:

alias jjitter='jitter coffee js'

Now, when you start working, just enter jjitter, and you’re off to the races.

    • #bash
    • #coffeescript
    • #JavaScript
  • 4 months ago
  • 17
  • Comments
  • Permalink
  • Share

17 Notes/ Hide

  1. eisenhower402 liked this
  2. returningde6 liked this
  3. miscarriage8it liked this
  4. registrar8uir liked this
  5. keynotetis8 liked this
  6. emileeyou89 liked this
  7. spurgeoncc liked this
  8. fergusonicd890 liked this
  9. renaissancenerd posted this

Recent comments

Blog comments powered by Disqus
← Previous • Next →
Renaissance Nerd is a collection of links and articles cobbled together (and sometimes written) by Jeff Mueller.

Pages

  • About

Elsewhere

  • @jeffmueller on Twitter
  • jeffmueller on Pinboard
  • jeffmueller on github
Clockpunch: Log time. Track Stats. Stay On Budget

I made an iOS app called Clockpunch. It's for tracking your work. Sales go toward making Renaissance Nerd possible.

  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile
Powered by Tumblr

Renaissance Nerd is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. Effector Theme by Carlo Franco.