forked from alibaba/hooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade yarn to pnpm (alibaba#1656)
* chore: upgrade yarn to pnpm * fix: 修复 ci * chore: add ci install pnpm * chore: add ci install pnpm * chore: adjust ci node-version * chore: optimize the document * chore: optimize the document * chore: Optimization tools * chore: update dependencies * chore: update dependencies
- Loading branch information
Showing
22 changed files
with
19,823 additions
and
16,532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,17 +8,22 @@ jobs: | |
|
||
strategy: | ||
matrix: | ||
node-version: [12.x, 16.x] | ||
node-version: [14.x, 16.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: yarn intall, build, and test | ||
|
||
- name: pnpm run intall, build, and test | ||
run: | | ||
yarn run init | ||
yarn run test | ||
pnpm run init | ||
pnpm run test | ||
env: | ||
CI: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npm run pretty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
shamefully-hoist=true | ||
auto-install-peers=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,8 @@ English | [简体中文](https://github.com/alibaba/hooks/blob/master/README.zh- | |
$ npm install --save ahooks | ||
# or | ||
$ yarn add ahooks | ||
# or | ||
$ pnpm add ahooks | ||
``` | ||
|
||
## 🔨 Usage | ||
|
@@ -59,8 +61,8 @@ import { useRequest } from 'ahooks'; | |
```bash | ||
$ git clone [email protected]:alibaba/hooks.git | ||
$ cd hooks | ||
$ yarn run init | ||
$ yarn start | ||
$ pnpm run init | ||
$ pnpm start | ||
``` | ||
|
||
Open your browser and visit http://127.0.0.1:8000 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,8 @@ | |
$ npm install --save ahooks | ||
# or | ||
$ yarn add ahooks | ||
# or | ||
$ pnpm add ahooks | ||
``` | ||
|
||
## 🔨 使用 | ||
|
@@ -59,8 +61,8 @@ import { useRequest } from 'ahooks'; | |
```bash | ||
$ git clone [email protected]:alibaba/hooks.git | ||
$ cd hooks | ||
$ yarn run init | ||
$ yarn start | ||
$ pnpm run init | ||
$ pnpm start | ||
``` | ||
|
||
打开浏览器访问 http://127.0.0.1:8000 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,8 @@ footer: Open-source MIT Licensed | Copyright © 2019-present<br />Powered by [du | |
$ npm install --save ahooks | ||
# or | ||
$ yarn add ahooks | ||
# or | ||
$ pnpm add ahooks | ||
``` | ||
|
||
## 🔨 Usage | ||
|
@@ -51,8 +53,8 @@ import { useRequest } from 'ahooks'; | |
```bash | ||
$ git clone [email protected]:alibaba/hooks.git | ||
$ cd hooks | ||
$ yarn run init | ||
$ yarn start | ||
$ pnpm run init | ||
$ pnpm start | ||
``` | ||
|
||
Open your browser and visit http://127.0.0.1:8000 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,8 +51,8 @@ import { useRequest } from 'ahooks'; | |
```bash | ||
$ git clone [email protected]:alibaba/hooks.git | ||
$ cd hooks | ||
$ yarn run init | ||
$ yarn start | ||
$ pnpm run init | ||
$ pnpm start | ||
``` | ||
|
||
打开浏览器访问 http://127.0.0.1:8000 | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,26 +6,23 @@ | |
"url": "git+https://github.com/alibaba/hooks.git" | ||
}, | ||
"scripts": { | ||
"init": "rm -rf node_modules && yarn install && yarn run clean && yarn run bootstrap && yarn run build", | ||
"start": "yarn run dev", | ||
"init": "pnpm clean && pnpm install && pnpm run build", | ||
"start": "pnpm run dev", | ||
"dev": "dumi dev", | ||
"bootstrap": "lerna bootstrap", | ||
"clean": "lerna clean --yes", | ||
"build": "lerna run build", | ||
"clean": "rm -rf node_modules **/*/node_modules", | ||
"build": "pnpm -r --filter=./packages/* run build", | ||
"test": "jest", | ||
"coveralls": "jest --coverage --coverageReporters=text-lcov | coveralls", | ||
"lint": "eslint --ignore-pattern **/__tests__/* --ignore-pattern **/demo/* \"packages/*/src/**/*.{ts,tsx}\"", | ||
"pretty": "pretty-quick --staged", | ||
"build:doc": "dumi build", | ||
"pub:doc-surge": "surge ./dist --domain ahooks.js.org", | ||
"pub:doc-gitee": "cd ./dist && rm -rf .git && touch .spa && touch .nojekyll && git init && git remote add origin [email protected]:ahooks/ahooks.git && git add -A && git commit -m \"publish docs\" && git push origin master -f && echo https://gitee.com/ahooks/ahooks/pages", | ||
"pub:doc": "yarn run build:doc && yarn run pub:doc-surge && yarn run pub:doc-gitee", | ||
"pub": "yarn run build && lerna publish", | ||
"pub:beta": "yarn run build && lerna publish --dist-tag beta" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "pretty-quick --staged" | ||
} | ||
"pub:doc": "pnpm run build:doc && pnpm run pub:doc-surge && pnpm run pub:doc-gitee", | ||
"pub": "pnpm run build && pnpm run publish", | ||
"pub:beta": "pnpm run build && pnpm run publish --tag beta", | ||
"preinstall": "npx only-allow pnpm", | ||
"prepare": "husky install" | ||
}, | ||
"devDependencies": { | ||
"@ant-design/icons": "^4.6.2", | ||
|
@@ -55,15 +52,14 @@ | |
"gulp": "^4.0.2", | ||
"gulp-babel": "^8.0.0", | ||
"gulp-typescript": "^6.0.0-alpha.1", | ||
"husky": "^4.2.5", | ||
"husky": "^8.0.0", | ||
"jest": "^26.0.1", | ||
"jest-fetch-mock": "^3.0.3", | ||
"jest-localstorage-mock": "^2.4.18", | ||
"lerna": "4.x", | ||
"mockdate": "^3.0.2", | ||
"mockjs": "^1.1.0", | ||
"prettier": "^2.0.5", | ||
"pretty-quick": "^2.0.1", | ||
"pretty-quick": "^3.1.3", | ||
"react": "^16.8.6", | ||
"react-dom": "^16.8.6", | ||
"react-drag-listview": "^0.1.6", | ||
|
@@ -75,5 +71,6 @@ | |
"webpack": "^4.43.0", | ||
"webpack-cli": "^3.3.10", | ||
"webpack-merge": "^4.2.2" | ||
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
Oops, something went wrong.