Skip to content

Commit

Permalink
Merge pull request #57 from expressots/refactor/adjust-usecase-nonop-…
Browse files Browse the repository at this point in the history
…scaffold

fix: update usecase to UseCase nonop template
  • Loading branch information
rsaz authored Aug 1, 2024
2 parents e29be35 + e690cda commit 9bb267c
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 9bb267c

Please sign in to comment.