Files: 7a6e1a0a968a0758f38993c9214cc21ac0d500f4 / lib / get-mcss.js
477 bytesRaw
1 | const readDir = require('read-directory') |
2 | const { join } = require('path') |
3 | const getMaramaMCSS = require('marama/lib/get-mcss') |
4 | |
5 | module.exports = function getMcss (cb) { |
6 | const collection = readDir.sync(join(__dirname, '..'), { |
7 | extensions: false, |
8 | filter: '**/*.mcss', |
9 | ignore: '**/node_modules/**' |
10 | }) |
11 | |
12 | return [ getMaramaMCSS(), ...values(collection).reverse() ] |
13 | .join('\n\n') |
14 | } |
15 | |
16 | function values (obj) { |
17 | return Object.keys(obj) |
18 | .map(key => obj[key]) |
19 | } |
20 |
Built with git-ssb-web