code: function(name, config) {
          if (typeof name !== 'string') {
            throw new TypeError('expected the first argument to be a string');
          }
          if (utils.isObject(config)) {
            config.name = name;
          }
          this.emit('scaffold.set', name, config);
          this.scaffolds[name] = config;
          return this;
        }
docs: Add scaffold `name` to `app.scaffolds`.
  
  ```js
  app.addScaffold('foo', {
  docs: {
  options: {},
  files: {
  src: ['*'],
  dest: 'foo'
  }
  }
  });
  ```
  @param {String} `name`
  @param {Object|Function} `config`
  @api public