Iterative development with other transpilers (TypeScript, Traceur, JSX, etc.)


#1

Obviously Atom has built-in support for transpiling .coffee files to .js. The edit-refresh cycle is pretty sweet.

Is it possible to set things up to work seamlessly with other transpilers? I was hoping that my scripts/prepublish in package.json would get run on reload so that I could use that. Is there some other place in the package.json where I can hook in?


How to create views in javascript
#2

Are you talking about adding support for other transpilers for Atom package development? Or something else?


#3

Let’s say I’m developing my Atom package in TypeScript. What is the best way to configure Atom so that it turns my TypeScript into JavaScript automatically when I run window:reload to test my Atom package?


#4

There isn’t currently support for using TypeScript (or other JavaScript-type dialect) in place of CoffeeScript in Atom. That’s not to say it couldn’t be added … but there isn’t an easy switch to flip.

On the other hand, there is this post that says they made it work:


#5

Isn’t the usual way to get FooScript compiled to JavaScript to simply use a watch script in gulp or other workflow manager? That’s the way I do CS and possibly soon Traceur/es6.


#6

I would be very surprised if any transpiler did not have a watch capability available.

Edit: fixed my total reversal of meaning. Changed “did” to “did not”.


#7

Thanks, I’m trying gulp now. Interestingly, Traceur offers traceur.require/traceur.require.makeDefault: https://github.com/google/traceur-compiler/wiki/Using-Traceur-with-Node.js. Presumably it eliminates the need to use a file watcher, which seems nice.