'use strict';
var _ = require('lodash');
var traverse = require('traverse');
var obj = require('object-path');
/**
* processManifest
*
* @param {Object} json
* @return {Object}
*/
module.exports = function(json) {
var defaults = {
paths: {
source: 'assets/',
dist: 'dist/'
}
};
var err = function(msg) {
msg = msg || 'file seems to be malformed';
throw new Error('Manifest File Error: ' + msg);
};
var required = ['dependencies'];
if (_.isPlainObject(json)) {
json = _.defaults(json, defaults);