Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Aug 21, 2025

根据代码库最新状态和 PR review comments,更新了 .github/copilot-instructions.md 文件以准确反映当前的现代化技术栈,并优先使用 PNPM 包管理器。

主要变更

包管理器优先级调整

  • PNPM 优先: 全局优先使用 PNPM 命令(pnpm installpnpm devpnpm test 等)
  • NPM 兼容性: 保持对 NPM 的完全兼容性,添加了兼容性说明
  • 开发流程: 更新所有开发命令以优先使用 PNPM

文档格式改进

  • 包名格式化: 使用行内代码块包裹包名(如 mobx-github)以提高可读性
  • 命令简化: 使用 PNPM 命令简写格式(如 pnpm build 而非 pnpm run build
  • 一致性: 确保整个文档中的包管理器命令使用一致

技术栈完整更新

  • 现代架构: TypeScript + WebCell v3 + MobX + Parcel 2 + Bootstrap 5 + BeerCSS
  • 构建系统: Parcel 2 零配置构建工具
  • 代码质量: ESLint 9 + TypeScript ESLint 集成
  • API 集成: mobx-github 包用于 GitHub REST API v3(计划迁移到 OAuth token 系统)

开发体验优化

# 现在优先使用的命令
pnpm install     # 安装依赖
pnpm dev         # 启动开发服务器
pnpm test        # 代码检查和编译
pnpm build       # 生产构建

所有命令和验证步骤都已在当前代码库中测试通过,确保指导文件与实际项目状态完全一致。

Fixes #9.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…ture

Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com>
Copilot AI changed the title [WIP] 更新 GitHub copilot instruction 文件 更新 GitHub copilot instruction 文件以反映现代化架构 Aug 21, 2025
Copilot AI requested a review from TechQuery August 21, 2025 11:01
Copilot finished work on behalf of TechQuery August 21, 2025 11:01
Copy link
Owner

@TechQuery TechQuery left a comment

Choose a reason for hiding this comment

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

@copilot 修改一下这些细节

…ormatting

Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Aug 21, 2025

@copilot 修改一下这些细节

Updated the copilot instructions with all requested details:

  • Prioritized PNPM commands globally while maintaining NPM compatibility
  • Wrapped package names like mobx-github in code blocks
  • Added compatibility notes explaining PNPM/NPM usage
  • Updated all development workflow commands
    Commit: dc9c438

Copilot AI changed the title 更新 GitHub copilot instruction 文件以反映现代化架构 更新 GitHub copilot instruction 文件:优先使用 PNPM 并改进包名格式 Aug 21, 2025
Copilot finished work on behalf of TechQuery August 21, 2025 16:26
Copilot AI requested a review from TechQuery August 21, 2025 16:26
Copy link
Owner

@TechQuery TechQuery left a comment

Choose a reason for hiding this comment

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

@copilot 通篇修改相同问题

- Install dependencies: `pnpm install` (requires Node.js, takes ~1-2 minutes)
- Start development server: `pnpm dev` (starts Parcel dev server in ~5-10 seconds, NEVER CANCEL)
- Access application: `http://localhost:1234` (Parcel default port)
- **Build for production**: `pnpm run build` (creates optimized bundle with PWA support)
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
- **Build for production**: `pnpm run build` (creates optimized bundle with PWA support)
- **Build for production**: `pnpm build` (creates optimized bundle with PWA support)

项目中的 NPM scripts 作者通常不会与现有子命令重名,所以可以用简写。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to use shorthand format pnpm build instead of pnpm run build throughout the file. Applied the same pattern to all PNPM commands for consistency. Commit: 4f99aa6

…uctions

Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Aug 21, 2025

@copilot 通篇修改相同问题

Updated all PNPM commands throughout the file to use shorthand format consistently (pnpm build, pnpm dev, pnpm test, etc.). Commit: 4f99aa6

Copilot AI changed the title 更新 GitHub copilot instruction 文件:优先使用 PNPM 并改进包名格式 更新 GitHub copilot instruction 文件:优先使用 PNPM 并改进命令格式 Aug 21, 2025
Copilot AI requested a review from TechQuery August 21, 2025 16:51
Copilot finished work on behalf of TechQuery August 21, 2025 16:51
@TechQuery TechQuery changed the title 更新 GitHub copilot instruction 文件:优先使用 PNPM 并改进命令格式 [optimize] GitHub copilot instruction Aug 21, 2025
@TechQuery TechQuery changed the title [optimize] GitHub copilot instruction [optimize] upgrade GitHub copilot instruction Aug 21, 2025
@TechQuery TechQuery marked this pull request as ready for review August 21, 2025 17:16
@TechQuery TechQuery merged commit bc715c8 into main Aug 21, 2025
@TechQuery TechQuery deleted the copilot/fix-9 branch August 21, 2025 17:18
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.

更新 GitHub copilot instruction 文件

2 participants