ts rust zig deez
1.0.0
我們當然需要更多的代碼所有者。如果您想將綠色支票提供給某種語言的代碼,請添加自己為所有者。如果獲得批准,我將合併。我不可能審查所有這些。 :)
Primeagen本人保留和維護打字稿,Rust或Zig中的實現。
對於其他語言,請記住:先到先得。如果您選擇的語言實現了實現,請為此做出貢獻!
如果不是,請先複製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
現在,Windows下方的方便命令跑步者( .make.cmd <cmd>
)是完全可選的,並且位於.github/
一般的:
help
- 輸出所有可用命令,與運行make
或make.cmd
相同沒有Docker:
clean
fmt
lint
test
- 應運行所有可用測試ready
- 應該運行FMT,棉絨螞蟻測試Docker:
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