LoginSignup
0
0

More than 1 year has passed since last update.

次に何か作るなら導入したいツール

Posted at

概要

次のプロジェクトでも導入したいツールを備忘として残す

make

  • 概要
    オレオレコマンドを定義できる
    git add. -> git commit などを一発で実行したいときに便利

  • 使い方

    1. Makefileを定義する (サンプルはterraformの場合)
    2. 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

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0