Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge override metadata into global metadata output.
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrove committed Mar 9, 2011
1 parent 82b9b5d commit 4d8c8b3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bin/selleck
Expand Up @@ -265,15 +265,21 @@ if (options.server) {
log('Writing combined metadata to ' + options['out-meta'], 'info');

meta = {
project: projectMeta,
project: util.merge(projectMeta, options.overrideMeta),
components: {}
};

docs.components.forEach(function (component) {
var data = selleck.getMetadata(component.path, 'component');

if (data && data.name) {
meta.components[data.name] = data;
meta.components[data.name] = util.merge(
meta.project.componentDefaults || {},
data,
options.overrideMeta
);

delete meta.components[data.name].componentDefaults;
}
});

Expand Down

0 comments on commit 4d8c8b3

Please sign in to comment.