Created
February 3, 2016 05:29
-
-
Save micahgodbolt/554197edcd897b2e6ce9 to your computer and use it in GitHub Desktop.
yeoman when
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var prompts = [ | |
{ | |
type: 'list', | |
name: 'type', | |
message: 'What category does this belong to?', | |
choices: ['blogs', 'books', 'podcasts', 'talks', 'tools', 'videos'] | |
}, | |
{ | |
when: function (response) { | |
return response.type == 'blogs'; | |
}, | |
type: 'input', | |
name: 'blog_name', | |
message: 'Name of the blog', | |
}, | |
{ | |
type: 'input', | |
name: 'title', | |
message: 'Title', | |
}, | |
{ | |
type: 'input', | |
name: 'description', | |
message: 'Description', | |
}, | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment