@bem/sdk.config — library()

node v10.24.1
version: master
endpointsharetweet
const config = require("@bem/sdk.config")(); const mockfs = require('mock-fs'); const { stripIndent } = require('common-tags'); mockfs({ '.bemrc': stripIndent` module.exports = { 'root': true, 'libs': { 'bem-components': { 'path': 'libs/bem-components' } }, }`, 'libs/bem-components': { '.bemrc': stripIndent` module.exports = { 'levels': { 'common.blocks': {}, 'desktop.blocks': {} } }` } }); const libConf = await config.library('bem-components').then(lib => { return lib.get().then(conf => { return conf; }); }); libConf;
Loading…

no comments

    sign in to comment