Skip to content

Commit 8d6eb75

Browse files
author
Peter
committed
[Feature]add release script
1 parent b4a9d67 commit 8d6eb75

29 files changed

+2671
-34
lines changed

.babelrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"presets": [
3+
"@babel/preset-env",
4+
"@babel/preset-react",
5+
"@babel/preset-typescript"
6+
],
7+
"plugins": [
8+
[
9+
"@babel/plugin-proposal-decorators",
10+
{
11+
"legacy": true
12+
}
13+
],
14+
"@babel/plugin-proposal-class-properties"
15+
]
16+
}

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
/*.js
1+
/*.js
2+
/lib

.npmignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ build/
44
doc/
55
script/
66
node_modules/
7+
.vscode/
78
.DS_Store
8-
.npm-debug.log
9+
.babelrc
910
.gitignore
1011
.npmignore
1112
.eslintrc.js
13+
.eslintignore
1214
.tsconfig.json
1315
yarn.lock

lib/base/const.js

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
"use strict";
2+
3+
Object.defineProperty(exports, "__esModule", {
4+
value: true
5+
});
6+
exports.PER_SECOND = exports.DefaultOptions = exports.Hooks = exports.Events = exports.Event = exports.EventCollect = void 0;
7+
var EventCollect = ['pullUp', 'pullDown', 'pullingDown', 'cancelPullDown', 'resetPullUp', 'scroll', 'touchstart', 'touchmove', 'touchend'];
8+
exports.EventCollect = EventCollect;
9+
var _Event = {};
10+
var _Events = {};
11+
var _Hooks = {};
12+
EventCollect.forEach(function (event) {
13+
_Event[event] = event;
14+
_Events[event] = null;
15+
_Hooks[event] = [];
16+
});
17+
var Event = _Event;
18+
exports.Event = Event;
19+
var Events = _Events;
20+
exports.Events = Events;
21+
var Hooks = _Hooks;
22+
exports.Hooks = Hooks;
23+
var DefaultOptions = {
24+
container: null,
25+
isLockX: false,
26+
isUseBodyScroll: false,
27+
isScrollBar: true,
28+
throttle: false,
29+
throttleTime: 0,
30+
down: {
31+
enable: true,
32+
offset: 100,
33+
bounceTime: 300,
34+
dampRateBegin: 1,
35+
dampRate: 0.3
36+
},
37+
up: {
38+
enable: true,
39+
offset: 0,
40+
isAutoLoad: true,
41+
loadFull: {
42+
enable: true,
43+
loadCount: 3,
44+
time: 300
45+
}
46+
}
47+
};
48+
exports.DefaultOptions = DefaultOptions;
49+
var PER_SECOND = 1000 / 60;
50+
exports.PER_SECOND = PER_SECOND;

0 commit comments

Comments
 (0)