diff --git a/generators/panel/index.js b/generators/panel/index.js index 4f7f388..15b1393 100644 --- a/generators/panel/index.js +++ b/generators/panel/index.js @@ -22,7 +22,10 @@ module.exports = class extends Generator { type: 'input', name: 'name', message: 'Your panel\'s name', - filter: _.kebabCase + filter: _.kebabCase, + validate(input) { + return input > 0; + } }]; return this.prompt(prompts).then(props => {