slush-y
Version:
A slush generator for Best Practices with AngularJS Fullstack applications.
62 lines (41 loc) • 1.19 kB
JavaScript
;(function(){
'use strict';
module.exports = modulePrompts;
function modulePrompts (generator, done) {
done( )
var __this = this;
// var prompts = moduleQuestions();
/**
* Find all the modules in the client/app/modules directory, and add them to the choices form the first question;
*/
// prompts = __this.findModules( prompts, __this.__modulesDir );
/**
* Ask the first round of questions
*/
// __this
// .prompt(prompts, promptCallback);
/**
* [promptCallback Callback invoked when prompt is finished]
* @param {Object} answers [A list of answers]
*/
function promptCallback ( answers ) {
/**
* Complete the prompt;
*/
done( answers )
}
}
function moduleQuestions(){
var questions = [{
type: 'list',
name: 'moduleName',
default: 'core',
message: 'Which module does this factory belongs to?',
choices: [{
name: 'core',
value: 'core'
}]
}];
return questions;
}
}).call(this);