framerjs-cli icon indicating copy to clipboard operation
framerjs-cli copied to clipboard

Feature: add option to `framer new` to default to index.coffee instead of index.js

Open WestonThayer opened this issue 9 years ago • 3 comments

CoffeeScript is generally the favored language for people using Framer. Let's make it easy to get started using it.

I think this just involves adding an index.coffee to the boilerplate code, and conditionally including it.

WestonThayer avatar Oct 08 '15 22:10 WestonThayer

When I was using this utility I preferred to write JS mainly because I was more familiar with it, and also to get intelligent completions via Tern (Tern won't work with CoffeeScript).

peteschaffner avatar Oct 10 '15 13:10 peteschaffner

That makes sense. I still haven't wrapped my head around the autocomplete solutions out there for CoffeeScript, but I think autocomplete is an important feature for most people.

Did you explicitly add support for CoffeeScript or does it just magically work with Browserify?

WestonThayer avatar Oct 10 '15 19:10 WestonThayer

Intelligent completions for CoffeeScript might be a bit of a headache, and thus one of the big reasons I started using FS, as those guys are working hard on that problem (and doing a damn good job)!

I explicitly added a global CoffeeScript transform.

peteschaffner avatar Oct 11 '15 12:10 peteschaffner