Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gulp.task(
- 'deploy-typescript',
- function() {
- var modulePath = configuration.files.typescript.entry;
- var bundleStream = browserify([modulePath])
- .transform(includeTemplates)
- .plugin(tsify)
- .bundle();
- return bundleStream
- .pipe(sourcestream(configuration.files.typescript.bundle))
- .pipe(gulp.dest(configuration.files.typescript.destination));
- }
- );
- var includeTemplates = function(file, options) {
- return through(function(buffer, encoding, next) {
- this.push('!test!');
- next();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement