Merged
Conversation
- 改为构建和部署 test-app 的打包示例 - 部署路径从 packages/vreo/docs 改为 packages/test-app/dist - 工作流名称更新为 Deploy Examples - 示例包含:index.html, index-react.html 等多个示例页面
- 构建的 lib 使用 babel transform-runtime 插件 - 需要 @babel/runtime 作为运行时依赖 - 修复 test-app 构建时无法解析 babel runtime helpers 的问题
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
问题
之前的配置错误地将 TypeDoc 生成的 API 文档部署到 GitHub Pages,但实际应该部署的是 test-app 的打包示例。
修正内容
修改
.github/workflows/docs.yml之前(错误):
Deploy Documentationpnpm run docs(生成 API 文档)./packages/vreo/docs(API 文档)现在(正确):
Deploy Examplespnpm test:build(构建示例应用)./packages/test-app/dist(示例页面)test-app 包含的示例
打包后的
dist目录包含以下示例页面:index.html- 基础播放器示例index-react.html- React 组件示例index-react-dynamic.html- 动态加载示例index-react-partial.html- 部分加载示例index-react-playController.html- PlayController 示例测试
pnpm test:build成功packages/test-app/dist相关
这是对 #31 的修正。