Skip to content
This repository was archived by the owner on Mar 29, 2019. It is now read-only.

Commit db90c89

Browse files
committed
package.json: change main file link to build folder
1 parent 76715e4 commit db90c89

26 files changed

+349
-222
lines changed

build/mojs-player.js

+15-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
/*!
22
:: MojsPlayer :: Player controls for [mojs](mojs.io). Intended to help you to craft `mojs` animation sequences.
33
Oleg Solomka @LegoMushroom 2016 MIT
4-
0.43.6
4+
0.43.7
55
*/
66

7-
/******/ (function(modules) { // webpackBootstrap
7+
(function webpackUniversalModuleDefinition(root, factory) {
8+
if(typeof exports === 'object' && typeof module === 'object')
9+
module.exports = factory();
10+
else if(typeof define === 'function' && define.amd)
11+
define("mojs-player", [], factory);
12+
else if(typeof exports === 'object')
13+
exports["mojs-player"] = factory();
14+
else
15+
root["mojs-player"] = factory();
16+
})(this, function() {
17+
return /******/ (function(modules) { // webpackBootstrap
818
/******/ // The module cache
919
/******/ var installedModules = {};
1020

@@ -9026,4 +9036,6 @@
90269036
};
90279037

90289038
/***/ }
9029-
/******/ ]);
9039+
/******/ ])
9040+
});
9041+
;

build/mojs-player.min.js

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var credits = ''
3838
gulp.task('babel-lib', function(e){
3939
return gulp.src(paths.src.babel)
4040
.pipe(plumber())
41-
.pipe(babel({ presets: ['es2015-loose'] }))
41+
.pipe(babel({ presets: ['es2015-loose'], plugins: [ 'transform-runtime' ] }))
4242
.pipe(rename(function (path) {
4343
return path.basename = path.basename.replace('.babel', '');
4444
})

lib/components/bounds-button.js

+15-10
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,33 @@
22

33
exports.__esModule = true;
44

5-
var _repeatButton = require('./repeat-button');
5+
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
66

7-
var _repeatButton2 = _interopRequireDefault(_repeatButton);
7+
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
88

9-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9+
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
10+
11+
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
12+
13+
var _inherits2 = require('babel-runtime/helpers/inherits');
1014

11-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15+
var _inherits3 = _interopRequireDefault(_inherits2);
1216

13-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
17+
var _repeatButton = require('./repeat-button');
1418

15-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
19+
var _repeatButton2 = _interopRequireDefault(_repeatButton);
20+
21+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1622

1723
// require('css/blocks/repeat-button.postcss.css');
1824
// let CLASSES = require('css/blocks/repeat-button.postcss.css.json');
1925

2026
var BoundsButton = function (_RepeatButton) {
21-
_inherits(BoundsButton, _RepeatButton);
27+
(0, _inherits3.default)(BoundsButton, _RepeatButton);
2228

2329
function BoundsButton() {
24-
_classCallCheck(this, BoundsButton);
25-
26-
return _possibleConstructorReturn(this, _RepeatButton.apply(this, arguments));
30+
(0, _classCallCheck3.default)(this, BoundsButton);
31+
return (0, _possibleConstructorReturn3.default)(this, _RepeatButton.apply(this, arguments));
2732
}
2833

2934
/*

lib/components/button-switch.js

+15-10
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,33 @@
22

33
exports.__esModule = true;
44

5-
var _button = require('./button');
5+
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
66

7-
var _button2 = _interopRequireDefault(_button);
7+
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
88

9-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9+
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
10+
11+
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
12+
13+
var _inherits2 = require('babel-runtime/helpers/inherits');
1014

11-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15+
var _inherits3 = _interopRequireDefault(_inherits2);
1216

13-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
17+
var _button = require('./button');
1418

15-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
19+
var _button2 = _interopRequireDefault(_button);
20+
21+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1622

1723
require('../../css/blocks/button-switch.postcss.css');
1824
var CLASSES = require('../../css/blocks/button-switch.postcss.css.json');
1925

2026
var ButtonSwitch = function (_Button) {
21-
_inherits(ButtonSwitch, _Button);
27+
(0, _inherits3.default)(ButtonSwitch, _Button);
2228

2329
function ButtonSwitch() {
24-
_classCallCheck(this, ButtonSwitch);
25-
26-
return _possibleConstructorReturn(this, _Button.apply(this, arguments));
30+
(0, _classCallCheck3.default)(this, ButtonSwitch);
31+
return (0, _possibleConstructorReturn3.default)(this, _Button.apply(this, arguments));
2732
}
2833

2934
/*

lib/components/button.js

+15-10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
exports.__esModule = true;
44

5+
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
6+
7+
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
8+
9+
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
10+
11+
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
12+
13+
var _inherits2 = require('babel-runtime/helpers/inherits');
14+
15+
var _inherits3 = _interopRequireDefault(_inherits2);
16+
517
var _module = require('./module');
618

719
var _module2 = _interopRequireDefault(_module);
@@ -16,22 +28,15 @@ var _ripple2 = _interopRequireDefault(_ripple);
1628

1729
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1830

19-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
20-
21-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
22-
23-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
24-
2531
require('../../css/blocks/button.postcss.css');
2632
var CLASSES = require('../../css/blocks/button.postcss.css.json');
2733

2834
var Button = function (_Module) {
29-
_inherits(Button, _Module);
35+
(0, _inherits3.default)(Button, _Module);
3036

3137
function Button() {
32-
_classCallCheck(this, Button);
33-
34-
return _possibleConstructorReturn(this, _Module.apply(this, arguments));
38+
(0, _classCallCheck3.default)(this, Button);
39+
return (0, _possibleConstructorReturn3.default)(this, _Module.apply(this, arguments));
3540
}
3641

3742
/*

lib/components/handle.js

+15-10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
exports.__esModule = true;
44

5+
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
6+
7+
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
8+
9+
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
10+
11+
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
12+
13+
var _inherits2 = require('babel-runtime/helpers/inherits');
14+
15+
var _inherits3 = _interopRequireDefault(_inherits2);
16+
517
var _module = require('./module');
618

719
var _module2 = _interopRequireDefault(_module);
@@ -12,22 +24,15 @@ var _hammerjs2 = _interopRequireDefault(_hammerjs);
1224

1325
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1426

15-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16-
17-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
18-
19-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
20-
2127
require('../../css/blocks/handle.postcss.css');
2228
var CLASSES = require('../../css/blocks/handle.postcss.css.json');
2329

2430
var Handle = function (_Module) {
25-
_inherits(Handle, _Module);
31+
(0, _inherits3.default)(Handle, _Module);
2632

2733
function Handle() {
28-
_classCallCheck(this, Handle);
29-
30-
return _possibleConstructorReturn(this, _Module.apply(this, arguments));
34+
(0, _classCallCheck3.default)(this, Handle);
35+
return (0, _possibleConstructorReturn3.default)(this, _Module.apply(this, arguments));
3136
}
3237

3338
/*

lib/components/hide-button.js

+15-10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
exports.__esModule = true;
44

5+
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
6+
7+
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
8+
9+
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
10+
11+
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
12+
13+
var _inherits2 = require('babel-runtime/helpers/inherits');
14+
15+
var _inherits3 = _interopRequireDefault(_inherits2);
16+
517
var _buttonSwitch = require('./button-switch');
618

719
var _buttonSwitch2 = _interopRequireDefault(_buttonSwitch);
@@ -12,23 +24,16 @@ var _icon2 = _interopRequireDefault(_icon);
1224

1325
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1426

15-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16-
17-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
18-
19-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
20-
2127
require('../../css/blocks/hide-button.postcss.css');
2228
var CLASSES = require('../../css/blocks/hide-button.postcss.css.json'),
2329
className = 'hide-button';
2430

2531
var HideButton = function (_ButtonSwitch) {
26-
_inherits(HideButton, _ButtonSwitch);
32+
(0, _inherits3.default)(HideButton, _ButtonSwitch);
2733

2834
function HideButton() {
29-
_classCallCheck(this, HideButton);
30-
31-
return _possibleConstructorReturn(this, _ButtonSwitch.apply(this, arguments));
35+
(0, _classCallCheck3.default)(this, HideButton);
36+
return (0, _possibleConstructorReturn3.default)(this, _ButtonSwitch.apply(this, arguments));
3237
}
3338

3439
HideButton.prototype._declareDefaults = function _declareDefaults() {

lib/components/icon-button.js

+15-10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
exports.__esModule = true;
44

5+
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
6+
7+
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
8+
9+
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
10+
11+
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
12+
13+
var _inherits2 = require('babel-runtime/helpers/inherits');
14+
15+
var _inherits3 = _interopRequireDefault(_inherits2);
16+
517
var _icon = require('./icon');
618

719
var _icon2 = _interopRequireDefault(_icon);
@@ -12,22 +24,15 @@ var _button2 = _interopRequireDefault(_button);
1224

1325
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1426

15-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16-
17-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
18-
19-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
20-
2127
require('../../css/blocks/icon-button.postcss.css');
2228
var CLASSES = require('../../css/blocks/icon-button.postcss.css.json');
2329

2430
var IconButton = function (_Button) {
25-
_inherits(IconButton, _Button);
31+
(0, _inherits3.default)(IconButton, _Button);
2632

2733
function IconButton() {
28-
_classCallCheck(this, IconButton);
29-
30-
return _possibleConstructorReturn(this, _Button.apply(this, arguments));
34+
(0, _classCallCheck3.default)(this, IconButton);
35+
return (0, _possibleConstructorReturn3.default)(this, _Button.apply(this, arguments));
3136
}
3237

3338
/*

lib/components/icon-fork.js

+15-10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
exports.__esModule = true;
44

5+
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
6+
7+
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
8+
9+
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
10+
11+
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
12+
13+
var _inherits2 = require('babel-runtime/helpers/inherits');
14+
15+
var _inherits3 = _interopRequireDefault(_inherits2);
16+
517
var _buttonSwitch = require('./button-switch');
618

719
var _buttonSwitch2 = _interopRequireDefault(_buttonSwitch);
@@ -12,24 +24,17 @@ var _icon2 = _interopRequireDefault(_icon);
1224

1325
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1426

15-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16-
17-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
18-
19-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
20-
2127
// import HammerJS from 'hammerjs'
2228

2329
require('../../css/blocks/icon-fork.postcss.css');
2430
var CLASSES = require('../../css/blocks/icon-fork.postcss.css.json');
2531

2632
var IconFork = function (_ButtonSwitch) {
27-
_inherits(IconFork, _ButtonSwitch);
33+
(0, _inherits3.default)(IconFork, _ButtonSwitch);
2834

2935
function IconFork() {
30-
_classCallCheck(this, IconFork);
31-
32-
return _possibleConstructorReturn(this, _ButtonSwitch.apply(this, arguments));
36+
(0, _classCallCheck3.default)(this, IconFork);
37+
return (0, _possibleConstructorReturn3.default)(this, _ButtonSwitch.apply(this, arguments));
3338
}
3439

3540
/*

0 commit comments

Comments
 (0)