sirocco-wc
Version:
Scaffolding Tool for the fusion of lit with tailwind. DRY development in the speed of light with the zero configuration build tool parcel, playwright and jest testing. jenkinsCI ready.
20 lines (15 loc) • 572 B
JavaScript
const glob = require("glob");
const path = require('path');
const { sourceCss, config} = require("./config");
const buildCss = require("./build.css.js");
module.exports = (logger) => {
const styleFiles = glob.sync(sourceCss.replace(/\\/g, "/"));
logger.info(`Found ${styleFiles.length} style files`);
// maybe you want to throw an error if no style files were found for that package
if (!styleFiles.length) {
throw new Error(sourceCss, "why you no provide files?");
}
styleFiles.forEach((filePath) => {
buildCss(filePath, config, logger);
});
};