Questions tagged [coffeescript]

CoffeeScript is a programming language that transcompiles to JavaScript. It compiles predictably to JavaScript and programs can be written with less code, with no effect on runtime performance.

CoffeeScript is a programming language that transcompiles to JavaScript. The language adds syntactic sugar inspired by Ruby, Python and Haskell to enhance JavaScript's brevity and readability, and add more sophisticated features like list comprehension and pattern matching.

CoffeeScript compiles predictably to JavaScript and programs can be written with less code, typically 1/3 fewer lines, with no effect on runtime performance.

6 questions
2
votes
0 answers

How to get global tab-width in spacemacs?

Brand new to emacs and spacemacs. Hoping to learn the ropes. I have added the following lines to my .spacemacs file: (setq-default indent-tabs-mode nil) (setq-default tab-width 2) (setq-default c-basic-offset 2) (setq indent-line-function…
Steve
  • 21
  • 1
  • 2
2
votes
1 answer

How can I run 2 watch commands simultaneously for coffeescript?

I'd like to run the following commands in parallel with 1 shell script. coffee -wc lib/ coffee -wcb public/ Currently, I have to press ctrl+c to cancel out of the first one before the second line can execute. Any ideas would be greatly…
1
vote
0 answers

IntelliJ / WebStorm Editor Colors not showing correctly

I'm running WebStorm 10.0.2, and for an unknown reason someday my CoffeeScript code started showing only some highlighting. I have no idea of what's going on since the settings seems to be fine. Changing Color Scheme yields no result as well -…
1
vote
1 answer

History and completion not working in coffeescript repl on linux mint

I have recently switched from Ubuntu 12.04 to Linux Mint 14. One thing that is mysteriously not working is autocompletion (tab) and history (uparrow) in coffeescript repl (coffee command). Instead of completing it puts literal tab and instead of…
Tad Lispy
  • 1,011
  • 1
  • 9
  • 13
1
vote
1 answer

set file type in vim according to the hashbang line

In vim, how can I set the file type not only according to the extension, but according to the #! line at the beginning? For instance, I would like vim to recognize files as coffee-script files when they start with #!/usr/bin/env coffee
0
votes
1 answer

Best method for CoffeeScript / LESS autocompilation?

I've been using LESS and CoffeeScript substantially lately, and wondering what would be the best method of monitoring. Currently I use LESS.app, which works great, but I don't think there's a solution for CoffeeScript out there. So, I fall back to…
hashwarp
  • 211