FSD Scaffolding Protocol
For the given name ($ARGUMENTS) and layer (entities/features/widgets):
- •Create the directory structure:
- •
src/$LAYER/$NAME/ui/ - •
src/$LAYER/$NAME/model/ - •
src/$LAYER/$NAME/api/
- •
- •Create an
index.tsin the root of the slice to act as the Public API. - •Create a basic TypeScript type/interface in
model/types.ts. - •Create a skeleton React component in
ui/.
Output: A tree view of the created structure.