node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »


Gulp Typescript Browserify

This package is a small wrapper around tsify and browserify to compile typescript files.

Sample gulpfile for a rails app

var gulp = require('gulp');
var del = require('del');
var browserifyTask = require('gulp-typescript-browserify');
var bundleConfigs = [{
    entries: './app/assets/javascripts/bundle.tsx',
    dest: './public/assets/javascripts/',
gulp.task('build', ['clean', 'browserify']);
gulp.task('browserify', browserifyTask(bundleConfigs));
gulp.task('watchify', browserifyTask(bundleConfigs, true));
gulp.task('clean', function(cb) {
    del(['./public/assets'], {
        force: true
    }, cb);
gulp.task('default', ['watchify']);

NOTE: For rails, you may require the bundle like so:

//=require bundle 

Sprocket will load the bundle from the public/assets directory.