mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-12-02 12:06:53 -05:00
20 lines
381 B
JavaScript
20 lines
381 B
JavaScript
|
var gulp = require('gulp');
|
||
|
|
||
|
var babel = require('gulp-babel');
|
||
|
var options = {
|
||
|
experimental: true // Dat ES7 goodness
|
||
|
};
|
||
|
|
||
|
gulp.task('compile', function() {
|
||
|
gulp
|
||
|
.src('lib/*.js')
|
||
|
.pipe(babel(options))
|
||
|
.pipe(gulp.dest('build/'));
|
||
|
});
|
||
|
|
||
|
gulp.task('watch', function() {
|
||
|
gulp.watch('lib/*.js', ['compile']);
|
||
|
});
|
||
|
|
||
|
gulp.task('default', ['compile']);
|