UNPKG

generator-angular-blueprint

Version:

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

21 lines (15 loc) 669 B
'use strict'; var blueprints = require('yeoman-blueprints'), prompt = require('../../lib/prompt-install-path'), destination = require('../../lib/destination'), tplOptions = require('../../lib/tpl-options'); module.exports = blueprints.NamedBase.extend({ prompting: function () { prompt.call(this, 'app/views/') }, writing: function () { var values = tplOptions(this.config.get('appName'), 'Controller', this.name); this.copyTpl('view', 'html', destination(this.destDirectory, this.name, 'view', 'html'), values); this.copyTpl('style', 'scss', destination(this.destDirectory, this.name, 'style', 'scss'), values); } });