ts rust zig deez
1.0.0
より多くのコード所有者が必要です。特定の言語のコードにグリーンチェックを与えたい場合は、所有者として自分自身を追加してください。承認された場合、合併します。これらすべてをレビューすることはできません。 :)
TypeScript、Rust、またはZigの実装は、Primeagen自身によって予約および維持されています。
他の言語については、覚えておいてください:最初に来て、最初のサーブ。選択した言語に実装が存在する場合は、貢献してください!
そうでない場合は、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、Lint Ant Testを実行する必要があります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