Getting Started
Installation
Install @heco-gen/features in your project:
bash
npm install @heco-gen/featuresQuick Start
1. Create a config file
Create hfg.config.json in your project root:
json
{
"folderNames": {
"components": "components",
"hooks": "hooks",
"services": "services",
"types": "types",
"validations": "validations",
"store": "store"
},
"basePath": "src/features"
}2. Generate your first feature
bash
npx heco generate user-profileThis creates:
txt
src/features/user-profile/
├── components/
│ ├── UserProfileList.tsx
│ └── UserProfileCard.tsx
├── hooks/
│ ├── useUserProfile.ts
│ └── useUserMutations.ts
├── services/
│ └── userProfileService.ts
├── types/
│ └── userProfileTypes.ts
├── validations/
│ └── userProfileSchema.ts
└── store/
└── userProfileStore.ts3. Verify
bash
npx heco listShows all available generators and their file structures.