@bem/sdk.config — librarySync()
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 = config.librarySync('bem-components').getSync();
libConf;
no comments