biofriction-wp-theme/node_modules/browser-sync-ui/lib/config.js

40 lines
992 B
JavaScript
Raw Normal View History

2021-10-26 14:18:09 +02:00
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);
};