typescriptifier
v1.0.0
Published
Typescrip transform for Browserify
Downloads
7
Maintainers
Readme
typescriptifier
Information
Usage
$ npm install typescriptifier
$ browserify main.ts -t typescriptifier --extension=.ts > bundle.js
Usage with gulp-browserify
var gulp = require('gulp');
var browserify = require('gulp-browserify');
var rename = require('gulp-rename');
gulp.task('default', function () {
return gulp
.src('app/main.ts', {read: false})
.pipe(browserify({
transform: ['typescriptifier'],
extensions: ['.ts'],
}))
.pipe(rename('app.js'))
.pipe(gulp.dest('dist'));
});