mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-17 21:41:06 +00:00
move to babel6 and bypass https://phabricator.babeljs.io/T6792
This commit is contained in:
parent
ac603cff15
commit
9aa1255b8e
3 changed files with 8 additions and 5 deletions
|
|
@ -3,8 +3,8 @@ var gulp = require('gulp');
|
|||
var plumber = require('gulp-plumber');
|
||||
var babel = require('gulp-babel');
|
||||
var options = {
|
||||
stage: 0, // Dat ES7 goodness
|
||||
optional: ["runtime"]
|
||||
presets: ['babel-preset-stage-0','es2015'],
|
||||
plugins:['transform-runtime']
|
||||
};
|
||||
|
||||
var sourcemaps = require('gulp-sourcemaps');
|
||||
|
|
|
|||
|
|
@ -58,7 +58,9 @@
|
|||
"url": "http://github.com/PrismarineJS/flying-squid/issues"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel": "^6.5.1",
|
||||
"babel-plugin-transform-runtime": "^6.5.0",
|
||||
"babel-preset-es2015": "^6.5.0",
|
||||
"babel-preset-stage-0": "^6.5.0",
|
||||
"chai": "^3.2.0",
|
||||
"doctoc": "^1.0.0",
|
||||
"gulp": "^3.8.11",
|
||||
|
|
|
|||
|
|
@ -62,8 +62,9 @@ async function findBorder(world,{line,direction},directionV)
|
|||
top=positiveOrder(top,direction);
|
||||
|
||||
|
||||
if(direction.y!=0)
|
||||
[bottom,left,right,top]=[left,bottom,top,right];
|
||||
if(direction.y!=0) {
|
||||
[bottom, left, right, top] = [left, bottom, top, right];
|
||||
}
|
||||
|
||||
[bottom,top]=directionV.y<0 ? [top,bottom] : [bottom,top];
|
||||
const horDir=direction.x!=0 || directionV.x!=0 ? 'x' :'z';
|
||||
|
|
|
|||
Loading…
Reference in a new issue