시작하기#
설치#
# 로컬 경로에서 활성화
dart pub global activate --source path .
# 설치 확인
bricksmith --version
첫 프로젝트 생성#
Interactive 모드 (권장)#
bricksmith create --type monorepo
프롬프트에 따라 프로젝트 정보를 입력하고, feature 브릭을 선택합니다.
Non-interactive 모드#
bricksmith create --type monorepo --no-interactive \
--name my_app \
--organization MyOrg \
--features home,community,notification,payment
Feature 적용#
기존 프로젝트에 feature를 추가할 수 있습니다:
# community feature 추가 (frontend + backend)
bricksmith apply --feature community
# entity 이름 커스터마이징
bricksmith apply --feature community \
--primary-entity Article \
--secondary-entity Reply
# backend 없이 frontend만
bricksmith apply --feature community --no-backend
설정 저장 및 재사용#
# 설정 저장
bricksmith create --type monorepo --save-config
# 저장된 설정 목록
bricksmith create-from-config --list
# 설정으로 생성
bricksmith create-from-config --config my_app