index.js
function init(_options) {
	// Build global options
	var options = _.merge(defaults, _options);
	// Store paths
	base = options.base;
	custom = options.custom;
	// Retrieve build definition
	build = options.build = (typeof options.build === 'object') ? options.build : require(options.build);
	// Create YAML schema (create custom types)
	yamlSchema = createYamlSchema(options.customTypes);

	return options;
}
function init(_options) {
	// Build global options
	var options = _.merge(defaults, _options);
	// Store paths
	base = options.base;
	custom = options.custom;
	// Retrieve build definition
	build = options.build = (typeof options.build === 'object') ? options.build : require(options.build);
	// Create YAML schema (create custom types)
	yamlSchema = createYamlSchema(options.customTypes);

	return options;
}
function init ( _options ) { // Build global options var options = _ . merge ( defaults , _options ) ; // Store paths base = options . base ; custom = options . custom ; // Retrieve build definition build = options . build = ( typeof options . build === 'object' ) ? options . build : require ( options . build ) ; // Create YAML schema (create custom types) yamlSchema = createYamlSchema ( options . customTypes ) ; return options ; }
Initializes global variables. In particular, merges defaults and custom options.

@param {Object} custom options
@return {Object} merged options
Initializes global variables . In particular merges defaults and custom options .