Using Typescript with Browserify?

Topics: General
Mar 24, 2013 at 4:03 PM
Browserify http://browserify.org/ is a yet another client-side Javascript module and packaging attempt. They use Node.js compatible module syntax and toolchaining, e.g. NPM as the package repository.

Here is some more background: http://esa-matti.suuronen.org/blog/2013/03/22/journey-from-requirejs-to-browserify/

Has anyone yet tried to use Browserify with TypeScript? I am looking for example projects how to setup toolchain, on-edit file watching and compiling. I am planning to use Sublime Text 2 on OSX with a codebase mixed of TypeScript (my own) and Javascript dependencies.
Apr 4, 2014 at 10:13 AM
https://github.com/bodil/typeify

Haven't tried it out yet, but looks interesting
Apr 7, 2014 at 3:23 AM
More recent: https://github.com/guzart/browserify-typescriptifier

Note browserify is not 'yet another attempt' (hah! :)

It is established and as one of the biggest in packaging, it is insanely powerful. Spend some time browsing all the plugins and transforms, it is crazy. It works well with grunt and gulp and other task runners too. If you like coding for node and npm then this a good choice, I used it with JS a lot. With some work you can use it with bower packages too (deAMD ify).

Not 100% sure on the TS transforms but you can also compile your TS to JS modules with any compiler and then browserify that.

See the readme, https://github.com/substack/node-browserify it also has links to the transforms and everything.
Apr 7, 2014 at 6:11 AM
Wonderful, nice to know!

Inviata dal mio Windows Phone

Da: [email removed]
Inviato: ‎07/‎04/‎2014 04.23
A: [email removed]
Oggetto: Re: Using Typescript with Browserify? [typescript:437807]

From: Bartvds

More recent: https://github.com/guzart/browserify-typescriptifier

Note browserify is not 'yet another attempt' (hah! :)

It is established and as one of the biggest in packaging, it is insanely powerful. Spend some time browsing all the plugins and transforms, it is crazy. It works well with grunt and gulp and other task runners too. If you like coding for node and npm then this a good choice, I used it with JS a lot. With some work you can use it with bower packages too (deAMD ify).

Not 100% sure on the TS transforms but you can also compile your TS to JS modules with any compiler and then browserify that.

See the readme, https://github.com/substack/node-browserify it also has links to the transforms and everything.