Skip to content

Commit f16737e

Browse files
committed
[ Migrate ] Move JSDoc to "gh-pages" branch based on Travis CI
[ Optimize ] Upgrade upstream libraries
1 parent 8941896 commit f16737e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+341
-8828
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules/
22
package-lock.json
3+
docs/

.npmignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
Contributing.md
12
.editorconfig
23
build/
34
docs/
45
test/
6+
.travis.yml

.travis.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
branches:
2+
only:
3+
- master
4+
5+
language: node_js
6+
node_js:
7+
- lts/*
8+
cache:
9+
directories:
10+
- node_modules
11+
12+
install:
13+
- npm install
14+
script:
15+
- npm run document
16+
- cd ${FOLDER}
17+
- git init
18+
- git config user.name ${UID}
19+
- git config user.email ${EMAIL}
20+
- git add .
21+
- git commit -m "${MESSAGE}"
22+
- git push --force --quiet https://${TOKEN}@${GIT_URI}.git master:${BRANCH}

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# iQuery
22

3+
[![Build Status](https://travis-ci.com/TechQuery/iQuery.js.svg?branch=master)](https://travis-ci.com/TechQuery/iQuery.js)
4+
5+
36
兼容 [jQuery API](http://api.jquery.com/) 的 DOM / AJAX 基础库,基于原创的 ECMA / W3C polyfill 构建,并内置很多常用的 jQuery 扩展 API。
47

58
[![Join the chat at https://gitter.im/iQuery-js/Lobby](https://badges.gitter.im/iQuery-js/Lobby.svg)](https://gitter.im/iQuery-js/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
@@ -59,7 +62,7 @@
5962

6063
以下扩展已收录在本项目的 [**jQueryKit.js**](/master/jQueryKit.js) 中,方便配合其它 jQuery API 实现 ——
6164

62-
[【API 文档】](https://techquery.github.io/iQuery.js/)及更多变更:
65+
[【API 文档】](https://tech-query.me/iQuery.js/)及更多变更:
6366

6467
- 内置一个改进且向下兼容的 **$.browser 对象**,能通过 **直接比较版本号**来区分浏览器
6568
- 新增 **计时相关方法(秒基准)**—— `$.every()``$.wait()``$.start()``$.end()`

dist/iQuery.js

+20-7
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
if ((typeof define === 'function') && define.amd)
77
define('iQuery', factory);
88
else if (typeof module === 'object')
9-
return module.exports = factory();
9+
return module.exports = factory.call(global);
1010
else
11-
return this['iQuery'] = factory();
11+
return this['iQuery'] = factory.call(self);
1212

1313
})(function () {
1414

@@ -22,6 +22,19 @@ function outPackage(name) {
2222
return /^[^./]/.test(name);
2323
}
2424

25+
var require = (typeof module === 'object') ?
26+
function () {
27+
28+
return module.require.apply(module, arguments);
29+
} : (
30+
this.require || function (name) {
31+
32+
if (self[name] != null) return self[name];
33+
34+
throw ReferenceError('Can\'t find "' + name + '" module');
35+
}
36+
);
37+
2538
var _include_ = include.bind(null, './');
2639

2740
function include(base, path) {
@@ -2814,8 +2827,8 @@ var _module_ = {
28142827
};
28152828
})
28162829
: type === 'blur'
2817-
? 'focusout'
2818-
: 'focusin';
2830+
? 'focusout'
2831+
: 'focusin';
28192832
});
28202833
if ($.browser.modern) return; // Change of checked
28212834

@@ -3885,7 +3898,7 @@ var _module_ = {
38853898
/**
38863899
* HTML 执行器
38873900
*
3888-
* @author TechQuery <shiy007@qq.com>
3901+
* @author TechQuery
38893902
*
38903903
* @memberof $.prototype
38913904
* @function htmlExec
@@ -6466,7 +6479,7 @@ var _module_ = {
64666479
/**
64676480
* 对象树 递归遍历
64686481
*
6469-
* @author TechQuery <shiy007@qq.com>
6482+
* @author TechQuery
64706483
*
64716484
* @memberof $
64726485
*
@@ -7224,7 +7237,7 @@ var _module_ = {
72247237
* @module {function} iQuery
72257238
* @version 3.1 (2018-06-01) stable
72267239
*
7227-
* @copyright TechQuery <shiy2008@gmail.com> 2015-2018
7240+
* @copyright TechQuery 2015-2018
72287241
* @license GPL-2.0-or-later
72297242
*
72307243
* @see {@link http://jquery.com/ jQuery}

dist/iQuery.js.map

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

dist/iQuery.min.js

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

dist/jQueryKit.js

+18-5
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
if ((typeof define === 'function') && define.amd)
77
define('jQueryKit', ["jquery"], factory);
88
else if (typeof module === 'object')
9-
return module.exports = factory(require('jquery'));
9+
return module.exports = factory.call(global,require('jquery'));
1010
else
11-
return this['jQueryKit'] = factory(this['jquery']);
11+
return this['jQueryKit'] = factory.call(self,this['jquery']);
1212

1313
})(function (jquery) {
1414

@@ -22,6 +22,19 @@ function outPackage(name) {
2222
return /^[^./]/.test(name);
2323
}
2424

25+
var require = (typeof module === 'object') ?
26+
function () {
27+
28+
return module.require.apply(module, arguments);
29+
} : (
30+
this.require || function (name) {
31+
32+
if (self[name] != null) return self[name];
33+
34+
throw ReferenceError('Can\'t find "' + name + '" module');
35+
}
36+
);
37+
2538
var _include_ = include.bind(null, './');
2639

2740
function include(base, path) {
@@ -630,7 +643,7 @@ var _module_ = {
630643
/**
631644
* HTML 执行器
632645
*
633-
* @author TechQuery <shiy007@qq.com>
646+
* @author TechQuery
634647
*
635648
* @memberof $.prototype
636649
* @function htmlExec
@@ -3188,7 +3201,7 @@ var _module_ = {
31883201
/**
31893202
* 对象树 递归遍历
31903203
*
3191-
* @author TechQuery <shiy007@qq.com>
3204+
* @author TechQuery
31923205
*
31933206
* @memberof $
31943207
*
@@ -4643,7 +4656,7 @@ var _module_ = {
46434656
* @module {function} iQuery
46444657
* @version 3.1 (2018-06-01) stable
46454658
*
4646-
* @copyright TechQuery <shiy2008@gmail.com> 2015-2018
4659+
* @copyright TechQuery 2015-2018
46474660
* @license GPL-2.0-or-later
46484661
*
46494662
* @see {@link http://jquery.com/ jQuery}

0 commit comments

Comments
 (0)