Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 202
chore: standardize repository config#786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
97b9b13f89eb65a526879e837849b144c83cad7eb06a9f660692a7c46ebb6a501f4600d70dee3aa3bbaf5a6c6fe0873b3e0ac687745749c96226c0bd1775f81d27e6fdf02906fbeaa0228a431cf4e277464f0b5f986c4f690cbf5b8a2bd054e3dd54391962de31753f2708a4621f053eFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,23 @@ | ||
| // more config: https://d.umijs.org/config | ||
| import { defineConfig } from 'dumi'; | ||
| import path from 'path'; | ||
| const basePath = process.env.GITHUB_ACTIONS ? '/util/' : '/'; | ||
| const publicPath = process.env.GITHUB_ACTIONS ? '/util/' : '/'; | ||
| const basePath = process.env.GH_PAGES ? '/util/' : '/'; | ||
| const publicPath = basePath; | ||
| export default defineConfig({ | ||
| alias: { | ||
| '@rc-component/util$': path.resolve(__dirname, 'src'), | ||
| '@rc-component/util/es': path.resolve(__dirname, 'src'), | ||
| 'rc-util$': path.resolve(__dirname, 'src'), | ||
| 'rc-util/es': path.resolve(__dirname, 'src'), | ||
| }, | ||
| mfsu: false, | ||
| favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'], | ||
| themeConfig: { | ||
| name: 'Util', | ||
| logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4', | ||
| }, | ||
| outputPath: '.doc', | ||
| exportStatic: {}, | ||
| outputPath: 'docs-dist', | ||
| base: basePath, | ||
| publicPath, | ||
| alias: { | ||
| 'rc-util/es': path.resolve(__dirname, 'src'), | ||
| }, | ||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| github: ant-design | ||
| open_collective: ant-design |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,48 +1,19 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: npm | ||
| directory: "/" | ||
| schedule: | ||
| interval: daily | ||
| time: "21:00" | ||
| open-pull-requests-limit: 10 | ||
| ignore: | ||
| - dependency-name: eslint | ||
| versions: | ||
| - 7.18.0 | ||
| - 7.19.0 | ||
| - 7.20.0 | ||
| - 7.21.0 | ||
| - 7.22.0 | ||
| - 7.23.0 | ||
| - 7.24.0 | ||
| - dependency-name: "@types/jest" | ||
| versions: | ||
| - 26.0.20 | ||
| - 26.0.21 | ||
| - 26.0.22 | ||
| - dependency-name: react | ||
| versions: | ||
| - 17.0.1 | ||
| - dependency-name: "@types/react" | ||
| versions: | ||
| - 17.0.0 | ||
| - 17.0.1 | ||
| - 17.0.2 | ||
| - 17.0.3 | ||
| - dependency-name: "@types/react-dom" | ||
| versions: | ||
| - 17.0.0 | ||
| - 17.0.1 | ||
| - 17.0.2 | ||
| - dependency-name: react-dom | ||
| versions: | ||
| - 17.0.1 | ||
| - dependency-name: np | ||
| versions: | ||
| - 7.2.0 | ||
| - 7.3.0 | ||
| - 7.4.0 | ||
| - dependency-name: react-is | ||
| versions: | ||
| - 17.0.1 | ||
| - package-ecosystem: npm | ||
| directory: '/' | ||
| schedule: | ||
| interval: weekly | ||
| day: monday | ||
| time: '21:00' | ||
| timezone: Asia/Shanghai | ||
| open-pull-requests-limit: 10 | ||
| - package-ecosystem: github-actions | ||
| directory: '/' | ||
| schedule: | ||
| interval: weekly | ||
| day: monday | ||
| time: '21:00' | ||
| timezone: Asia/Shanghai | ||
| open-pull-requests-limit: 10 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,16 @@ | ||
| name: ✅ test | ||
| on: [push, pull_request] | ||
| on: | ||
| push: | ||
| branches: [master] | ||
| pull_request: | ||
| branches: [master] | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| test: | ||
| uses: react-component/rc-test/.github/workflows/test-npm.yml@main | ||
| secrets: inherit | ||
| uses: react-component/rc-test/.github/workflows/test-utoo.yml@main | ||
| secrets: | ||
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| name: React Doctor | ||
| on: | ||
| pull_request: | ||
| branches: [master] | ||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| concurrency: | ||
| group: react-doctor-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
| jobs: | ||
| react-doctor: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: millionco/react-doctor@0b4f4f4bd248a154e64eb508a48347f71154b3f3 | ||
| with: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| name: Surge Preview | ||
| on: | ||
| pull_request: | ||
| branches: [master] | ||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| statuses: write | ||
| concurrency: | ||
| group: surge-preview-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
| jobs: | ||
| preview: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Check Surge token | ||
| id: surge-token | ||
| env: | ||
| SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }} | ||
| run: | | ||
| if [ -n "$SURGE_TOKEN" ]; then | ||
| echo "enabled=true" >> "$GITHUB_OUTPUT" | ||
| else | ||
| echo "enabled=false" >> "$GITHUB_OUTPUT" | ||
| fi | ||
| - name: Install dependencies | ||
| if: ${{ steps.surge-token.outputs.enabled == 'true' }} | ||
| run: npm install --legacy-peer-deps --ignore-scripts --no-audit --loglevel=warn | ||
| - name: Build preview | ||
| if: ${{ steps.surge-token.outputs.enabled == 'true' }} | ||
| run: npm run build | ||
| - uses: afc163/surge-preview@bf90a5a86111f6311ca42f0a5a0f80fb0fb03cec | ||
| if: ${{ steps.surge-token.outputs.enabled == 'true' }} | ||
| env: | ||
| SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }} | ||
| NPM_CONFIG_LEGACY_PEER_DEPS: 'true' | ||
| with: | ||
| dist: docs-dist | ||
| failOnError: false | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| surge_token: ${{ env.SURGE_TOKEN }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -30,13 +30,14 @@ pnpm-lock.yaml | ||
| yarn.lock | ||
| .doc | ||
| bun.lockb | ||
| # umi | ||
| .umi | ||
| .umi-production | ||
| .umi-test | ||
| .env.local | ||
| .dumi/tmp | ||
| .dumi/tmp-test | ||
| .dumi/tmp-production | ||
| es | ||
| docs-dist | ||
| .vercel | ||
afc163 marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1 @@ | ||
| #!/usr/bin/env sh | ||
| ."$(dirname -- "$0")/_/husky.sh" | ||
| npx lint-staged |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| node_modules | ||
| coverage | ||
| docs-dist | ||
| dist | ||
| es | ||
| lib | ||
| .dumi/tmp | ||
| .dumi/tmp-production | ||
| .vercel | ||
| package-lock.json | ||
| pnpm-lock.yaml | ||
| yarn.lock | ||
| bun.lockb | ||
| *.log |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.