Skip to content

Commit

Permalink
chore(build): Use babel rc
Browse files Browse the repository at this point in the history
Removes preset from gulp task and uses .babelrc
  • Loading branch information
joshwiens committed Aug 6, 2016
1 parent 8be5e12 commit ae35f64
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ gulp.task('lint', function(done) {
*/
gulp.task('build', function(done) {
gulp.src('src/**/*.js')
.pipe(babel({
presets: ['es2015', 'stage-2']
}))
.pipe(babel())
.pipe(gulp.dest('lib'))
done()
})
Expand All @@ -44,9 +42,7 @@ gulp.task('watch', function() {
gulp.watch('src/**/*.js')
.on('change', function(path) {
gulp.src(path)
.pipe(babel({
presets: ['es2015', 'stage-2']
}))
.pipe(babel())
.pipe(gulp.dest('lib'))
util.log(`File "${path}" rebuilt`)
})
Expand Down

0 comments on commit ae35f64

Please sign in to comment.