kchmck/vim-coffee-script — pull request #84 by AndrewRadev (2012-03-03 11:05:31+00:00)
Title: Don't generate a js file when issuing :make

When using `:make`, a javascript file is generated in the same directory as the coffee file. For example, `:make` on a file named `test.coffee` would generate `test.js`. This is *very* undesired in certain cases, since this file would be `require`d instead of the coffee one, even if the latter had changed in the meantime.

This pull request simply uses the `-p` flag to print the javascript to stdout. This generates some noise in the console. Personally, I think that's preferable by far, but there are two other ways to deal with this that I can think of:

- Use `-o` to set the output directory for the compiled scripts to a temporary one. I'd rather
not do this, since I don't feel it makes much sense to create a tempdir that won't ever be
used just for that.
- Use `-p`, but redirect stdout to `/dev/null`. That would only work for *nix, though, and I
can't really test on Windows.

The `-p` flag could be added to `coffee_make_options` on my own installation, of course, but the default behaviour was a big surprise to me, so I think it's better to put it directly in the invocation to avoid future issues.