mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
typescript build syntax errors
This commit is contained in:
@ -136,11 +136,16 @@ var tscOptions = {
|
||||
noEmitOnError: false, // ignore errors
|
||||
rootDir: '.'
|
||||
}
|
||||
var tscReporter = {
|
||||
error: function (error) {
|
||||
console.error(error.message);
|
||||
}
|
||||
};
|
||||
|
||||
gulp.task('transpile', function() {
|
||||
var stream = gulp.src(['ionic/**/*.ts', 'ionic/**/*.js', '!ionic/components/*/test/**/*', '!ionic/init.js'])
|
||||
.pipe(cache('transpile', { optimizeMemory: true }))
|
||||
.pipe(tsc(tscOptions, null, tsc.reporter.nullReporter()))
|
||||
.pipe(tsc(tscOptions, null, tscReporter))
|
||||
// .on('error', function(error) {
|
||||
// stream.emit('error', error);
|
||||
// })
|
||||
|
Reference in New Issue
Block a user