git ssb

0+

mixmix / patchbay-scry



Tree: f4d5311f0568a4e8494ef82c9a12ff9545d9f9cd

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