git ssb

0+

mixmix / patchbay-scry



Tree: 462c60502f8c45618c08ea0232132580d5801964

Files: 462c60502f8c45618c08ea0232132580d5801964 / 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