Skip to content
This repository was archived by the owner on Oct 30, 2018. It is now read-only.

Commit 1ca0e2b

Browse files
Jeferson OliveiraJeferson Oliveira
authored andcommitted
* Using built-in Elixir error notification
* Notifying succesful TypeScript compilaton * Remove custom Laravel Elixir Reporter
1 parent 0aae083 commit 1ca0e2b

File tree

2 files changed

+7
-23
lines changed

2 files changed

+7
-23
lines changed

index.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ var ts = require('gulp-typescript');
44
var concat = require('gulp-concat');
55
var _ = require('underscore');
66

7-
// Laravel Elixir Reporter
8-
var _laravelReporter = require('./reporter');
9-
107
var Task = elixir.Task;
118

129
elixir.extend('typescript', function (output, dest, options) {
@@ -21,10 +18,14 @@ elixir.extend('typescript', function (output, dest, options) {
2118

2219
new Task(pluginName, function () {
2320
var tsResult = gulp.src(assetPath + '/**/*.ts')
24-
.pipe(ts(options, undefined, _laravelReporter.ElixirMessage()));
21+
.pipe(ts(options, undefined)).on('error', function(e) {
22+
new elixir.Notification().error(e, 'TypeScript Compilation Failed!');
23+
this.emit('end');
24+
});
2525
return tsResult
2626
.pipe(concat(output))
27-
.pipe(gulp.dest(dest || './public/js/app.js'));
27+
.pipe(gulp.dest(dest || './public/js/app.js'))
28+
.pipe(new elixir.Notification('TypeScript Compiled!'));
2829
})
2930
.watch(assetPath + '/typescript/**');
30-
});
31+
});

reporter.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)