Friday, December 21, 2012

Installing and working with CoffeeScript in Netbeans

Netbeans Plugin page
Netbeans already has excellent support for JavaScript fortunately it also has a plugin for CoffeeScript written by a guy name Denis Stepanov. Although its missing a "set target folder" feature and only supports CoffeeScript 1.3.3, its still good. The thing here is that it just works. I don't need to install node.js (and the associated npm) to translate CoffeeScript to JavaScript.

To add CoffeeScript support in Netbeans, we start off downloading the plugin. When done you install it via the plugin page. You should restart Netbeans after and that's it. 

After the restart, try creating a new project. There should be a new project type called CoffeeScript Application. And you should be able to add CoffeeScript scripts to existing web projects also. Just remember the limitation that where you wrote your CoffeeScript is also where the output JavaScript will be saved to.

Next post will be about CoffeeScript data types and functions.


No comments:

Post a Comment