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