Greenkeeper/rollup plugin babel 3.0.2 (#177)

* chore(package): update rollup-plugin-babel to version 3.0.2

Closes #168

* Downgrade rollup to 0.48.0

https://github.com/rollup/rollup/issues/1595

* Update rollup config
pull/180/head
Glen Cheney 7 years ago committed by GitHub
parent 4695074097
commit fba8422a8c

20
dist/shuffle.js vendored

@ -69,7 +69,7 @@ E.prototype = {
}
};
var index = E;
var tinyEmitter = E;
var proto = typeof Element !== 'undefined' ? Element.prototype : {};
var vendor = proto.matches
@ -79,7 +79,7 @@ var vendor = proto.matches
|| proto.msMatchesSelector
|| proto.oMatchesSelector;
var index$1 = match;
var matchesSelector = match;
/**
* Match `el` to `selector`.
@ -100,7 +100,7 @@ function match(el, selector) {
return false;
}
var index$2 = throttle;
var throttleit = throttle;
/**
* Returns a new function that, when invoked, invokes `func` at most once per `wait` milliseconds.
@ -133,7 +133,7 @@ function throttle (func, wait) {
}
}
var index$3 = function parallel(fns, context, callback) {
var arrayParallel = function parallel(fns, context, callback) {
if (!callback) {
if (typeof context === 'function') {
callback = context;
@ -1214,7 +1214,7 @@ var Shuffle = function (_TinyEmitter) {
var _this3 = this;
return Array.from(this.element.children).filter(function (el) {
return index$1(el, _this3.options.itemSelector);
return matchesSelector(el, _this3.options.itemSelector);
}).map(function (el) {
return new ShuffleItem(el);
});
@ -1372,8 +1372,8 @@ var Shuffle = function (_TinyEmitter) {
}, {
key: '_getStaggerAmount',
value: function _getStaggerAmount(index$$1) {
return Math.min(index$$1 * this.options.staggerAmount, this.options.staggerAmountMax);
value: function _getStaggerAmount(index) {
return Math.min(index * this.options.staggerAmount, this.options.staggerAmountMax);
}
/**
@ -1702,7 +1702,7 @@ var Shuffle = function (_TinyEmitter) {
return _this8._getTransitionFunction(obj);
});
index$3(callbacks, this._movementFinished.bind(this));
arrayParallel(callbacks, this._movementFinished.bind(this));
}
}, {
key: '_cancelMovement',
@ -2136,7 +2136,7 @@ var Shuffle = function (_TinyEmitter) {
}
}]);
return Shuffle;
}(index);
}(tinyEmitter);
Shuffle.ShuffleItem = ShuffleItem;
@ -2202,7 +2202,7 @@ Shuffle.options = {
// By default, shuffle will throttle resize events. This can be changed or
// removed.
throttle: index$2,
throttle: throttleit,
// How often shuffle can be called on resize (in milliseconds).
throttleTime: 300,

File diff suppressed because one or more lines are too long

@ -69,7 +69,7 @@ E.prototype = {
}
};
var index = E;
var tinyEmitter = E;
var proto = typeof Element !== 'undefined' ? Element.prototype : {};
var vendor = proto.matches
@ -79,7 +79,7 @@ var vendor = proto.matches
|| proto.msMatchesSelector
|| proto.oMatchesSelector;
var index$1 = match;
var matchesSelector = match;
/**
* Match `el` to `selector`.
@ -100,7 +100,7 @@ function match(el, selector) {
return false;
}
var index$2 = throttle;
var throttleit = throttle;
/**
* Returns a new function that, when invoked, invokes `func` at most once per `wait` milliseconds.
@ -133,7 +133,7 @@ function throttle (func, wait) {
}
}
var index$3 = function parallel(fns, context, callback) {
var arrayParallel = function parallel(fns, context, callback) {
if (!callback) {
if (typeof context === 'function') {
callback = context;
@ -1214,7 +1214,7 @@ var Shuffle = function (_TinyEmitter) {
var _this3 = this;
return Array.from(this.element.children).filter(function (el) {
return index$1(el, _this3.options.itemSelector);
return matchesSelector(el, _this3.options.itemSelector);
}).map(function (el) {
return new ShuffleItem(el);
});
@ -1372,8 +1372,8 @@ var Shuffle = function (_TinyEmitter) {
}, {
key: '_getStaggerAmount',
value: function _getStaggerAmount(index$$1) {
return Math.min(index$$1 * this.options.staggerAmount, this.options.staggerAmountMax);
value: function _getStaggerAmount(index) {
return Math.min(index * this.options.staggerAmount, this.options.staggerAmountMax);
}
/**
@ -1702,7 +1702,7 @@ var Shuffle = function (_TinyEmitter) {
return _this8._getTransitionFunction(obj);
});
index$3(callbacks, this._movementFinished.bind(this));
arrayParallel(callbacks, this._movementFinished.bind(this));
}
}, {
key: '_cancelMovement',
@ -2136,7 +2136,7 @@ var Shuffle = function (_TinyEmitter) {
}
}]);
return Shuffle;
}(index);
}(tinyEmitter);
Shuffle.ShuffleItem = ShuffleItem;
@ -2202,7 +2202,7 @@ Shuffle.options = {
// By default, shuffle will throttle resize events. This can be changed or
// removed.
throttle: index$2,
throttle: throttleit,
// How often shuffle can be called on resize (in milliseconds).
throttleTime: 300,

File diff suppressed because one or more lines are too long

@ -23,25 +23,33 @@ const uglifyOptions = {
const entry = './src/shuffle.js';
const moduleName = 'Shuffle';
const format = 'umd';
const sourceMap = true;
const sourcemap = true;
module.exports.configs = [
{
entry,
input: entry,
output: {
name: moduleName,
file: './dist/shuffle.js',
sourcemap,
format,
},
cache: undefined,
plugins: [
resolve(),
commonjs(commonjsOptions),
babel(babelOptions),
],
dest: './dist/shuffle.js',
sourceMap,
moduleName,
format,
},
{
entry,
input: entry,
output: {
name: moduleName,
file: './dist/shuffle.min.js',
sourcemap,
format,
},
cache: undefined,
plugins: [
resolve(),
@ -49,10 +57,6 @@ module.exports.configs = [
babel(babelOptions),
uglify(uglifyOptions),
],
dest: './dist/shuffle.min.js',
sourceMap,
moduleName,
format,
},
];

@ -4,7 +4,7 @@ const configs = require('../config').configs;
module.exports = function scripts() {
const bundles = configs.map(config => rollup(config).then((bundle) => {
config.cache = bundle;
return bundle.write(config);
return bundle.write(config.output);
}));
return Promise.all(bundles);

@ -50,6 +50,7 @@
"devDependencies": {
"@odopod/eslint-config": "^1.1.0",
"autoprefixer": "^7.0.1",
"babel-core": "^6.26.0",
"babel-plugin-external-helpers": "^6.22.0",
"babel-preset-es2015": "^6.24.1",
"chai": "^4.0.1",
@ -64,8 +65,8 @@
"gulp-shell": "^0.6.1",
"gulp-util": "^3.0.7",
"mocha": "^3.0.0",
"rollup": "^0.50.0",
"rollup-plugin-babel": "^2.7.1",
"rollup": "^0.48.0",
"rollup-plugin-babel": "^3.0.2",
"rollup-plugin-commonjs": "^8.0.2",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-uglify": "^2.0.0",

Loading…
Cancel
Save