mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 10:14:29 -07:00
24 lines
491 B
JavaScript
24 lines
491 B
JavaScript
module.exports = plugin;
|
|
|
|
var utils = require('./utils');
|
|
|
|
function plugin() {
|
|
return (files, metalsmith, done) => {
|
|
setImmediate(done);
|
|
|
|
Object.keys(files).forEach(file_path => {
|
|
const {file_name, lines} = utils.getLines(files, file_path);
|
|
|
|
lines.forEach(line => {
|
|
const variable = utils.parseLine(line);
|
|
|
|
if (variable != false) {
|
|
console.log('variable', variable);
|
|
}
|
|
});
|
|
|
|
metalsmith.variables = variables;
|
|
});
|
|
};
|
|
}
|