Browserify typescript with a ton of options.
Requires Node 4.x or higher
const b = require('gulp-browserify-typescript');
gulp.task('watch', done => {
b({ watch: true, sourcemaps: true }).on('end', done);
});
Then kick it off with
gulp watch
sourcemaps
{boolean} Default:false
watch
{boolean} Default:false
src
{Array} Default:['./app.ts']
outputPath
{string} Default:'build/'
outputFile
{string} Default:'app.bundle.js'
minify
{boolean} Default:false
browserify
{Object} Default:{}
browserify optionssourcemap
{Object} Default:{sourceRoot: './'}
sourcemap optionswatchify
{Object} Default:{}
watchify optionstsify
{Object} Default:{}
tsify optionsuglify
{Object} Default:{}
uglify optionsonError
{Function} "function(err) {...}"onLog
{Function} "function(log) {...}" set in order to override default log behavior