change default case conversions for generated files

closes #196
This commit is contained in:
Kononnable 2019-09-15 20:06:36 +02:00
parent 9d1ba211bc
commit 4d07feab60
2 changed files with 10 additions and 6 deletions

View File

@ -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

View File

@ -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"