-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
23 lines (20 loc) · 1020 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const _ = require('lodash');
// Levels source example: yandex github /lego/islands/blob/dev/index.js
// example getLevels() from lego:
({ desktop:
[ { path: '/Users/invntrm/lego/islands/common.blocks', check: true },
{ path: '/Users/invntrm/lego/islands/desktop.blocks', check: true } ],
'touch-phone':
[ { path: '/Users/invntrm/lego/islands/common.blocks', check: true },
{ path: '/Users/invntrm/lego/islands/touch.blocks', check: true },
{ path: '/Users/invntrm/lego/islands/touch-phone.blocks', check: true } ],
'touch-pad':
[ { path: '/Users/invntrm/lego/islands/common.blocks', check: true },
{ path: '/Users/invntrm/lego/islands/touch.blocks', check: true },
{ path: '/Users/invntrm/lego/islands/touch-pad.blocks', check: true } ] });
const getLevels = require(process.cwd()).getLevels; // cwd = project root
module.exports = {
levels: _(getLevels()).values().flatten().map('path').uniq().value(),
techs: ['js', 'bemhtml.js'],
platformRe: /([a-zA-Z-]+)\.blocks/,
};