Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. gulp.task(
  2. 'deploy-typescript',
  3. function() {
  4. var modulePath = configuration.files.typescript.entry;
  5. var bundleStream = browserify([modulePath])
  6. .transform(includeTemplates)
  7. .plugin(tsify)
  8. .bundle();
  9.  
  10. return bundleStream
  11. .pipe(sourcestream(configuration.files.typescript.bundle))
  12. .pipe(gulp.dest(configuration.files.typescript.destination));
  13. }
  14. );
  15.  
  16. var includeTemplates = function(file, options) {
  17. return through(function(buffer, encoding, next) {
  18. this.push('!test!');
  19. next();
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement