verify
โดย facebook
การตรวจสอบก่อนคอมมิตสำหรับการมีส่วนร่วมใน React พร้อมการตรวจสอบชนิดและทดสอบแบบขนาน ทำงานจัดรูปแบบและตรวจสอบโค้ดตามลำดับ หยุดเมื่อพบข้อผิดพลาดครั้งแรกเพื่อจับปัญหาตั้งแต่เนิ่นๆ ดำเนินการตรวจสอบชนิดและชุดทดสอบคู่ (source และ www) แบบขนานโดยใช้ซับเอเจนต์เพื่อประสิทธิภาพ รองรับอาร์กิวเมนต์รูปแบบการทดสอบแบบเลือกได้เพื่อกรองว่าการทดสอบใดจะทำงาน ให้รายงานข้อผิดพลาดโดยละเอียดพร้อมคำแนะนำการแก้ไขเมื่อขั้นตอนใดล้มเหลว
npx skills add https://github.com/facebook/react --skill verifyVerification
Run all verification steps.
Arguments:
- $ARGUMENTS: Test pattern for the test step
Instructions
Run these first in sequence:
- Run
yarn prettier- format code (stop if fails) - Run
yarn linc- lint changed files (stop if fails)
Then run these with subagents in parallel:
- Use
/flowto type check (stop if fails) - Use
/testto test changes in source (stop if fails) - Use
/test wwwto test changes in www (stop if fails)
If all pass, show success summary. On failure, stop immediately and report the issue with suggested fixes.