Skip to content

feat: 优化和修复 demo 相关的问题 - #63

Merged
pearlwang1106 merged 6 commits into
masterfrom
remove-no-need-scripts
Nov 3, 2026
Merged

pearlwang1106 merged 6 commits into
masterfrom
remove-no-need-scripts

Conversation

@hustcc

@hustcc hustcc commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

This pull request refactors the development workflow, documentation, and build scripts to streamline the contributor experience and remove legacy playground code. The main changes include removing the old playground/ directory and related scripts, updating documentation to reflect the new workflow, and simplifying build and lint scripts. It also updates the GitHub Actions workflows to use the new site build process.

Build and Workflow Updates:

  • The dev script now starts the Next.js docs site and examples from site/, instead of the old Vite-based playground. The ci and site scripts are removed, and contributors are instructed to run individual verification scripts (lint, typecheck, test, build, size). (package.json, CONTRIBUTING.md, README.md, README.zh-CN.md) [1] [2] [3] [4] [5] [6]

  • GitHub Actions workflows (deploy.yml, preview.yml) are updated to build the site from the correct directory and use npm run build in site/. [1] [2]

Codebase Cleanup:

  • The entire playground/ directory and its demo/capture scripts are removed, as all examples and dev servers are now handled by the new docs site. (playground/capture-demo.html, playground/capture-demo.ts, playground/capture.html, playground/capture.ts) [1] [2] [3] [4]

  • The ESLint config is updated to stop ignoring the playground/ directory, since it no longer exists. (eslint.config.js)

Documentation Improvements:

  • All contributor and user documentation is updated to reflect the new workflow and scripts, ensuring clarity for both English and Chinese readers. (CONTRIBUTING.md, README.md, README.zh-CN.md) [1] [2] [3] [4] [5]

- 删除 package.json 中的 ci 脚本
- 更新 CONTRIBUTING.md、README 和 README.zh-CN.md 中的验证命令说明
- 在站点品牌标识中添加 Lite 标签样式
@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

✅ Preview is ready!

PR preview ✅ Ready ✅ Ready
🔗 Preview https://antvis-G6Lite-preview-pr-63.surge.sh
📝 Commit29390f4
⏱️ Build time0.011s
📦 Size73.5 MB (+651.3 KB ⬆️) · 2742 files
🪵 LogsView logs
📱 MobileScan to open preview on mobile

↩️ Previous: ⚡️ 29390f4 · antvis-G6Lite-preview-pr-63.surge.sh (open ↗) · 2026-11-03 08:09:20 UTC

🤖 Powered by surge-preview

- 将裁剪记录文件移至脚本目录
- 添加首页关系图数据说明文档
- 在首页包体积测量中显示与 G6 的对比百分比
- 移除示例源码生成脚本及相关构建步骤
@hustcc hustcc changed the title Remove no need scripts feat: 优化和修复 demo 相关的问题 Nov 3, 2026
@pearlwang1106
pearlwang1106 merged commit c7d746e into master Nov 3, 2026
3 checks passed
@pearlwang1106
pearlwang1106 deleted the remove-no-need-scripts branch November 3, 2026 08:15
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