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.
17 Notes/ Hide
-
eisenhower402 liked this
-
returningde6 liked this
-
miscarriage8it liked this
-
registrar8uir liked this
-
keynotetis8 liked this
-
emileeyou89 liked this
-
spurgeoncc liked this
-
fergusonicd890 liked this
-
renaissancenerd posted this