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

支持检查项目开发环境是否正常 #119

Open
j10ccc opened this issue Oct 11, 2024 · 1 comment
Open

支持检查项目开发环境是否正常 #119

j10ccc opened this issue Oct 11, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@j10ccc
Copy link
Collaborator

j10ccc commented Oct 11, 2024

preinstall/postinstall 运行一段脚本,检查本地环境是否满足要求,并提供相应的辅助提示,有利于新人开发者上手项目。另外也支持单独调用来检查,如 npm run health

有这些要检查

  • 检查是否用了特定的包管理器,如 pnpm,来执行 install
  • 检查电脑上 node 版本和包管理器版本是否达到要求
  • 项目目录下需要存在 .env 并且里面存在的常量和 .env.sample 中的一致
  • 后续接入 miniprogram cli,检查开发者账号登录状态
  • 引导用户进入开发文档,排查问题
@j10ccc j10ccc added the enhancement New feature or request label Oct 11, 2024
@j10ccc
Copy link
Collaborator Author

j10ccc commented Oct 11, 2024

有遗漏的点可以补充,有个 5 条就可以开始开发了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant