UNPKG

generator-angular-blueprint

Version:

Yeoman angular generator that allows you to override global templates with your own!

20 lines (15 loc) 534 B
var strings = require('underscore.string'); module.exports = function prompting(destPath) { var done = this.async(); this.destDirectory = (this.config.get('appDir') || 'client') + '/' + destPath + strings.dasherize(this.name); var opts = { type : 'input', name : 'directory', message: 'Where should I generate "' + strings.dasherize(this.name) + '"?', default: this.destDirectory }; this.prompt(opts, function (answers) { this.destDirectory = answers.directory; done(); }.bind(this)); };