From 4d07feab605970750dbf017eac7f5341e8e63f6d Mon Sep 17 00:00:00 2001 From: Kononnable Date: Sun, 15 Sep 2019 20:06:36 +0200 Subject: [PATCH] change default case conversions for generated files closes #196 --- CHANGELOG.md | 4 ++++ src/index.ts | 12 ++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0edd8d5..c73a1c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Unreleased + +* change default case conversions for generated files (#196) + ## 0.3.5 * moved to ts-node - you can now use this library installed directly from github repo diff --git a/src/index.ts b/src/index.ts index e544ac9..4e9df15 100644 --- a/src/index.ts +++ b/src/index.ts @@ -112,19 +112,19 @@ function GetUtilParametersByArgs() { .option("cf", { alias: "case-file", choices: ["pascal", "param", "camel", "none"], - default: "none", + default: "pascal", describe: "Convert file names to specified case" }) .option("ce", { alias: "case-entity", choices: ["pascal", "camel", "none"], - default: "none", + default: "pascal", describe: "Convert class names to specified case" }) .option("cp", { alias: "case-property", choices: ["pascal", "camel", "none"], - default: "none", + default: "camel", describe: "Convert property names to specified case" }) .option("pv", { @@ -457,21 +457,21 @@ async function GetUtilParametersByInquirer() { const namingConventions = (await inquirer.prompt([ { choices: ["pascal", "param", "camel", "none"], - default: "none", + default: "pascal", message: "Convert file names to specified case:", name: "fileCase", type: "list" }, { choices: ["pascal", "camel", "none"], - default: "none", + default: "pascal", message: "Convert class names to specified case:", name: "entityCase", type: "list" }, { choices: ["pascal", "camel", "none"], - default: "none", + default: "camel", message: "Convert property names to specified case:", name: "propertyCase", type: "list"