Skip to content

Commit

Permalink
Refactor the order of the questions
Browse files Browse the repository at this point in the history
  • Loading branch information
eGavr committed Aug 19, 2014
1 parent 8234601 commit ced496a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,15 @@ BemGenerator.prototype.askFor = function askFor() {

return choices;
}
}, {
type: 'confirm',
name: 'design',
message: 'Use design + autoprefixer from library \'bem-components\'?',
default: true,
when: function(input) { // 'bem-components' ==> 'design'

return hasBemComponents(input.addLibraries);
}
}, {
type: 'checkbox',
name: 'platforms',
Expand All @@ -135,15 +144,6 @@ BemGenerator.prototype.askFor = function askFor() {
validate: function(input) {
return input.length > 0 ? true : 'Please, select something';
}
}, {
type: 'confirm',
name: 'design',
message: 'Use design + autoprefixer from library \'bem-components\'?',
default: true,
when: function(input) { // 'bem-components' ==> 'design'

return hasBemComponents(input.addLibraries);
}
}, {
type: 'list',
name: 'preprocessor',
Expand Down

0 comments on commit ced496a

Please sign in to comment.