FSD 아키텍처 - fsd-cli
IT/공통라이브러리 2025. 4. 10. 10:54FSD 아키텍처의 폴더 구성을 하기 우해서는 여러가지 폴더를 생성하고 공개 API 설정을 위한 index.js entry point를 구성해야한다.
하지만 이러한 작업을 간단히 하기 위해서는 아래의 도구를 사용할 수 있다.
https://github.com/feature-sliced/cli
GitHub - feature-sliced/cli: Utility to quickly generate layers, slices, and segments from Feature-Sliced Design.
Utility to quickly generate layers, slices, and segments from Feature-Sliced Design. - feature-sliced/cli
github.com
npm add -g @feature-sliced/cli
fsd [layout 명] [slice 명] --segments [세그먼트 파일 명...]
명칭은 위 이미지를 참고하여 사용을 하면된다.
fsd entities client --segments ui api
shared|s [options] [segments...] Generate the Shared layer
entities|e [options] [slices...] Generate the Entities layer
features|f [options] [slices...] Generate the Features layer
widgets|w [options] [slices...] Generate the Widgets layer
pages|p [options] [slices...] Generate the Pages layer
app|a [options] [segments...] Generate the App layer
FSD 아키텍처 - 공식 사이트 (0) | 2025.04.09 |
---|---|
소스코드 정리 - 주석 (0) | 2025.01.09 |
grid 레이아웃 구성 (0) | 2024.12.12 |
editor.js + nextjs header 이슈 (0) | 2024.12.11 |
레이아웃 구성 연구 - divider 2 (0) | 2024.12.10 |