-
Notifications
You must be signed in to change notification settings - Fork 170
chore: standardize repository config #361
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
Open
afc163
wants to merge
27
commits into
master
Choose a base branch
from
codex/standardize-rc-config
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
bbca1c7
chore: standardize repository config
afc163 ec16320
chore: address review feedback
afc163 129262e
chore: fix surge preview inputs
afc163 cfe5019
chore: address AI review feedback
afc163 be558d1
docs: standardize README release details
afc163 5a51454
docs: clarify Ant Design ecosystem note
afc163 5e42665
docs: refine README usage and ecosystem note
afc163 b425b8c
ci: isolate surge preview token
afc163 8a704be
docs: add Chinese README
afc163 2597425
docs: add Ant Design logo to README
afc163 5341593
docs: refine bilingual README branding
afc163 c18bb90
chore: standardize rc tooling and docs
afc163 a7cfa75
chore: address standardization review comments
afc163 f128609
ci: update GitHub Actions versions
afc163 14baf82
ci: use resolvable CodeQL action ref
afc163 4e87a53
ci: use test-utoo workflow from main
afc163 d860a63
ci: use actions checkout v7
afc163 b3f5b37
chore: standardize package metadata
afc163 921093d
ci: standardize dependabot updates
afc163 c099201
chore: refine preview workflow ignores
afc163 a7d4cb1
chore: add father config
afc163 729be25
docs: document dumi dev server port
afc163 cc2519f
chore: standardize husky configuration
afc163 2c394ec
chore: standardize package type entry
afc163 2db4e0f
docs: normalize readme badges
afc163 37de53c
ci: limit reusable workflow secrets
afc163 552ae56
ci: restore reusable workflow compatibility
afc163 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -1,8 +1,21 @@ | ||
| import { defineConfig } from 'dumi'; | ||
| import path from 'path'; | ||
|
|
||
| const basePath = process.env.GH_PAGES ? '/virtual-list/' : '/'; | ||
| const publicPath = basePath; | ||
|
|
||
| export default defineConfig({ | ||
| alias: { | ||
| '@rc-component/virtual-list$': path.resolve(__dirname, 'src'), | ||
| '@rc-component/virtual-list/es': path.resolve(__dirname, 'src'), | ||
| }, | ||
| mfsu: false, | ||
| favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'], | ||
| themeConfig: { | ||
| name: 'Tree', | ||
| name: 'Virtual List', | ||
| logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4', | ||
| }, | ||
| outputPath: '.doc', | ||
| outputPath: 'docs-dist', | ||
| base: basePath, | ||
| publicPath, | ||
| }); | ||
This file contains hidden or 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,5 @@ | ||
| import { defineConfig } from 'father'; | ||
|
|
||
| export default defineConfig({ | ||
| plugins: ['@rc-component/father-plugin'], | ||
| }); |
This file contains hidden or 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 @@ | ||
| github: ant-design | ||
| open_collective: ant-design |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,41 +1,19 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: npm | ||
| directory: "/" | ||
| schedule: | ||
| interval: daily | ||
| time: "21:00" | ||
| open-pull-requests-limit: 10 | ||
| ignore: | ||
| - dependency-name: np | ||
| versions: | ||
| - 7.2.0 | ||
| - 7.3.0 | ||
| - 7.4.0 | ||
| - dependency-name: "@types/react" | ||
| versions: | ||
| - 17.0.0 | ||
| - 17.0.1 | ||
| - 17.0.2 | ||
| - 17.0.3 | ||
| - dependency-name: "@types/jest" | ||
| versions: | ||
| - 26.0.20 | ||
| - 26.0.21 | ||
| - 26.0.22 | ||
| - dependency-name: react | ||
| versions: | ||
| - 16.14.0 | ||
| - 17.0.1 | ||
| - dependency-name: "@types/react-dom" | ||
| versions: | ||
| - 17.0.0 | ||
| - 17.0.1 | ||
| - 17.0.2 | ||
| - dependency-name: typescript | ||
| versions: | ||
| - 4.1.3 | ||
| - 4.1.4 | ||
| - 4.1.5 | ||
| - 4.2.2 | ||
| - 4.2.3 | ||
| - 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 |
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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,15 @@ | ||
| name: ✅ test | ||
|
|
||
| on: | ||
| push: | ||
| branches: [master] | ||
| pull_request: | ||
| branches: [master] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| test: | ||
| uses: react-component/rc-test/.github/workflows/test-utoo.yml@main | ||
| secrets: inherit |
This file contains hidden or 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,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 contains hidden or 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,47 @@ | ||
| 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 --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 }} | ||
| with: | ||
| dist: docs-dist | ||
| failOnError: false | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| surge_token: ${{ env.SURGE_TOKEN }} |
This file contains hidden or 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 hidden or 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 @@ | ||
| npx lint-staged |
This file contains hidden or 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,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 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.