Read derived variables

This commit is contained in:
Jeremy Thomas
2018-06-16 19:01:35 +01:00
parent 87bf26ae2f
commit 7442c980e5
6 changed files with 133 additions and 98 deletions

View File

@@ -6,18 +6,21 @@ var writemetadata = require('metalsmith-writemetadata');
// var regex = '**/*.sass';
var regex_initial = '**/initial-variables.sass';
var regex_derived = '**/derived-variables.sass';
var initial_plugin = require('./read-initial-variables');
var derived_plugin = require('./read-derived-variables');
var initial_plugin = require('./01-read-initial-variables');
var derived_plugin = require('./02-read-derived-variables');
Metalsmith(__dirname)
.source('../../sass/utilities')
// .destination('./output')
// .clean(true)
.source('../../sass')
.use(filter(regex_initial))
.use(initial_plugin())
// .use(filter(regex_derived))
// .use(derived_plugin())
// .use(writemetadata())
.build(function(err) {
if (err) throw err;
});
Metalsmith(__dirname)
.source('../../sass')
.use(filter(regex_derived))
.use(derived_plugin())
.build(function(err) {
if (err) throw err;
});