3 ms·
I wonder if they are using CoffeeScript anywhere at Facebook? http://facebook.github.io/jest/docs/tutorial-coffeescript.html#content http://facebook.github.io/
by elwell 12y ago
I wonder if they are using CoffeeScript anywhere at Facebook?
http://facebook.github.io/jest/docs/tutorial-coffeescript.html#content http://facebook.github.io/jest/docs/tutorial-coffeescript.ht...
- vjeux 12y agoWe're not using CoffeeScript inside of Facebook. But we are using many ES6 features that make JS look a lot like CoffeeScript such as classes, arrow functions, rest arguments, destructuring assignment ... I figured that CoffeeScript would be a good example to show that Jest supports languages that transpile to JS :)
- skeeterbug 12y agoCurious - What are you using to transpile your ES6? Traceur?
- jeffmo 12y agoInternally we use jstransform (github.com/facebook/jstransform) because it allows us to plug in individual transforms more easily. It's also what React uses for it's jsx transformations. jstransform also ships with a few es6 features out of the box (classes, arrow functions, etc -- and the number is growing!), but Traceur definitely has more.
- deleted 12y ago[deleted]
- jamesgpearce 12y agoActually our recent shortcuts-for-framer project happens to use CoffeeScript, but this is very much an outlier. https://github.com/facebook/shortcuts-for-framer https://github.com/facebook/shortcuts-for-framer