Skip to content

Commit

Permalink
chore: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tinesoft committed Jun 24, 2024
1 parent 79832a5 commit 23be1a6
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 96 deletions.
24 changes: 5 additions & 19 deletions packages/nx-ktor/src/generators/preset/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,7 @@
"description": "Engine to use to serve the application.",
"type": "string",
"default": "NETTY",
"enum": [
"NETTY",
"JETTY",
"CIO",
"TOMCAT"
],
"enum": ["NETTY", "JETTY", "CIO", "TOMCAT"],
"x-prompt": {
"message": "Which engine(application server) would you like to use?",
"type": "list",
Expand Down Expand Up @@ -106,11 +101,7 @@
"description": "Configuratin Location.",
"type": "string",
"default": "CODE",
"enum": [
"YAML",
"HOCON",
"CODE"
],
"enum": ["YAML", "HOCON", "CODE"],
"x-prompt": {
"message": "Where would you like to put the configuration in?",
"type": "list",
Expand Down Expand Up @@ -185,13 +176,8 @@
"projectNameAndRootFormat": {
"description": "Whether to generate the project name and root directory as provided (`as-provided`) or generate them composing their values and taking the configured layout into account (`derived`).",
"type": "string",
"enum": [
"as-provided",
"derived"
]
"enum": ["as-provided", "derived"]
}
},
"required": [
"prjName"
]
}
"required": ["prjName"]
}
36 changes: 7 additions & 29 deletions packages/nx-micronaut/src/generators/preset/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@
"description": "Micronaut version.",
"type": "string",
"default": "current",
"enum": [
"current",
"snapshot",
"previous"
],
"enum": ["current", "snapshot", "previous"],
"x-prompt": {
"message": "Which version of Micronaut would you like to use?",
"type": "list",
Expand Down Expand Up @@ -110,11 +106,7 @@
"description": "Java version.",
"type": "string",
"default": "JDK_17",
"enum": [
"JDK_8",
"JDK_11",
"JDK_17"
],
"enum": ["JDK_8", "JDK_11", "JDK_17"],
"x-prompt": {
"message": "Which version of Java would you like to use?",
"type": "list",
Expand All @@ -139,11 +131,7 @@
"description": "Language of the project.",
"type": "string",
"default": "JAVA",
"enum": [
"JAVA",
"KOTLIN",
"GROOVY"
],
"enum": ["JAVA", "KOTLIN", "GROOVY"],
"x-prompt": {
"message": "Which language would you like to use?",
"type": "list",
Expand Down Expand Up @@ -175,11 +163,7 @@
"description": "Test framework to use.",
"type": "string",
"default": "JUNIT",
"enum": [
"JUNIT",
"SPOCK",
"KOTEST"
],
"enum": ["JUNIT", "SPOCK", "KOTEST"],
"x-prompt": {
"message": "Which test framework would you like to use?",
"type": "list",
Expand Down Expand Up @@ -249,14 +233,8 @@
"projectNameAndRootFormat": {
"description": "Whether to generate the project name and root directory as provided (`as-provided`) or generate them composing their values and taking the configured layout into account (`derived`).",
"type": "string",
"enum": [
"as-provided",
"derived"
]
"enum": ["as-provided", "derived"]
}
},
"required": [
"prjName",
"projectType"
]
}
"required": ["prjName", "projectType"]
}
17 changes: 4 additions & 13 deletions packages/nx-quarkus/src/generators/preset/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@
"description": "Java version.",
"type": "string",
"default": "17",
"enum": [
"17",
"21"
],
"enum": ["17", "21"],
"x-prompt": {
"message": "Which version of Java would you like to use?",
"type": "list",
Expand Down Expand Up @@ -162,14 +159,8 @@
"projectNameAndRootFormat": {
"description": "Whether to generate the project name and root directory as provided (`as-provided`) or generate them composing their values and taking the configured layout into account (`derived`).",
"type": "string",
"enum": [
"as-provided",
"derived"
]
"enum": ["as-provided", "derived"]
}
},
"required": [
"prjName",
"projectType"
]
}
"required": ["prjName", "projectType"]
}
43 changes: 8 additions & 35 deletions packages/nx-spring-boot/src/generators/preset/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@
"description": "Type of project.",
"default": "application",
"type": "string",
"enum": [
"application",
"library"
],
"enum": ["application", "library"],
"x-prompt": {
"message": "What kind of project are you generating?",
"type": "list",
Expand All @@ -48,11 +45,7 @@
"alias": "type",
"default": "maven-project",
"type": "string",
"enum": [
"maven-project",
"gradle-project",
"gradle-project-kotlin"
],
"enum": ["maven-project", "gradle-project", "gradle-project-kotlin"],
"x-prompt": {
"message": "Which build system would you like to use?",
"type": "list",
Expand All @@ -77,10 +70,7 @@
"description": "Packaging of the project.",
"type": "string",
"default": "jar",
"enum": [
"jar",
"war"
],
"enum": ["jar", "war"],
"x-prompt": {
"message": "Which packaging would you like to use?",
"type": "list",
Expand Down Expand Up @@ -108,14 +98,7 @@
}
],
"default": "17",
"enum": [
"1.8",
"11",
"17",
"19",
"21",
"22"
],
"enum": ["1.8", "11", "17", "19", "21", "22"],
"x-prompt": {
"message": "Which version of Java would you like to use?",
"type": "list",
Expand All @@ -140,11 +123,7 @@
"description": "Language of the project.",
"type": "string",
"default": "java",
"enum": [
"java",
"kotlin",
"groovy"
],
"enum": ["java", "kotlin", "groovy"],
"x-prompt": {
"message": "Which language would you like to use?",
"type": "list",
Expand Down Expand Up @@ -252,15 +231,9 @@
"projectNameAndRootFormat": {
"description": "Whether to generate the project name and root directory as provided (`as-provided`) or generate them composing their values and taking the configured layout into account (`derived`).",
"type": "string",
"enum": [
"as-provided",
"derived"
]
"enum": ["as-provided", "derived"]
}
},
"additionalProperties": true,
"required": [
"prjName",
"projectType"
]
}
"required": ["prjName", "projectType"]
}

0 comments on commit 23be1a6

Please sign in to comment.