mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-10-03 07:59:50 -04:00
Update babel
This commit is contained in:
parent
fb6641b374
commit
9295bcfbdb
11
gulpfile.js
11
gulpfile.js
@ -1,8 +1,10 @@
|
|||||||
var gulp = require('gulp');
|
var gulp = require('gulp');
|
||||||
|
|
||||||
|
var plumber = require('gulp-plumber');
|
||||||
var babel = require('gulp-babel');
|
var babel = require('gulp-babel');
|
||||||
var options = {
|
var options = {
|
||||||
experimental: true // Dat ES7 goodness
|
stage: 0, // Dat ES7 goodness
|
||||||
|
optional: ["runtime"]
|
||||||
};
|
};
|
||||||
|
|
||||||
var sourcemaps = require('gulp-sourcemaps');
|
var sourcemaps = require('gulp-sourcemaps');
|
||||||
@ -10,8 +12,15 @@ var sourcemaps = require('gulp-sourcemaps');
|
|||||||
gulp.task('compile', function() {
|
gulp.task('compile', function() {
|
||||||
gulp
|
gulp
|
||||||
.src('src/**/*.js')
|
.src('src/**/*.js')
|
||||||
|
.pipe(plumber({
|
||||||
|
errorHandler: function(err) {
|
||||||
|
console.error(err.stack);
|
||||||
|
this.emit('end');
|
||||||
|
}
|
||||||
|
}))
|
||||||
.pipe(sourcemaps.init())
|
.pipe(sourcemaps.init())
|
||||||
.pipe(babel(options))
|
.pipe(babel(options))
|
||||||
|
.pipe(plumber.stop())
|
||||||
.pipe(sourcemaps.write('maps/'))
|
.pipe(sourcemaps.write('maps/'))
|
||||||
.pipe(gulp.dest('dist/'));
|
.pipe(gulp.dest('dist/'));
|
||||||
});
|
});
|
||||||
|
@ -28,18 +28,19 @@
|
|||||||
},
|
},
|
||||||
"browser": "browser.js",
|
"browser": "browser.js",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"batch": "~0.3.1",
|
|
||||||
"gulp": "^3.8.11",
|
"gulp": "^3.8.11",
|
||||||
"gulp-babel": "^4.0.0",
|
"gulp-plumber": "^1.0.1",
|
||||||
|
"gulp-babel": "^5.1.0",
|
||||||
"gulp-sourcemaps": "^1.3.0",
|
"gulp-sourcemaps": "^1.3.0",
|
||||||
"mkdirp": "~0.3.4",
|
"mkdirp": "~0.3.4",
|
||||||
"mocha": "~1.8.2",
|
"mocha": "~1.8.2",
|
||||||
"rimraf": "~2.1.1",
|
"rimraf": "~2.1.1",
|
||||||
"zfill": "0.0.1",
|
|
||||||
"batch": "~0.3.1",
|
"batch": "~0.3.1",
|
||||||
"jsonschema": "~1.0.1"
|
"jsonschema": "~1.0.1",
|
||||||
|
"zfill": "0.0.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"babel-runtime": "^5.4.4",
|
||||||
"buffer-equal": "0.0.0",
|
"buffer-equal": "0.0.0",
|
||||||
"node-uuid": "~1.4.1",
|
"node-uuid": "~1.4.1",
|
||||||
"prismarine-nbt": "0.0.1",
|
"prismarine-nbt": "0.0.1",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user