구성
ArchiCore는 구성 파일과 환경 변수를 통해 구성할 수 있습니다.
구성 파일
프로젝트 구성
프로젝트 루트의 .archicore/config.json에 위치:
{
"project": {
"name": "my-project",
"description": "멋진 프로젝트"
},
"index": {
"include": ["src/**/*", "lib/**/*"],
"exclude": ["node_modules", "dist", "*.test.ts"],
"languages": ["typescript", "javascript"]
},
"analysis": {
"maxFileSize": 1048576,
"maxFiles": 10000
}
}
전역 구성
~/.archicore/config.json에 위치:
{
"api": {
"baseUrl": "https://api.archicore.io/api",
"timeout": 30000
},
"cli": {
"theme": "dark",
"language": "ko"
}
}
환경 변수
| 변수 | 설명 |
|---|---|
ARCHICORE_API_KEY | 인증용 API 키 |
ARCHICORE_API_URL | 사용자 정의 API 엔드포인트 |
ARCHICORE_DEBUG | 디버그 로깅 활성화 |
ARCHICORE_NO_COLOR | 컬러 출력 비활성화 |
아키텍처 규칙
.archicore/rules.json에서 사용자 정의 규칙 정의:
{
"rules": [
{
"id": "no-circular-deps",
"name": "순환 종속성 금지",
"type": "dependency",
"severity": "error"
}
]
}
파일 무시
프로젝트 루트에 .archicoreignore 생성:
node_modules/
dist/
*.test.ts