fix(angular): amend wrong project name schema options to hint nx console to show a project dropdown (#11097)

This commit is contained in:
Leosvel Pérez Espinosa 2022-07-11 13:27:33 +01:00 committed by GitHub
parent 4a3a223d07
commit 9352f2ee98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 24 additions and 10 deletions

View File

@ -906,7 +906,8 @@
"type": "string", "type": "string",
"description": "The name of the library to create the secondary entry point for.", "description": "The name of the library to create the secondary entry point for.",
"x-prompt": "What library would you like to create the secondary entry point for?", "x-prompt": "What library would you like to create the secondary entry point for?",
"pattern": "^[a-zA-Z].*$" "pattern": "^[a-zA-Z].*$",
"$default": { "$source": "projectName" }
}, },
"skipModule": { "skipModule": {
"type": "boolean", "type": "boolean",
@ -948,7 +949,8 @@
}, },
"host": { "host": {
"type": "string", "type": "string",
"description": "The name of the host app to attach this remote app to." "description": "The name of the host app to attach this remote app to.",
"$default": { "$source": "projectName" }
}, },
"port": { "port": {
"type": "number", "type": "number",
@ -1750,7 +1752,8 @@
"type": "string", "type": "string",
"description": "The name of the application to generate the Module Federation configuration for.", "description": "The name of the application to generate the Module Federation configuration for.",
"$default": { "$source": "argv", "index": 0 }, "$default": { "$source": "argv", "index": 0 },
"x-prompt": "What app would you like to generate a Module Federation configuration for?" "x-prompt": "What app would you like to generate a Module Federation configuration for?",
"x-dropdown": "projects"
}, },
"mfType": { "mfType": {
"type": "string", "type": "string",
@ -1869,7 +1872,8 @@
"type": "string", "type": "string",
"description": "The name of the project.", "description": "The name of the project.",
"$default": { "$source": "argv", "index": 0 }, "$default": { "$source": "argv", "index": 0 },
"x-prompt": "What's the name of the project for which you want to generate stories?" "x-prompt": "What's the name of the project for which you want to generate stories?",
"x-dropdown": "projects"
}, },
"generateCypressSpecs": { "generateCypressSpecs": {
"type": "boolean", "type": "boolean",
@ -1910,7 +1914,8 @@
"name": { "name": {
"type": "string", "type": "string",
"description": "The name of the project.", "description": "The name of the project.",
"$default": { "$source": "argv", "index": 0 } "$default": { "$source": "argv", "index": 0 },
"x-dropdown": "projects"
}, },
"configureCypress": { "configureCypress": {
"type": "boolean", "type": "boolean",

View File

@ -20,7 +20,10 @@
"type": "string", "type": "string",
"description": "The name of the library to create the secondary entry point for.", "description": "The name of the library to create the secondary entry point for.",
"x-prompt": "What library would you like to create the secondary entry point for?", "x-prompt": "What library would you like to create the secondary entry point for?",
"pattern": "^[a-zA-Z].*$" "pattern": "^[a-zA-Z].*$",
"$default": {
"$source": "projectName"
}
}, },
"skipModule": { "skipModule": {
"type": "boolean", "type": "boolean",

View File

@ -22,7 +22,10 @@
}, },
"host": { "host": {
"type": "string", "type": "string",
"description": "The name of the host app to attach this remote app to." "description": "The name of the host app to attach this remote app to.",
"$default": {
"$source": "projectName"
}
}, },
"port": { "port": {
"type": "number", "type": "number",

View File

@ -13,7 +13,8 @@
"$source": "argv", "$source": "argv",
"index": 0 "index": 0
}, },
"x-prompt": "What app would you like to generate a Module Federation configuration for?" "x-prompt": "What app would you like to generate a Module Federation configuration for?",
"x-dropdown": "projects"
}, },
"mfType": { "mfType": {
"type": "string", "type": "string",

View File

@ -13,7 +13,8 @@
"$source": "argv", "$source": "argv",
"index": 0 "index": 0
}, },
"x-prompt": "What's the name of the project for which you want to generate stories?" "x-prompt": "What's the name of the project for which you want to generate stories?",
"x-dropdown": "projects"
}, },
"generateCypressSpecs": { "generateCypressSpecs": {
"type": "boolean", "type": "boolean",

View File

@ -12,7 +12,8 @@
"$default": { "$default": {
"$source": "argv", "$source": "argv",
"index": 0 "index": 0
} },
"x-dropdown": "projects"
}, },
"configureCypress": { "configureCypress": {
"type": "boolean", "type": "boolean",