Files: ca2790e4654757e6f97c0d5cff97163c1865af61 / lib / get-mcss.js
314 bytesRaw
1 | const readDir = require('read-directory') |
2 | const { join } = require('path') |
3 | |
4 | module.exports = function getMcss (cb) { |
5 | const collection = readDir.sync(join(__dirname, '../styles')) |
6 | |
7 | return values(collection).reverse().join('\n\n') |
8 | } |
9 | |
10 | function values (obj) { |
11 | return Object.keys(obj) |
12 | .map(key => obj[key]) |
13 | } |
14 |
Built with git-ssb-web