Subtheme of barrio
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

40 lines
992 B

var Immutable = require("immutable");
/**
* Any configurable paths/config
* @type {{pluginName: string, indexPage: string, socketJs: string, appJs: string, connector: string}}
*/
var defaults = {
pluginName: "UI",
indexPage: "/index.html",
socketJs: "/js/vendor/socket.js",
appJs: "/js/dist/app.js",
app: "/app.js",
appExtraJs: "/js/app-extra.js",
connector: "/js/connector.js",
pagesConfig: "/js/pages-config.js",
public: {
svg: "/img/icons/icons.svg",
css: "/css/core.min.css"
},
clientJs: "/lib/client-js.js",
socket: {
namespace: "/browser-sync-cp"
},
components: {
header: "/components/header.html",
footer: "/components/footer.html"
}
};
module.exports.defaults = defaults;
/**
* @param [userConfig]
* @returns {Map}
*/
module.exports.merge = function (userConfig) {
return Immutable
.fromJS(defaults)
.mergeDeep(userConfig);
};