Skip to content
This repository was archived by the owner on Oct 30, 2018. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ var ts = require('gulp-typescript');
var concat = require('gulp-concat');
var _ = require('underscore');

// Laravel Elixir Reporter
var _laravelReporter = require('./reporter');

var Task = elixir.Task;

elixir.extend('typescript', function (output, dest, options) {
Expand All @@ -21,10 +18,15 @@ elixir.extend('typescript', function (output, dest, options) {

new Task(pluginName, function () {
var tsResult = gulp.src(assetPath + '/**/*.ts')
.pipe(ts(options, undefined, _laravelReporter.ElixirMessage()));
.pipe(ts(options))
.on('error', function(e) {
new elixir.Notification().error(e, 'TypeScript Compilation Failed!');
this.emit('end');
});
return tsResult
.pipe(concat(output))
.pipe(gulp.dest(dest || './public/js/app.js'));
.pipe(gulp.dest(dest || './public/js/app.js'))
.pipe(new elixir.Notification('TypeScript Compiled!'));
})
.watch(assetPath + '/typescript/**');
});
});
17 changes: 0 additions & 17 deletions reporter.js

This file was deleted.