ts rust zig deez
1.0.0
แน่นอนที่สุดเราต้องการเจ้าของรหัสมากขึ้น หากคุณต้องการให้การตรวจสอบสีเขียวเป็นรหัสภาษาที่แน่นอนโปรดเพิ่มตัวเองเป็นเจ้าของ หากได้รับการอนุมัติฉันจะรวม ฉันไม่สามารถตรวจสอบสิ่งเหล่านี้ทั้งหมดได้ -
การใช้งานใน TypeScript, Rust หรือ Zig ได้รับการสงวนและดูแลโดย Promeagen
สำหรับภาษาอื่น ๆ โปรดจำไว้ว่าก่อนมาก่อนให้บริการก่อน หากมีการใช้งานในภาษาที่คุณเลือกให้มีส่วนร่วม!
ถ้าไม่เริ่มต้นด้วยการคัดลอกโฟลเดอร์ Lang_Template:
cp -r .github/LANG_TEMPLATE/ < your_folder_name >
มันมาพร้อมกับ:
├── .gitignore # ignores all editor-specific or os-specific files, add additional stuff for your language
├── Dockerfile # for Docker builds
└── Makefile # convenient commands runner (make <cmd>) under *NIX systems
ตอนนี้นักวิ่งคำสั่งที่สะดวก ( .make.cmd <cmd>
) ภายใต้ Windows เป็นตัวเลือกที่สมบูรณ์และอยู่ในรูทของ .github/
ทั่วไป:
help
- ส่งออกคำสั่งทั้งหมดที่มีอยู่เช่นเดียวกับการเรียกใช้ make
หรือ make.cmd
โดยไม่มีอาร์กิวเมนต์ไม่มีนักเทียบท่า:
clean
fmt
lint
test
- ควรเรียกใช้การทดสอบที่มีอยู่ทั้งหมดready
- ควรเรียกใช้ fmt, การทดสอบมดผ้าสำลีนักเทียบท่า:
docker-build
สร้างงานสร้างdocker-ready
เรียกใช้บิลด์อิมเมจและดำเนินการ fmt
, lint
, คำสั่ง test
ภายใน นี่ถือว่ามี Makefile
ในรากของไดเรกทอรีภาษา
# without docker
make clean
make fmt
make lint
make test
make ready # runs fmt, lint and test
# docker, assuming there's a Dockerfile
make docker-build # makes the build
make docker-ready # runs fmt, lint and test in the built image
นี่ถือว่ามี make.cmd
ในรากของไดเรกทอรีภาษา
@ rem without docker
.make.cmd clean
.make.cmd fmt
.make.cmd lint
.make.cmd test
.make.cmd ready @ rem runs fmt, lint and test
@ rem docker, assuming there's a Dockerfile
.make.cmd docker-build @ rem makes the build
.make.cmd docker-ready @ rem runs fmt, lint and test in the built image