code: function () {
        this.cfg = {};
  
        // Copy from prompt settings
        Object.keys(this.settings).forEach(function (key) {
          this.cfg[key] = this.settings[key];
        }.bind(this));
  
        // Boolean config
        options.forEach(function (option) {
          var name = option.name;
          option.choices.forEach(function (choice) {
            var value = choice.value;
            switch (option.type) {
              case 'list':
                this.cfg[value] = value === this.cfg[name];
                break;
              case 'checkbox':
                this.cfg[value] = _.includes(this.cfg[name], value);
                break;
            }
          }.bind(this));
        }.bind(this));
  
        // Extra config
        this.cfg.slugName = _s.slugify(this.cfg.name);
        this.cfg.testing = this.cfg.mocha || this.cfg.jasmine;
        this.cfg.cssSourceMap = (this.cfg.css && this.cfg.autoprefixer) ||
                                this.cfg.sass ||
                                (this.cfg.less && (this.cfg.autoprefixer || this.cfg.cssmin));
        this.cfg.jsSourceMap = this.cfg.coffee;
      }
docs: Config for template generator