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

feat: auto import css plugin #2613

Merged
merged 21 commits into from
Nov 10, 2024
Merged

Conversation

oasis-cloud
Copy link
Collaborator

@oasis-cloud oasis-cloud commented Sep 24, 2024

🤔 这个变动的性质是?

  • 新特性提交
  • 日常 bug 修复
  • 站点、文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • TypeScript 定义更新
  • 包体积优化
  • 性能优化
  • 功能增强
  • 国际化改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他改动(是关于什么的改动?)

🔗 相关 Issue

💡 需求背景和解决方案

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • fork仓库代码是否为最新避免文件冲突
  • Files changed 没有 package.json lock 等无关文件

Summary by CodeRabbit

  • 新功能

    • 引入了 @nutui/nutui-react-auto-import 包,支持按需导入组件样式文件。
    • 新增了对 Rollup、Vite、Webpack 等构建工具的支持。
  • 文档

    • 更新了 README.md,增加了使用指南和示例。
  • 许可证

    • 添加了 MIT 许可证,允许用户使用、复制、修改和分发软件。
  • 测试

    • 新增了针对 Rollup 的测试用例。
  • 配置

    • 引入了 Babel、TypeScript 和 Vitest 的配置文件。

Copy link

codecov bot commented Sep 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.98%. Comparing base (301a9e0) to head (aefd0a7).
Report is 2 commits behind head on V3.0.

Additional details and impacted files
@@           Coverage Diff           @@
##             V3.0    #2613   +/-   ##
=======================================
  Coverage   83.98%   83.98%           
=======================================
  Files         221      221           
  Lines       17867    17867           
  Branches     2676     2676           
=======================================
  Hits        15005    15005           
  Misses       2857     2857           
  Partials        5        5           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@oasis-cloud oasis-cloud changed the base branch from next to dev-harmony September 26, 2024 11:32
@oasis-cloud oasis-cloud marked this pull request as ready for review September 26, 2024 11:33
Copy link

coderabbitai bot commented Sep 26, 2024

Walkthrough

此次更改涉及多个文件的新增和配置更新,主要集中在 packages/nutui-auto-import 目录下。新增了 .gitignoreLICENSEREADME.mdbabel.config.jsonpackage.json、多个 TypeScript 配置文件以及测试文件。这些文件的引入和修改为该包提供了必要的配置、文档和测试支持,确保其在不同环境下的兼容性与功能性。

Changes

文件路径 更改摘要
packages/nutui-auto-import/.gitattributes 添加了新行以指定所有文件应视为文本,并使用 LF 作为行结束符。
packages/nutui-auto-import/.gitignore 新增 .gitignore 文件,指定忽略的文件和目录模式。
packages/nutui-auto-import/LICENSE 添加了 MIT 许可证,声明软件的使用、复制、修改和分发权限。
packages/nutui-auto-import/README.md 新增部分,详细说明包的按需导入组件样式文件的功能及示例。
packages/nutui-auto-import/babel.config.json 新增 Babel 配置文件,指定使用 @babel/preset-react 预设。
packages/nutui-auto-import/package.json 新增 package.json 文件,包含包的元数据和配置。
packages/nutui-auto-import/src/api.ts 添加导出语句,表明该文件应视为模块。
packages/nutui-auto-import/src/core/options.ts 新增 Options 接口和相关函数,定义选项和解析逻辑。
packages/nutui-auto-import/src/index.ts 引入插件以支持自动导入功能,并定义相关方法。
packages/nutui-auto-import/src/esbuild.ts 新增文件,导出 NutUIAutoImportesbuild 属性。
packages/nutui-auto-import/src/rolldown.ts 新增文件,导出 NutUIAutoImportrolldown 属性。
packages/nutui-auto-import/src/rollup.ts 新增文件,导出 NutUIAutoImportrollup 属性。
packages/nutui-auto-import/src/rspack.ts 新增文件,导出 NutUIAutoImportrspack 属性。
packages/nutui-auto-import/src/vite.ts 新增文件,导出 NutUIAutoImportvite 属性。
packages/nutui-auto-import/src/webpack.ts 新增文件,导出 NutUIAutoImportwebpack 属性。
packages/nutui-auto-import/tests/fixtures/basic.jsx 新增一个 React 组件,导出名为 A 的功能组件。
packages/nutui-auto-import/tests/rollup.test.ts 新增 Rollup 测试套件,封装对 *.jsx 文件的测试。
packages/nutui-auto-import/tsconfig.json 新增 TypeScript 配置文件,指定编译选项。
packages/nutui-auto-import/tsup.config.ts 新增 tsup 的配置文件,指定入口点和输出格式。
packages/nutui-auto-import/vitest.config.ts 新增 Vitest 配置文件,设置测试环境。
.gitignore 添加 .vite 目录的忽略条目。
pnpm-workspace.yaml packages 列表中新增 packages/nutui-auto-import

Poem

🐰 在兔子洞里欢跳跃,
新文件如花儿绽放,
许可证和配置齐上阵,
测试与文档共辉煌。
让我们一起庆祝这变化,
NutUI 未来更辉煌! 🌟


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 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>, please review it.
    • 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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @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.

@oasis-cloud oasis-cloud changed the title WIP: auto import css plugin feat: auto import css plugin Sep 26, 2024
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 12

🧹 Outside diff range and nitpick comments (9)
packages/nutui-auto-import/src/rollup.ts (1)

3-3: 默认导出看起来不错,但可以考虑增加一些注释

默认导出使用类型断言确保了类型安全,这是一个很好的做法。为了提高代码的可读性和可维护性,您可以考虑添加一个简短的注释来解释这个导出的用途。

建议添加注释:

+ // 导出 NutUIAutoImport 的 rollup 方法作为默认导出
export default NutUIAutoImport.rollup as typeof NutUIAutoImport.rollup
packages/nutui-auto-import/tests/fixtures/basic.jsx (1)

1-1: 移除未使用的导入

当前代码中导入了 Button 组件,但在文件中并未使用。建议移除未使用的导入以优化代码。

建议应用以下更改:

-import { Button, Cell } from '@nutui/nutui-react'
+import { Cell } from '@nutui/nutui-react'
packages/nutui-auto-import/tsup.config.ts (1)

1-11: 配置文件看起来结构良好,但可以考虑一些改进

这个 tsup 配置文件整体结构清晰,涵盖了主要的构建选项。以下是一些观察和建议:

  1. 入口点配置使用了通配符,这可能会包含不需要的文件。考虑明确指定入口文件。
  2. 目标环境设置为 Node.js 18.12,确保这与项目的最低支持版本一致。
  3. 没有看到 minify 选项,如果需要最小化输出,可以添加此选项。
  4. 可以考虑添加 sourcemap 选项,以便于调试。

建议考虑以下改进:

 import { defineConfig } from 'tsup'

 export default defineConfig({
-  entry: ['./src/*.ts'],
+  entry: ['./src/index.ts'], // 或其他明确的入口文件
   format: ['cjs', 'esm'],
   target: 'node18.12',
   splitting: true,
   cjsInterop: true,
   clean: true,
   dts: true,
+  minify: true,
+  sourcemap: true,
 })

这些更改将使配置更加明确和全面。

packages/nutui-auto-import/tests/rollup.test.ts (3)

1-5: 导入看起来很好,但建议添加注释说明 @sxzz/test-utils 的用途。

导入的模块适合设置 Rollup 测试环境。使用 node:path 确保了与较新版本 Node.js 的兼容性。然而,@sxzz/test-utils 不是一个广泛使用的库。

建议添加一个简短的注释,解释为什么选择使用 @sxzz/test-utils,以及它在这个测试套件中的具体作用。这将有助于其他开发者理解代码的意图和依赖关系。


7-9: 测试套件结构良好,但可以添加更多注释以提高可读性。

测试套件的结构使用了 Vitest 的 describe 函数和异步函数,这对于处理异步测试是正确的。testFixtures 函数的使用看起来也是正确的。

建议添加以下改进:

  1. testFixtures 函数添加注释,解释其功能和参数的作用。
  2. 解释为什么使用 import.meta.dirname 而不是 __dirname
  3. 考虑添加一个简短的注释,说明这个测试套件的整体目的。

这些添加将有助于其他开发者更快地理解测试的结构和目的。

Also applies to: 22-24


10-21: Rollup 构建配置看起来不错,但可以考虑一些改进。

Rollup 构建配置适合测试 NutUIAutoImport 插件。使用 snapshot 进行输出比较是一个好方法。

考虑以下建议来改进代码:

  1. 将 NutUIAutoImport 的配置选项提取为一个常量对象,这样可以在多个测试中重用。
const nutUIAutoImportOptions = {
  libraryName: '@nutui/nutui-react',
  style: 'css',
  taro: false,
};

// 然后在测试中使用
NutUIAutoImport(nutUIAutoImportOptions),
  1. 添加注释解释为什么 taro 选项被设置为 false

  2. 考虑添加更多的测试用例,覆盖不同的 NutUIAutoImport 配置选项。

这些改进将增加代码的可维护性和测试覆盖率。

packages/nutui-auto-import/package.json (1)

79-88: 脚本配置全面,建议添加文档生成脚本

scripts 字段包含了开发所需的所有常见任务,如 lint、build、test 等。使用 bumpp 进行版本管理是个好做法。prepublishOnly 脚本确保了发布前会重新构建包,这很重要。

建议:考虑添加一个生成文档的脚本,例如:

"docs": "typedoc --out docs src"

这将有助于保持文档的最新状态。

packages/nutui-auto-import/src/core/options.ts (1)

3-9: 建议为 Options 接口添加注释

为了提高代码的可读性和可维护性,建议为 Options 接口的每个属性添加 JSDoc 注释,帮助其他开发者理解各个选项的作用。

packages/nutui-auto-import/src/index.ts (1)

36-54: 未使用的变量 components

在第 36 行声明了变量 components,但在后续代码中未使用。建议删除未使用的变量,以保持代码简洁。

可以删除未使用的变量:

- const components = []
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 471061b and bed37e6.

⛔ Files ignored due to path filters (3)
  • packages/nutui-auto-import/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
  • packages/nutui-auto-import/tests/__snapshots__/rollup.test.ts.snap is excluded by !**/*.snap
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (22)
  • packages/nutui-auto-import/.editorconfig (1 hunks)
  • packages/nutui-auto-import/.gitattributes (1 hunks)
  • packages/nutui-auto-import/.gitignore (1 hunks)
  • packages/nutui-auto-import/LICENSE (1 hunks)
  • packages/nutui-auto-import/README.md (1 hunks)
  • packages/nutui-auto-import/babel.config.json (1 hunks)
  • packages/nutui-auto-import/package.json (1 hunks)
  • packages/nutui-auto-import/src/api.ts (1 hunks)
  • packages/nutui-auto-import/src/core/options.ts (1 hunks)
  • packages/nutui-auto-import/src/esbuild.ts (1 hunks)
  • packages/nutui-auto-import/src/index.ts (1 hunks)
  • packages/nutui-auto-import/src/rolldown.ts (1 hunks)
  • packages/nutui-auto-import/src/rollup.ts (1 hunks)
  • packages/nutui-auto-import/src/rspack.ts (1 hunks)
  • packages/nutui-auto-import/src/vite.ts (1 hunks)
  • packages/nutui-auto-import/src/webpack.ts (1 hunks)
  • packages/nutui-auto-import/tests/fixtures/basic.jsx (1 hunks)
  • packages/nutui-auto-import/tests/rollup.test.ts (1 hunks)
  • packages/nutui-auto-import/tsconfig.json (1 hunks)
  • packages/nutui-auto-import/tsup.config.ts (1 hunks)
  • packages/nutui-auto-import/vitest.config.ts (1 hunks)
  • pnpm-workspace.yaml (1 hunks)
✅ Files skipped from review due to trivial changes (14)
  • packages/nutui-auto-import/.editorconfig
  • packages/nutui-auto-import/.gitattributes
  • packages/nutui-auto-import/.gitignore
  • packages/nutui-auto-import/LICENSE
  • packages/nutui-auto-import/README.md
  • packages/nutui-auto-import/babel.config.json
  • packages/nutui-auto-import/src/api.ts
  • packages/nutui-auto-import/src/esbuild.ts
  • packages/nutui-auto-import/src/rolldown.ts
  • packages/nutui-auto-import/src/rspack.ts
  • packages/nutui-auto-import/src/vite.ts
  • packages/nutui-auto-import/src/webpack.ts
  • packages/nutui-auto-import/tsconfig.json
  • packages/nutui-auto-import/vitest.config.ts
🧰 Additional context used
🪛 yamllint
pnpm-workspace.yaml

[error] 4-4: no new line character at the end of file

(new-line-at-end-of-file)

🔇 Additional comments (6)
packages/nutui-auto-import/src/rollup.ts (1)

1-1: 导入语句看起来不错!

导入语句简洁明了,符合最佳实践。

packages/nutui-auto-import/package.json (4)

27-29: 主入口点配置正确

main、module 和 types 字段的配置正确,支持 CommonJS 和 ES 模块,并提供了 TypeScript 类型定义。这是现代 JavaScript 包的良好实践。


30-75: 导出配置全面且灵活

exports 字段的配置非常全面,为不同的构建系统(如 Vite、Webpack、Rollup 等)提供了专门的入口点。同时支持 CommonJS 和 ES 模块格式,这种配置方式非常灵活,能够满足各种项目的需求。catch-all 导出确保了所有文件都可以被访问。这是一个优秀的配置示例。


76-78: 发布配置正确

publishConfig 设置为 public access 是正确的,这确保了包可以作为公共 npm 包发布。


115-117: Node.js 版本要求合理

将最低 Node.js 版本要求设置为 18.12.0 是合理的。这个版本是一个较新的 LTS 版本,可以确保访问现代 JavaScript 特性和improved性能。这个选择在保持兼容性和利用新特性之间取得了很好的平衡。

packages/nutui-auto-import/src/index.ts (1)

32-34: 确认 this.parse 方法的可用性

在第 34 行,使用了 this.parse(code) 方法,并添加了 // @ts-ignore 注释。请确保在当前插件环境中,this.parse 方法是可用的。如果不可用,可能需要使用其他解析方式,如直接使用 @babel/parser

packages/nutui-auto-import/tests/fixtures/basic.jsx Outdated Show resolved Hide resolved
packages/nutui-auto-import/package.json Outdated Show resolved Hide resolved
packages/nutui-auto-import/package.json Outdated Show resolved Hide resolved
packages/nutui-auto-import/package.json Outdated Show resolved Hide resolved
packages/nutui-auto-import/src/core/options.ts Outdated Show resolved Hide resolved
packages/nutui-auto-import/src/index.ts Outdated Show resolved Hide resolved
packages/nutui-auto-import/src/index.ts Outdated Show resolved Hide resolved
packages/nutui-auto-import/src/index.ts Outdated Show resolved Hide resolved
packages/nutui-auto-import/src/index.ts Outdated Show resolved Hide resolved
@oasis-cloud oasis-cloud changed the base branch from dev-harmony to V3.0 November 7, 2024 02:10
@github-actions github-actions bot added the 3.x label Nov 7, 2024
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Outside diff range and nitpick comments (3)
pnpm-workspace.yaml (1)

3-3: 建议在文件末尾添加换行符

根据 YAML 规范和最佳实践,建议在文件末尾添加一个换行符。

建议应用以下修改:

packages:
  - 'packages/nutui-codemod'
  - 'packages/nutui-auto-import'
+
🧰 Tools
🪛 yamllint

[error] 3-3: no new line character at the end of file

(new-line-at-end-of-file)

packages/nutui-auto-import/src/core/options.ts (2)

24-24: 建议扩展文件匹配模式

当前的 include 默认值 /\.[cm]?[jt]sx?$/ 只匹配 JavaScript/TypeScript 文件。考虑到项目可能使用 Vue 文件,建议添加对 .vue 文件的支持。

-    include: options.include || [/\.[cm]?[jt]sx?$/],
+    include: options.include || [/\.[cm]?[jt]sx?$/, /\.vue$/],

28-28: 建议优化 style 属性的默认值处理

当前的实现方式不够直观。建议使用更明确的条件判断来处理默认值。

-    style: options.style === 'css' ? 'css' : true,
+    style: options.style ?? true,
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 5cfda40 and e9729a7.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (6)
  • .gitignore (1 hunks)
  • packages/nutui-auto-import/package.json (1 hunks)
  • packages/nutui-auto-import/src/core/options.ts (1 hunks)
  • packages/nutui-auto-import/src/index.ts (1 hunks)
  • packages/nutui-auto-import/tests/fixtures/basic.jsx (1 hunks)
  • pnpm-workspace.yaml (1 hunks)
✅ Files skipped from review due to trivial changes (2)
  • .gitignore
  • packages/nutui-auto-import/package.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/nutui-auto-import/src/index.ts
🧰 Additional context used
🪛 eslint
packages/nutui-auto-import/tests/fixtures/basic.jsx

[error] 1-1: 'Button' is defined but never used.

(unused-imports/no-unused-imports)


[error] 4-4: 'React' must be in scope when using JSX

(react/react-in-jsx-scope)

🪛 yamllint
pnpm-workspace.yaml

[error] 3-3: no new line character at the end of file

(new-line-at-end-of-file)

🔇 Additional comments (3)
pnpm-workspace.yaml (1)

2-3: 工作区配置更改正确!

新增的 packages/nutui-auto-import 包路径配置正确,与现有的工作区结构保持一致。

🧰 Tools
🪛 yamllint

[error] 3-3: no new line character at the end of file

(new-line-at-end-of-file)

packages/nutui-auto-import/tests/fixtures/basic.jsx (1)

3-5: ⚠️ Potential issue

添加必要的 React 导入并优化组件实现

当前实现存在以下问题:

  1. 缺少必要的 React 导入
  2. 组件命名仍然过于简单,可读性差

建议修改如下:

+import React from 'react';
 import { Cell } from '@nutui/nutui-react'

-export const A = () => {
+export const TestCell = () => {
   return <Cell>Test</Cell>
 }
🧰 Tools
🪛 eslint

[error] 4-4: 'React' must be in scope when using JSX

(react/react-in-jsx-scope)

packages/nutui-auto-import/src/core/options.ts (1)

1-9: 接口设计清晰且类型定义合理!

Options 接口的设计符合插件配置的需求,属性类型选择恰当:

  • include/exclude 使用 FilterPattern 类型适合文件过滤
  • enforce 的联合类型确保了正确的钩子时序
  • style 的类型设计支持了 CSS 按需加载的灵活配置

@@ -0,0 +1,5 @@
import { Button, Cell } from '@nutui/nutui-react'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

移除未使用的导入

Button 组件已导入但未在代码中使用,建议删除以保持代码整洁。

建议修改如下:

-import { Button, Cell } from '@nutui/nutui-react'
+import { Cell } from '@nutui/nutui-react'
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
import { Button, Cell } from '@nutui/nutui-react'
import { Cell } from '@nutui/nutui-react'
🧰 Tools
🪛 eslint

[error] 1-1: 'Button' is defined but never used.

(unused-imports/no-unused-imports)

# Conflicts:
#	pnpm-lock.yaml
# Conflicts:
#	pnpm-lock.yaml
# Conflicts:
#	pnpm-lock.yaml
# Conflicts:
#	pnpm-lock.yaml
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (1)
pnpm-workspace.yaml (1)

3-3: 建议在文件末尾添加换行符

根据 YAML 规范和最佳实践,建议在文件末尾添加一个换行符。

 packages:
   - 'packages/nutui-codemod'
-  - 'packages/nutui-auto-import'
+  - 'packages/nutui-auto-import'
+
🧰 Tools
🪛 yamllint

[error] 3-3: no new line character at the end of file

(new-line-at-end-of-file)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between f44ceff and aefd0a7.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (1)
  • pnpm-workspace.yaml (1 hunks)
🧰 Additional context used
🪛 yamllint
pnpm-workspace.yaml

[error] 3-3: no new line character at the end of file

(new-line-at-end-of-file)

🔇 Additional comments (1)
pnpm-workspace.yaml (1)

2-3: 新包路径添加正确!

新增的 packages/nutui-auto-import 包路径遵循了现有的命名约定,与 PR 的目标相符。

🧰 Tools
🪛 yamllint

[error] 3-3: no new line character at the end of file

(new-line-at-end-of-file)

@xiaoyatong xiaoyatong merged commit d92c50a into jdf2e:V3.0 Nov 10, 2024
6 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Nov 11, 2024
20 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants