Skip to content

Commit

Permalink
fix: update usecase to UseCase nonop template
Browse files Browse the repository at this point in the history
  • Loading branch information
rsaz committed Aug 1, 2024
1 parent e29be35 commit e690cda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions expressots.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ import { ExpressoConfig, Pattern } from "./src/types";
const config: ExpressoConfig = {
sourceRoot: "src",
scaffoldPattern: Pattern.KEBAB_CASE,
opinionated: true,
scaffoldSchematics: {
opinionated: false,
/* scaffoldSchematics: {
entity: "model",
provider: "adapter",
controller: "controller",
usecase: "operation",
dto: "payload",
module: "group",
middleware: "exjs",
},
}, */
};

export default config;
5 changes: 4 additions & 1 deletion src/generate/utils/nonopininated-cmd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,10 @@ async function generateUseCase(
moduleName,
path,
fileName,
schematic: anyCaseToPascalCase(schematic),
schematic:
schematic === "usecase"
? "UseCase"
: anyCaseToPascalCase(schematic),
},
},
});
Expand Down

0 comments on commit e690cda

Please sign in to comment.