opensumi / codeblitz

Pure front-end IDE framework based on OpenSumi
https://codeblitz.opensumi.com
MIT License
190 stars 16 forks source link

refactor: optimize release workflow #199

Closed bytemain closed 1 month ago

bytemain commented 1 month ago

Types

Background or solution

之前发版依赖内网 cdn,改造后直接用公共 cdn(alipay/npmmirror)

ChangeLog

Summary by CodeRabbit

bytemain commented 1 month ago

/next

coderabbitai[bot] commented 1 month ago
📝 Walkthrough ## Walkthrough 此次更改主要涉及多个文件的修改和删除。`.gitignore` 文件新增了多个忽略项,包括与 Next.js、Nuxt.js 和 Gatsby 相关的缓存目录和构建输出文件,同时移除了对 `scripts/utils/_upload.js` 的忽略。`packages/common/src/cdn.ts` 文件引入了新的类型和函数,用于处理 CDN 资源的获取。其他文件的修改包括应用程序和编辑器配置的更新、Webpack 配置的调整以及一些资源文件的删除和更新。 ## Changes | 文件路径 | 更改摘要 | |----------------------------------------|------------------------------------------------------------------------------------------| | `.gitignore` | 新增多个忽略项,移除对 `scripts/utils/_upload.js` 的忽略。 | | `packages/common/src/cdn.ts` | 新增类型 `TComponentCDNType` 和 `IComponentCDNTypeMap`,新增 `CDN_TYPE_MAP` 常量和 `getResource` 函数。 | | `packages/common/src/index.ts` | 新增导出语句 `export * from './cdn';`。 | | `packages/core/src/api/createApp.tsx` | 移除 `webviewEndpoint` 属性,新增 `useBuiltinWebview` 属性。 | | `packages/core/src/api/createEditor.tsx` | 移除 `webviewEndpoint` 属性,新增 `useBuiltinWebview` 属性。 | | `packages/core/src/core/env.ts` | 更新 `EXT_WORKER_HOST` 常量,移除 `WEBVIEW_ENDPOINT` 和 `WEBVIEW_SCRIPT`。 | | `packages/sumi-core/package.json` | 更新 `files` 数组,新增 `"resources"`。 | | `packages/sumi-core/resources/manifest.json` | 更新 `worker-host` 条目,移除 `webview` 和 `webview/index.html` 条目。 | | `packages/sumi-core/resources/webview.25aac54e/index.html` | 删除文件。 | | `packages/sumi-core/resources/webview.9ae5c833.js` | 删除文件。 | | `packages/toolkit/package.json` | 更新 `build:host` 脚本,移除对 `webpack/config.webview.js` 的引用。 | | `packages/toolkit/webpack/config.build.js` | 移除 `fs` 模块导入,调整 `libBundle` 和 `globalBundle` 的优化设置。 | | `packages/toolkit/webpack/config.integration.js` | 移除 `__WEBVIEW_ENDPOINT__` 和 `__WEBVIEW_SCRIPT__` 的定义。 | | `packages/toolkit/webpack/config.worker.js` | 新增 JSDoc 注释,简化输出文件名格式,新增 `clean: true` 属性。 | | `scripts/build-assets.js` | 移除与资产构建和上传过程相关的多行代码,简化日志和清理逻辑。 | | `scripts/utils/upload.js` | 删除文件。 | | `typings/global/index.d.ts` | 新增 `IS_DEV` 属性,移除 `__WEBVIEW_ENDPOINT__` 和 `__WEBVIEW_SCRIPT__` 的声明。 | ## Suggested labels `⚙️ refactor` ## Suggested reviewers - Ricbet

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 - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)
🪧 Tips ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit , 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. ### Documentation and Community - Visit our [Documentation](https://coderabbit.ai/docs) for detailed information on how to use CodeRabbit. - Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.
opensumi[bot] commented 1 month ago

🎉 PR Next publish successful!

0.0.20241021032759-refaease.0

bytemain commented 1 month ago

测试通过:https://gw.alipayobjects.com/os/lib/codeblitzjs/ide-sumi-core/0.0.20241021032759-refaease.0/resources/worker-host.js