mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-07-31 18:40:17 +02:00
Remove babel for now.
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
---
|
---
|
||||||
root: true
|
root: true
|
||||||
|
|
||||||
parser: babel-eslint
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
es6: true
|
es6: true
|
||||||
node: true
|
node: true
|
||||||
|
@@ -12,17 +12,13 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"ghu": "node -r babel-core/register ghu.js",
|
"build": "node ghu release"
|
||||||
"build": "npm run -s ghu release"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-core": "6.9.0",
|
|
||||||
"babel-eslint": "6.0.4",
|
|
||||||
"babel-preset-es2015": "6.9.0",
|
|
||||||
"eslint": "2.10.2",
|
"eslint": "2.10.2",
|
||||||
"ghu": "0.4.0"
|
"ghu": "0.4.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=4.0.0"
|
"node": ">=6.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -108,7 +108,7 @@ modulejs.define('ext/preview', ['_', '$', 'core/resource', 'core/settings', 'cor
|
|||||||
if (key === 27) { // esc
|
if (key === 27) { // esc
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
ev.stopImmediatePropagation();
|
ev.stopImmediatePropagation();
|
||||||
onExit();
|
onExit(); // eslint-disable-line no-use-before-define
|
||||||
} else if (key === 8 || key === 37) { // backspace, left
|
} else if (key === 8 || key === 37) { // backspace, left
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
ev.stopImmediatePropagation();
|
ev.stopImmediatePropagation();
|
||||||
|
20
test/vendor/uniq.js
vendored
20
test/vendor/uniq.js
vendored
@@ -1,12 +1,14 @@
|
|||||||
/* uniq 0.3.1 - http://larsjung.de/uniq/ */
|
/* uniq 0.4.0 - http://larsjung.de/uniq/ */
|
||||||
(function (root, factory) {
|
(function (root, factory) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
// istanbul ignore else
|
||||||
|
if (typeof exports === 'object') {
|
||||||
|
module.exports = factory();
|
||||||
|
} else {
|
||||||
|
root.uniq = factory();
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof module !== 'undefined') {
|
|
||||||
module.exports = factory();
|
|
||||||
} else {
|
|
||||||
root.uniq = factory();
|
|
||||||
}
|
|
||||||
}(this, function () {
|
}(this, function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
@@ -19,23 +21,19 @@
|
|||||||
var counter = 0;
|
var counter = 0;
|
||||||
|
|
||||||
function id() {
|
function id() {
|
||||||
|
|
||||||
counter += 1;
|
counter += 1;
|
||||||
return PREFIX + (ZERO_PAD + counter).substr(-LENGTH) + SUFFIX;
|
return PREFIX + (ZERO_PAD + counter).substr(-LENGTH) + SUFFIX;
|
||||||
}
|
}
|
||||||
|
|
||||||
function isId(sequence) {
|
function isId(sequence) {
|
||||||
|
|
||||||
return RE_ID.test(sequence);
|
return RE_ID.test(sequence);
|
||||||
}
|
}
|
||||||
|
|
||||||
function obj() {
|
function obj() {
|
||||||
|
|
||||||
return {_uniq_id: id()};
|
return {_uniq_id: id()};
|
||||||
}
|
}
|
||||||
|
|
||||||
function path(suffix) {
|
function path(suffix) {
|
||||||
|
|
||||||
return '/_uniq_path/' + id() + (suffix ? suffix : '');
|
return '/_uniq_path/' + id() + (suffix ? suffix : '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user