removed gulp
This commit is contained in:
parent
64fe665935
commit
ea296ac85f
4 changed files with 3 additions and 40 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,3 +1,2 @@
|
|||
node_modules/
|
||||
npm-debug.log
|
||||
dist/
|
||||
npm-debug.log
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
node_modules/
|
||||
npm-debug.log
|
||||
27
Gulpfile.js
27
Gulpfile.js
|
|
@ -1,27 +0,0 @@
|
|||
var gulp = require('gulp');
|
||||
var plumber = require('gulp-plumber');
|
||||
var babel = require('gulp-babel');
|
||||
var sourcemaps = require('gulp-sourcemaps');
|
||||
var options = { stage: 0, optional: ["runtime"] };
|
||||
|
||||
gulp.task('compile', function() {
|
||||
return gulp
|
||||
.src('src/**/*.js')
|
||||
.pipe(plumber({
|
||||
errorHandler: function(err) {
|
||||
console.error(err.stack);
|
||||
this.emit('end');
|
||||
}
|
||||
}))
|
||||
.pipe(sourcemaps.init())
|
||||
.pipe(babel(options))
|
||||
.pipe(plumber.stop())
|
||||
.pipe(sourcemaps.write('maps/'))
|
||||
.pipe(gulp.dest('dist/'));
|
||||
});
|
||||
|
||||
gulp.task('watch', function() {
|
||||
return gulp.watch('src/**/*.js', ['compile']);
|
||||
});
|
||||
|
||||
gulp.task('default', ['compile']);
|
||||
11
package.json
11
package.json
|
|
@ -1,10 +1,9 @@
|
|||
{
|
||||
"name": "pocket-minecraft-protocol",
|
||||
"version": "1.0.0",
|
||||
"description": "Parse and serialize Minecraft pocket edition packets.",
|
||||
"description": "Parse and serialize Minecraft PE packets.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"prepublish": "gulp",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"keywords": [
|
||||
|
|
@ -18,16 +17,10 @@
|
|||
],
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"babel-runtime": "^5.4.4",
|
||||
"protodef": "^1.1.2",
|
||||
"raknet": "^1.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"gulp": "3.8.11",
|
||||
"gulp-babel": "5.1.0",
|
||||
"gulp-plumber": "1.0.1",
|
||||
"gulp-sourcemaps": "1.3.0"
|
||||
},
|
||||
"devDependencies": {},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/mhsjlw/pocket-minecraft-protocol.git"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue