const path = require(`path`);

const sass2css = require(`../lib/sass2css.js`);

module.exports = (packageName) => {
  const packagePath = path.join(process.cwd(), `avalanche`, `packages`, packageName);
  const inputFile = path.join(packagePath, `test`, `test.scss`);
  const outputFile = path.join(process.cwd(), `dist`, `packages`, packageName, `css`, `index.css`);

  sass2css(inputFile, outputFile, { cwd: packagePath });
};

const path = require(`path`);

const sass2css = require(`../lib/sass2css.js`);

module.exports = (packageName) => {
  const packagePath = path.join(process.cwd(), `avalanche`, `packages`, packageName);
  const inputFile = path.join(packagePath, `scss`, `index.scss`);
  const outputFile = path.join(process.cwd(), `dist`, `packages`, packageName, `css`, `index.css`);

  sass2css(inputFile, outputFile, { cwd: packagePath });
};

Load the main scss file from packages to generate the styles for the demo code.
Load the main scss file from packages to generate the styles for the demo code.
