akashacms-blog-podcast
Advanced tools
Comparing version 0.4.3 to 0.4.4
39
index.js
/** | ||
* | ||
* Copyright 2015 David Herron | ||
@@ -20,3 +19,2 @@ * | ||
var path = require('path'); | ||
@@ -32,2 +30,39 @@ var util = require('util'); | ||
/** | ||
* prepareConfig - Simplify the configuration object by filling in defaults | ||
* that make sense for blogPodcast sites. | ||
*/ | ||
module.exports.prepareConfig = function(akashacms, config) { | ||
if (!config) { | ||
config = {}; | ||
} | ||
config = akashacms.prepareConfig(config); | ||
// If no config function, then set up a default set of plugins | ||
if (!config.config) { | ||
config.config = function(akasha) { | ||
akasha.registerPlugins([ | ||
{ name: 'akashacms-breadcrumbs', plugin: require('akashacms-breadcrumbs') }, | ||
{ name: 'akashacms-embeddables', plugin: require('akashacms-embeddables') }, | ||
{ name: 'akashacms-blog-podcast', plugin: require('akashacms-blog-podcast') }, | ||
{ name: 'akashacms-social-buttons', plugin: require('akashacms-social-buttons') }, | ||
{ name: 'akashacms-base', plugin: require('akashacms-base') } | ||
]); | ||
}; | ||
} | ||
return config; | ||
}; | ||
/** | ||
* startup - Simplify configuration for a Blog using Grunt | ||
*/ | ||
module.exports.startup = function(akashacms, config) { | ||
module.exports.prepareConfig(akashacms, config); | ||
// Now that we've prepared the config object, call akashacms.config | ||
akashacms.config(config); | ||
}; | ||
/** | ||
* Add ourselves to the config data. | ||
@@ -34,0 +69,0 @@ **/ |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"engines": { | ||
@@ -17,0 +17,0 @@ "node": ">=0.10.1" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9086
201