Created
October 30, 2015 07:35
-
-
Save ctulek/8ce2e0b9d8dd54407fb5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.task('babel', function () { | |
return gulp.src(['src/**/*.js*', '!src/**/*.test.js']) | |
.pipe(plumber({ | |
errorHandler: function (err) { | |
console.log(err['filename'] || err['name']); | |
console.log(err['message']); | |
console.log(err['loc']); | |
console.log(err['codeFrame'] || err['stack']); | |
this.emit('end'); | |
} | |
})) | |
.pipe(babel({ | |
presets: ['babel-preset-es2015', 'react'], | |
plugins: [ | |
'syntax-async-functions', | |
'syntax-async-generators', | |
'transform-runtime', | |
//'transform-es2015-modules-systemjs', | |
'transform-es2015-modules-amd' | |
] | |
})) | |
.pipe(gulp.dest('build')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment