Skip to content

Commit

Permalink
Merge pull request #2 from alibaba/master
Browse files Browse the repository at this point in the history
merge source
  • Loading branch information
Qkxinq authored Aug 7, 2020
2 parents 5c14221 + 2ac1967 commit 9afb64d
Show file tree
Hide file tree
Showing 63 changed files with 3,600 additions and 2,418 deletions.
24 changes: 17 additions & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,22 @@ module.exports = {
...fabric.default,
rules: {
...fabric.default.rules,
"no-restricted-syntax": "off",
"no-plusplus": "off",
"no-underscore-dangle": "off",
"consistent-return": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/no-object-literal-type-assertion": "off",
"consistent-return": "off",
'no-restricted-syntax': 'off',
'no-plusplus': 'off',
'no-underscore-dangle': 'off',
'consistent-return': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/no-object-literal-type-assertion': 'off',
'consistent-return': 'off',
},
plugins: [...fabric.default.plugins, 'react-hooks'],
rules: {
...fabric.default.rules,
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
},
parserOptions: {
...fabric.default.parserOptions,
project: './packages/**/tsconfig.json',
}
};
18 changes: 0 additions & 18 deletions .github/workflows/deploy-site.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: node_js
node_js:
- 'lts/*'
install:
- npm install
- npm run bootstrap
- npm install -g surge
script:
- npm run build:doc
- surge ./dist ahooks-$(git rev-parse --short HEAD).surge.sh
cache:
directories:
- 'node_modules'
12 changes: 9 additions & 3 deletions .umirc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default {
ssr: {},
// ssr: {},
exportStatic: {},
nodeModulesTransform: {
type: 'none',
Expand All @@ -19,7 +19,7 @@ export default {
'babel-plugin-import',
{
libraryName: '@alifd/next',
style: true,
style: false,
},
'fusion',
],
Expand All @@ -35,7 +35,13 @@ export default {
resolve: {
includes: ['docs', 'packages/hooks/src', 'packages/use-request'],
},
links: [{ rel: 'stylesheet', href: '/style.css' }],
links: [
{
rel: 'stylesheet',
href: 'https://unpkg.com/@alifd/[email protected]/dist/next.min.css',
},
{ rel: 'stylesheet', href: '/style.css' },
],
navs: {
'zh-CN': [
null,
Expand Down
45 changes: 42 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,48 @@ npm i ahooks --save
import { useRequest } from 'ahooks';
```

## 🖥 Development
## Core Team

<table>
<tbody>
<tr>
<td align="center">
<a target="_blank" href="https://github.com/alibaba/ice">
<img
width="32"
src="https://img.alicdn.com/tfs/TB1Jd.tb79l0K4jSZFKXXXFjpXa-482-264.png"
/>
<br>
<strong>ice</strong>
</a>
</td>
<td align="center">
<a target="_blank" href="https://github.com/umijs/umi">
<img
width="32"
style="vertical-align: -0.32em; margin-right: 8px;"
src="https://img.alicdn.com/tfs/TB1fhqaLAT2gK0jSZFkXXcIQFXa-132-130.png"
/>
<br>
<strong>umi</strong>
</a>
</td>
<td align="center">
<a target="_blank" href="https://www.alisports.com/">
<img
width="32"
style="vertical-align: -0.32em; margin-right: 8px;"
src="https://gw.alicdn.com/tfs/TB13XKjLuL2gK0jSZFmXXc7iXXa-205-59.png"
/>
<br>
<strong>Alisports</strong>
</a>
</td>
</tr>
</tbody>
</table>

## 🤝 Contributing

```
$ git clone [email protected]:alibaba/hooks.git
Expand All @@ -40,8 +81,6 @@ $ npm start
```
Open your browser and visit http://127.0.0.1:8001 , see more at Development.

## 🤝 Contributing

We welcome all contributions, please read our [CONTRIBUTING.MD](https://github.com/alibaba/hooks/blob/master/CONTRIBUTING.MD) first, let's build a better hooks library together.

## 👥 Discuss
Expand Down
47 changes: 43 additions & 4 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,48 @@ npm i ahooks --save
import { useRequest } from 'ahooks';
```

## 🖥 开发
## 开发团队

<table>
<tbody>
<tr>
<td align="center">
<a target="_blank" href="https://github.com/alibaba/ice">
<img
width="32"
src="https://img.alicdn.com/tfs/TB1Jd.tb79l0K4jSZFKXXXFjpXa-482-264.png"
/>
<br>
<strong>icejs</strong>
</a>
</td>
<td align="center">
<a target="_blank" href="https://github.com/umijs/umi">
<img
width="32"
style="vertical-align: -0.32em; margin-right: 8px;"
src="https://img.alicdn.com/tfs/TB1fhqaLAT2gK0jSZFkXXcIQFXa-132-130.png"
/>
<br>
<strong>UmiJS</strong>
</a>
</td>
<td align="center">
<a target="_blank" href="https://www.alisports.com/">
<img
width="32"
style="vertical-align: -0.32em; margin-right: 8px;"
src="https://gw.alicdn.com/tfs/TB13XKjLuL2gK0jSZFmXXc7iXXa-205-59.png"
/>
<br>
<strong>阿里体育</strong>
</a>
</td>
</tr>
</tbody>
</table>

## 🤝 参与贡献

```
$ git clone [email protected]:alibaba/hooks.git
Expand All @@ -40,11 +81,9 @@ $ npm start
```
打开浏览器访问 http://127.0.0.1:8001

## 🤝 贡献

我们欢迎所有人参与共建,请参考[CONTRIBUTING.MD](https://github.com/alibaba/hooks/blob/master/CONTRIBUTING.MD)

## 👥 讨论
## 👥 交流讨论

<img src="https://raw.githubusercontent.com/umijs/hooks/master/dingtalk.jpg" width="300" />

Expand Down
6 changes: 3 additions & 3 deletions docs/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ npm i ahooks --save
import { useRequest } from 'ahooks';
```
## Who is using ahooks
## Core Team
<table>
<tbody>
Expand All @@ -41,7 +41,7 @@ import { useRequest } from 'ahooks';
src="https://img.alicdn.com/tfs/TB1Jd.tb79l0K4jSZFKXXXFjpXa-482-264.png"
/>
<br>
<strong>icejs</strong>
<strong>ice</strong>
</a>
</td>
<td align="center">
Expand All @@ -52,7 +52,7 @@ import { useRequest } from 'ahooks';
src="https://img.alicdn.com/tfs/TB1fhqaLAT2gK0jSZFkXXcIQFXa-132-130.png"
/>
<br>
<strong>UmiJS</strong>
<strong>umi</strong>
</a>
</td>
<td align="center">
Expand Down
2 changes: 1 addition & 1 deletion docs/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ npm i ahooks --save
import { useRequest } from 'ahooks';
```
## 谁在使用
## 开发团队
<table>
<tbody>
Expand Down
Loading

0 comments on commit 9afb64d

Please sign in to comment.