fix(misc): add regex pattern to schematics to prevent empty app/lib creation (#3396)

ISSUES CLOSED: #2924
This commit is contained in:
Jo Hanna Pearce 2020-07-31 15:44:31 +01:00 committed by GitHub
parent 7af13bbcbe
commit 53b69272eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 16 additions and 8 deletions

View File

@ -11,7 +11,8 @@
"$source": "argv",
"index": 0
},
"x-prompt": "What name would you like to use for the application?"
"x-prompt": "What name would you like to use for the application?",
"pattern": "^[a-zA-Z]{1}.*$"
},
"directory": {
"description": "The directory of the new application.",

View File

@ -11,7 +11,8 @@
"$source": "argv",
"index": 0
},
"x-prompt": "What name would you like to use for the library?"
"x-prompt": "What name would you like to use for the library?",
"pattern": "^[a-zA-Z]{1}.*$"
},
"directory": {
"type": "string",

View File

@ -11,7 +11,8 @@
"$source": "argv",
"index": 0
},
"x-prompt": "What name would you like to use for the node application?"
"x-prompt": "What name would you like to use for the node application?",
"pattern": "^[a-zA-Z]{1}.*$"
},
"directory": {
"description": "The directory of the new application.",

View File

@ -17,7 +17,8 @@
"$source": "argv",
"index": 0
},
"x-prompt": "What name would you like to use for the application?"
"x-prompt": "What name would you like to use for the application?",
"pattern": "^[a-zA-Z]{1}.*$"
},
"directory": {
"description": "The directory of the new application.",

View File

@ -25,7 +25,8 @@
"$source": "argv",
"index": 0
},
"x-prompt": "What name would you like to use for the application?"
"x-prompt": "What name would you like to use for the application?",
"pattern": "^[a-zA-Z]{1}.*$"
},
"directory": {
"description": "The directory of the new application.",

View File

@ -21,7 +21,8 @@
"$source": "argv",
"index": 0
},
"x-prompt": "What name would you like to use for the library?"
"x-prompt": "What name would you like to use for the library?",
"pattern": "^[a-zA-Z]{1}.*$"
},
"directory": {
"type": "string",

View File

@ -11,7 +11,8 @@
"$source": "argv",
"index": 0
},
"x-prompt": "What name would you like to use for the application?"
"x-prompt": "What name would you like to use for the application?",
"pattern": "^[a-zA-Z]{1}.*$"
},
"directory": {
"description": "The directory of the new application.",

View File

@ -17,7 +17,8 @@
"$source": "argv",
"index": 0
},
"x-prompt": "What name would you like to use for the library?"
"x-prompt": "What name would you like to use for the library?",
"pattern": "^[a-zA-Z]{1}.*$"
},
"directory": {
"type": "string",