npm i -g @pronix/ttcodegen
{
"templatesDirectoryPath": "./templates",
"arguments": [],
"options": [
{
"name": "component",
"option": "-C",
"description": "Create react component"
},
{
"name": "service",
"option": "-S",
"description": "Create effector service"
}
]
}
"./ttc/templates/service/{{name}}Service.container.tsx.hbs"
$ ttc -S ./src/services createTask
📂 ./src/services/applyTask/
+ 📄 applyTaskService.types.ts
+ 📄 applyTaskService.models.ts
+ 📄 applyTaskService.container.tsx
+ 📄 applyTaskService.api.ts
+ 📄 index.ts