概要
次のプロジェクトでも導入したいツールを備忘として残す
make
-
概要
オレオレコマンドを定義できる
git add. -> git commit などを一発で実行したいときに便利 -
使い方
- Makefileを定義する (サンプルはterraformの場合)
- Makefileと同じ階層でコマンドを実行する
Makefileサンプル
install:
asdf install
tflint --init
lint:
teraform fmt -recursive && \
terraform validate && \
tflint
init:
terraform init
plan:
terraform validate && \
terraform plan
apply:
terraform validate && \
terraform apply
下記で使用可能
make init
make plan
make apply
asdf
- 概要
必要なツールをコマンド一発でインストールできる - 使い方
- インストール
- .tool-versionsを定義
- .tool-versionsと同じ階層でasdf install 実行
.tool-versionsサンプル
nodejs 16.15.0
terraform 1.3.7
tflint 0.44.1
tfsec 1.28.1
npx git-cz
- 概要
commit時にprefixを強制する
commitが追いやすくなるため、個人的にはprefixをつけたい派
prefix適用漏れなどを防げる
デフォルトからのカスタマイズも可能 - 参考
https://rightcode.co.jp/blog/information-technology/git-cz-commit-message-format-unification-syain