just 설치: justfile 작성, recipe 실행, make 비교

just 설치 후 justfile로 recipe를 돌리고 make와 구분한다.

lint·test·build를 README에만 두면 잊힙니다.just는 justfile에 recipe를 정의하고 just로 실행하는 러너입니다. macOS/Linux 설치, justfile 작성, recipe 실행, make 비교를 hereink 독자용으로 정리합니다.

검색어: just 설치 justfile recipe 실행 make 비교. just --list와 첫 recipe 실행까지 확인하면 됩니다.

설치brew · cargo
설정justfile
실행just
installjustfilejust test

just가 해결하는 것

발견 가능한 명령

just --list.

가벼운 오케스트레이션

변수·의존·인자.

공식: github.com/casey/just, just.systems.

설치

  1. 1
    macOS

    brew install just.

  2. 2
    Linux

    Arch pacman -S just, 또는 cargo install just.

  3. 3
    cargo

    ~/.cargo/bin on PATH.

  4. 4
    mise

    mise use -g just@latest.

justfile

test:
    cargo test

check: lint test
    echo "ok"

실행

just --list
just test

make 대비

justmake
역할태스크 러너타임스탬프 빌드
Windows문서·바이너리 양호GNU make/WSL
맞음
polyglot repo, 통합 dev/test.
make 유지
증분 C/C++ 빌드.
npm scripts와 중복?

recipe에서 npm run 호출 가능.

.env?

set dotenv-load (공식 매뉴얼).

명령 정리 후 한 장에

공간 만들기.

지금 시작