Files: f4d5311f0568a4e8494ef82c9a12ff9545d9f9cd / 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