gulp-browserify-typescript
v1.0.1
Published
Gulp task to watch and compile typescript files using browserify.
Downloads
4
Maintainers
Readme
gulp-browserify-typescript
Browserify typescript with a ton of options.
Requires Node 4.x or higher
Usage
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
Options
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