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.
설치
- 1macOS
brew install just. - 2Linux
Arch
pacman -S just, 또는cargo install just. - 3cargo
~/.cargo/binon PATH. - 4mise
mise use -g just@latest.
justfile
test:
cargo test
check: lint test
echo "ok"실행
just --list
just testmake 대비
| just | make | |
|---|---|---|
| 역할 | 태스크 러너 | 타임스탬프 빌드 |
| Windows | 문서·바이너리 양호 | GNU make/WSL |
- 맞음
- polyglot repo, 통합 dev/test.
- make 유지
- 증분 C/C++ 빌드.
npm scripts와 중복?
recipe에서 npm run 호출 가능.
.env?
set dotenv-load (공식 매뉴얼).