2016-10-23 07:27:18 +03:00
|
|
|
const path = require('path');
|
|
|
|
const fs = require('fs');
|
|
|
|
|
|
|
|
const docs = path.join(__dirname, '../docs/index');
|
2016-10-24 16:13:02 +03:00
|
|
|
const src = path.join(__dirname, '../src/components');
|
|
|
|
const ui = path.join(__dirname, '../src/index.js');
|
2016-10-23 07:27:18 +03:00
|
|
|
|
|
|
|
module.exports = fs
|
|
|
|
.readdirSync(src)
|
|
|
|
.filter((entry) => fs.statSync(path.join(src, entry)).isDirectory())
|
|
|
|
.map((entry) => ({
|
|
|
|
name: entry,
|
|
|
|
path: path.join(src, entry, './index.js')
|
|
|
|
}))
|
|
|
|
.concat([{
|
|
|
|
name: 'docs',
|
|
|
|
path: docs
|
|
|
|
}, {
|
|
|
|
name: 'ui',
|
|
|
|
path: ui
|
|
|
|
}]);
|