code: function buildConf(options) {
      const opts = options || {};
      const config = _.isPlainObject(opts) ? opts.config : {};
      // updating default JSDoc configuration.
      // see http://usejsdoc.org/about-configuring-jsdoc.html
      return _.defaultsDeep(config, {
          tags: {
              allowUnknownTags: _.isBoolean(opts.allowUnknownTags) ? opts.allowUnknownTags : true,
              dictionaries: _.isArray(opts.dictionaries) ? opts.dictionaries : ['jsdoc', 'closure']
          },
          source: {
              includePattern: _.isString(opts.includePattern) ? opts.includePattern : '.+\\.js(doc|x)?$',
              excludePattern: _.isString(opts.excludePattern) ? opts.excludePattern : '(^|\\/|\\\\)_'
          },
          templates: {
              cleverLinks: false,
              monospaceLinks: false
          },
          plugins: _.isArray(opts.plugins) ? opts.plugins : []
      });
  }
docs: Builds the configuration object for JSDoc. JSDoc takes a filepath for configuration (-c command). So we need to create a temp JSON file. This function creates the conf object to be written to that temp file before passing to jsdoc as a command line argument.