Skip to content

Commit

Permalink
feat: remove the prompt to keep project level wrapper (false by def…
Browse files Browse the repository at this point in the history
…ault)
  • Loading branch information
tinesoft committed Jun 19, 2024
1 parent bc523a2 commit d3b89b3
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 36 deletions.
2 changes: 1 addition & 1 deletion packages/nx-ktor/src/generators/preset/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
"keepProjectLevelWrapper": {
"description": "Keep the `Maven` or `Gradle` wrapper files from child project (when generating a multi-module project). Follow this guide https://t.ly/dZelN for more information.",
"type": "boolean",
"default": true
"default": false
},
"ktorInitializrUrl": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,7 @@ export async function promptForMultiModuleSupport(tree: Tree, options: Normalize
initial: `${options.projectName}-parent`
}).then((a) => a['parentModuleName'])).replace(/\//g, '-');

options.keepProjectLevelWrapper = await prompt({
name: 'keepProjectLevelWrapper',
message:
`A root ${buildSystemName} wrapper will be added in the root module '${options.parentModuleName}'. Do you want to keep the one in the generated child module '${options.projectName}'?`,
type: 'confirm',
initial: false
}).then((a) => a['keepProjectLevelWrapper']);
options.keepProjectLevelWrapper ??= false;
}
}
else {
Expand Down
2 changes: 1 addition & 1 deletion packages/nx-ktor/src/generators/project/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
"keepProjectLevelWrapper": {
"description": "Keep the `Maven` or `Gradle` wrapper files from child project (when generating a multi-module project). Follow this guide https://t.ly/dZelN for more information.",
"type": "boolean",
"default": true
"default": false
},
"ktorInitializrUrl": {
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion packages/nx-micronaut/src/generators/preset/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@
"keepProjectLevelWrapper": {
"description": "Keep the `Maven` or `Gradle` wrapper files from child project (when generating a multi-module project). Follow this guide https://t.ly/ov0Y9 for more information.",
"type": "boolean",
"default": true
"default": false
},
"micronautLaunchUrl": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,7 @@ export async function promptForMultiModuleSupport(tree: Tree, options: Normalize
initial: `${options.projectName}-parent`
}).then((a) => a['parentModuleName'])).replace(/\//g, '-');

options.keepProjectLevelWrapper = await prompt({
name: 'keepProjectLevelWrapper',
message:
`A root ${buildSystemName} wrapper will be added in the root module '${options.parentModuleName}'. Do you want to keep the one in the generated child module '${options.projectName}'?`,
type: 'confirm',
initial: false
}).then((a) => a['keepProjectLevelWrapper']);
options.keepProjectLevelWrapper ??= false;
}
}
else {
Expand Down
2 changes: 1 addition & 1 deletion packages/nx-micronaut/src/generators/project/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
"keepProjectLevelWrapper": {
"description": "Keep the `Maven` or `Gradle` wrapper files from child project (when generating a multi-module project). Follow this guide https://t.ly/ov0Y9 for more information.",
"type": "boolean",
"default": true
"default": false
},
"micronautLaunchUrl": {
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion packages/nx-quarkus/src/generators/preset/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
"keepProjectLevelWrapper": {
"description": "Keep the `Maven` or `Gradle` wrapper files from child project (when generating a multi-module project). Follow this guide https://t.ly/TmKF- for more information.",
"type": "boolean",
"default": true
"default": false
},
"quarkusInitializerUrl": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,7 @@ export async function promptForMultiModuleSupport(tree: Tree, options: Normalize
initial: `${options.projectName}-parent`
}).then((a) => a['parentModuleName'])).replace(/\//g, '-');

options.keepProjectLevelWrapper = await prompt({
name: 'keepProjectLevelWrapper',
message:
`A root ${buildSystemName} wrapper will be added in the root module '${options.parentModuleName}'. Do you want to keep the one in the generated child module '${options.projectName}'?`,
type: 'confirm',
initial: false
}).then((a) => a['keepProjectLevelWrapper']);
options.keepProjectLevelWrapper ??= false;
}
}
else {
Expand Down
2 changes: 1 addition & 1 deletion packages/nx-quarkus/src/generators/project/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"keepProjectLevelWrapper": {
"description": "Keep the `Maven` or `Gradle` wrapper files from child project (when generating a multi-module project). Follow this guide https://t.ly/TmKF- for more information.",
"type": "boolean",
"default": true
"default": false
},
"quarkusInitializerUrl": {
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion packages/nx-spring-boot/src/generators/preset/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
"keepProjectLevelWrapper": {
"description": "Keep the `Maven` or `Gradle` wrapper files from child project (when generating a multi-module project). Follow this guide https://t.ly/yvsp1 for more information.",
"type": "boolean",
"default": true
"default": false
},
"springInitializerUrl": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,7 @@ export async function promptForMultiModuleSupport(tree: Tree, options: Normalize
initial: `${options.projectName}-parent`
}).then((a) => a['multiModuleName'])).replace(/\//g, '-');

options.keepProjectLevelWrapper = await prompt({
name: 'keepProjectLevelBuildSystemWrapper',
message:
`A root ${buildSystemName} wrapper will be added in the root module '${options.parentModuleName}'. Do you want to keep the one in the generated child module '${options.projectName}'?`,
type: 'confirm',
initial: false
}).then((a) => a['keepProjectLevelBuildSystemWrapper']);
options.keepProjectLevelWrapper ??= false;
}
}
else {
Expand Down
2 changes: 1 addition & 1 deletion packages/nx-spring-boot/src/generators/project/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
"keepProjectLevelWrapper": {
"description": "Keep the `Maven` or `Gradle` wrapper files from child project (when generating a multi-module project). Follow this guide https://t.ly/yvsp1 for more information.",
"type": "boolean",
"default": true
"default": false
},
"springInitializerUrl": {
"type": "string",
Expand Down

0 comments on commit d3b89b3

Please sign in to comment.