Last active
August 29, 2015 14:01
-
-
Save mathildathompson/1554f7b7d0d6fbe2bee6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install -g coffee-script //Globally install node package; | |
npm install coffee-script //Install locally in the folder; //Like locally installing a gem; | |
node node_modules/coffee-script/bin/coffee | |
node_modules/coffee-script/bin/coffee hello.coffee | |
//Need to compile to Javascript for the browser to read; | |
node_modules/coffee-script/bin/coffee -c hello.coffee | |
//You can use Ruby for highlighting in sublime; | |
//When you create an array it wraps it in a function for nameSpace reasons; | |
var hotDogs = '7'; //Javascript uses hoisting, if you declare a varibale down the bottom, it will move it up to the top; | |
./../../../../node_modules/coffee-script/bin/coffee -w -c js/main.coffee #It is watching for live changes and will live compile them! | |
RESOURCE | |
coffeescript.org |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment