git ssb

0+

mixmix / patchbay-scry



Tree: 7a6e1a0a968a0758f38993c9214cc21ac0d500f4

Files: 7a6e1a0a968a0758f38993c9214cc21ac0d500f4 / lib / get-mcss.js

477 bytesRaw
1const readDir = require('read-directory')
2const { join } = require('path')
3const getMaramaMCSS = require('marama/lib/get-mcss')
4
5module.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
16function values (obj) {
17 return Object.keys(obj)
18 .map(key => obj[key])
19}
20

Built with git-ssb-web