Skip to content
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

chore: speed up workflows #119

Merged
merged 17 commits into from
Sep 14, 2024
Merged

chore: speed up workflows #119

merged 17 commits into from
Sep 14, 2024

Conversation

afc163
Copy link
Member

@afc163 afc163 commented Sep 14, 2024

一切都选最快的。

  • 使用 happy-dom 代替 jsdom(还没完全换完)。
  • 移除 eslint,全面用 biome check。
  • 同步 antd 的 .dumi 目录。
  • 修复 husky 和 lint-staged。
  • 更换 GA 。
  • 新增 bun.lockb
  • 开启 mako

未来还可以做的。

  • jsdom 清理干净
  • jest 换 vitest

Summary by CodeRabbit

发布说明

  • 新功能

    • 更新了 PreviewBanner 组件,提升了中英文标语的表达。
    • 引入了 LinkButton 组件,简化了按钮渲染过程。
    • 新增了 ThoughtChainSenderPromptsConversationsBubble 组件。
  • 样式改进

    • 调整了 Logo 组件的样式,增加了间距并设置了图像尺寸。
    • 更新了 Loading 组件的结构,保持了其功能不变。
    • 新增了 .demo-logo.demo-logo-vertical 样式,优化了演示界面的视觉效果。
    • 修改了滚动条样式,提升了用户界面的美观性。
  • 配置更新

    • bunfig.toml 中添加了 peer = false 配置,以更好地管理依赖关系。
    • 更新了 package.json,调整了依赖项和脚本,提升了项目的可维护性。
    • 修改了 .gitignore 文件,去除了冗余条目,简化了文件管理。
    • 更新了 biome.json 配置,增强了 linter 设置和文件处理规则。
    • 更新了 Dependabot 配置,增强了对依赖更新的管理。

Copy link

github-actions bot commented Sep 14, 2024

Preview is ready

Copy link

cloudflare-workers-and-pages bot commented Sep 14, 2024

Deploying x with  Cloudflare Pages  Cloudflare Pages

Latest commit: da45c12
Status: ✅  Deploy successful!
Preview URL: https://72612685.x-73x.pages.dev
Branch Preview URL: https://chore-fast-workflow.x-73x.pages.dev

View logs

Copy link
Contributor

coderabbitai bot commented Sep 14, 2024

Walkthrough

Walkthrough

此次更改涉及多个文件,主要集中在组件的结构和功能更新、样式调整以及配置文件的修改。PreviewBanner 组件的口号文本进行了更新,并引入了新的 LinkButton 组件以简化渲染。Loading.tsx 文件的导入顺序进行了调整,而 Logo.tsx 文件则更新了图标的实现和样式。bunfig.tomlpackage.json 文件也进行了相应的配置和依赖管理更新,以提升项目的可维护性。此外,.gitignorebiome.json 文件也进行了相应的优化和调整。

Changes

文件路径 更改摘要
.dumi/pages/index/components/PreviewBanner/index.tsx 更新口号文本,使用新 LinkButton 组件,调整样式,更新 props 类型为不可变。
.dumi/theme/common/Loading.tsx 移动 React 导入语句,格式调整。
.dumi/theme/slots/Header/Logo.tsx 修改 Link 导入路径,添加 draggable 属性,更新图标样式,设置图标尺寸。
bunfig.toml 新增 [install] 部分,设置 peer = false
package.json 更新依赖管理,调整脚本,移除多个 ESLint 相关依赖,新增 @happy-dom/jest-environmenthappy-dom,更新 jsdom 版本。
.gitignore 移除与 Dumi 文档工具相关的条目,简化忽略文件列表。
biome.json 增加文件忽略规则,调整格式化设置,新增 linter 规则和 overrides 配置。
.dumi/global.css 新增 .demo-logo.demo-logo-vertical 类,修改滚动条样式。
.dumi/preset/components-changelog-cn.json 新增多个组件的 changelog 条目。
.dumi/preset/components-changelog-en.json 删除多个组件的 changelog 数据结构。
scripts/generate-token-meta.ts 修改 entryPoints 配置,移除特定的主题接口入口。
.github/dependabot.yml 重构依赖更新配置,新增多个依赖分组及 GitHub Actions 更新策略。

Poem

🐇 在代码的森林中跳跃,
新组件如花朵绽放,
样式更新如春风轻拂,
让我们共同庆祝这变化,
兔子欢快,代码闪亮! 🎉


Recent review details
Commits

Files that changed from the base of the PR and between 97542db and da45c12.

Files selected for processing (1)
  • .github/dependabot.yml (1 hunks)

Note

Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@afc163 afc163 changed the title chore: remove eslint chore: speed up workflows Sep 14, 2024
@afc163 afc163 force-pushed the chore/fast-workflow branch from 709f07b to 40eee0c Compare September 14, 2024 10:43
Copy link

socket-security bot commented Sep 14, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher

🚮 Removed packages: npm/@ant-design/[email protected], npm/@ant-design/[email protected], npm/@ant-design/[email protected], npm/@ant-design/[email protected], npm/@ant-design/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@biomejs/[email protected], npm/@codesandbox/[email protected], npm/@ctrl/[email protected], npm/@ianvs/[email protected], npm/@madccc/[email protected], npm/@microflash/[email protected], npm/@npmcli/[email protected], npm/@octokit/[email protected], npm/@qixian.cs/[email protected], npm/@rc-component/[email protected], npm/@rc-component/[email protected], npm/@size-limit/[email protected], npm/@stackblitz/[email protected], npm/@testing-library/[email protected], npm/@testing-library/[email protected], npm/@testing-library/[email protected], npm/@testing-library/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@typescript-eslint/[email protected], npm/@typescript-eslint/[email protected], npm/@umijs/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

@afc163 afc163 marked this pull request as ready for review September 14, 2024 10:51
@afc163 afc163 enabled auto-merge (squash) September 14, 2024 16:13
@ONLY-yours ONLY-yours self-requested a review September 14, 2024 16:21
@afc163 afc163 merged commit 9662b81 into main Sep 14, 2024
10 checks passed
@afc163 afc163 deleted the chore/fast-workflow branch September 14, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants