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