Provides a single simplified means for building TypeScript with:
- Source Maps
- Declaration Files
- Resolves using promises instead of streams for more easy of use and flexibility.
- Use whatever Promise library you want.
Write your tasks like this:
;;// Setup the builder by injecting a promise constructor..injectPromiseFactory // Optional: will use Q as a default.// Define your source folder and destination base path..fromToPATH.SOURCE, "./dist" , DEFAULTS;// Subsequent tasks are simplified down to this:gulp.taskTASK.DIST_UMD,builder.initMODULE.UMD + '.min',TARGET.ES5,MODULE.UMD.clear // Clears the destination directory..minify // Signals to enable minification (uglify)..execute // Commences the build pipeline.then/* Whatever steps you want to do before completion */ //;
See more real use cases and examples here: https://github.com/electricessence/TypeScript.NET/blob/master/_gulp/dist.ts