mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-28 21:52:17 -04:00
Add support for sourcemaps
This commit is contained in:
parent
8927b6032c
commit
9078e1cfeb
@ -5,10 +5,14 @@ var options = {
|
||||
experimental: true // Dat ES7 goodness
|
||||
};
|
||||
|
||||
var sourcemaps = require('gulp-sourcemaps');
|
||||
|
||||
gulp.task('compile', function() {
|
||||
gulp
|
||||
.src('src/*.js')
|
||||
.pipe(sourcemaps.init())
|
||||
.pipe(babel(options))
|
||||
.pipe(sourcemaps.write('maps/'))
|
||||
.pipe(gulp.dest('dist/'));
|
||||
});
|
||||
|
||||
|
@ -29,6 +29,7 @@
|
||||
"batch": "~0.3.1",
|
||||
"gulp": "^3.8.11",
|
||||
"gulp-babel": "^4.0.0",
|
||||
"gulp-sourcemaps": "^1.3.0",
|
||||
"mkdirp": "~0.3.4",
|
||||
"mocha": "~1.8.2",
|
||||
"rimraf": "~2.1.1",
|
||||
|
Loading…
x
Reference in New Issue
Block a user