git ssb

2+

mixmix / ticktack



Tree: 119e5a731640d722b01b4aa15a4ec30a09b17285

Files: 119e5a731640d722b01b4aa15a4ec30a09b17285 / styles / mcss.js

599 bytesRaw
1const nest = require('depnest')
2const readDirectory = require('read-directory')
3const path = require('path')
4const { basename } = path
5const { each } = require('libnested')
6
7const contents = readDirectory.sync(path.join(__dirname, '..'), {
8 extensions: false,
9 filter: '**/*.mcss',
10 ignore: '**/node_modules/**'
11})
12
13exports.gives = nest('styles.mcss')
14
15exports.create = function (api) {
16 return nest('styles.mcss', mcss)
17
18 function mcss (sofar = {}) {
19 each(contents, (content, [filename]) => {
20 const name = basename(filename)
21 sofar[name] = content
22 })
23 return sofar
24 }
25}
26

Built with git-ssb-web