create-ijp-archetype
v1.0.9
Published
A CLI tool to generate a new TypeScript repository and service
Downloads
731
Maintainers
Readme
create-ts-repository
A CLI tool to generate TypeScript repository pattern files.
Installation
npm install -g create-ts-repository
Usage
create-ts-repository [name/subpath] [folder?]
Examples:
# Membuat repository di folder src/repositories
npx ijp-repository Auth
# membuat repository di folder src/repositories/user
create-ts-repository User/Auth
# membuat Service di folder src/services
npx ijp-service Auth
# membuat Service di folder src/services/user
create-ts-service User/Auth
Output Structure
For command create-ts-repository User/Auth
:
src/repositories/
└── user/
└── authRepository.ts
Generated file content:
export class AuthRepository {}
export default AuthRepository;
License
MIT