import { join } from 'path';
import { cpy } from '../utils';

async function generatePlainCssPreprocessor(params) {
  const cssDir = join(__base, 'build', params.uuid, 'public', 'stylesheets');
  const mainCss = join(__base, 'modules', 'css-preprocessor', 'main.css');
  const normalizeCss = join(__base, 'modules', 'css-preprocessor', 'normalize.css');

  switch (params.framework) {
    case 'express':
      if (params.cssFramework === 'none') {
        await cpy([normalizeCss, mainCss], cssDir);
      }
      break;
    case 'hapi':
      break;
    case 'meteor':
      break;
    default:
  }
}

export default generatePlainCssPreprocessor;

import { join } from 'path';
import { cpy } from '../utils';

async function generatePlainCssPreprocessor(params) {
  const cssDir = join(__base, 'build', params.uuid, 'public', 'stylesheets');
  const mainCss = join(__base, 'modules', 'css-preprocessor', 'main.css');
  const normalizeCss = join(__base, 'modules', 'css-preprocessor', 'normalize.css');

  switch (params.framework) {
    case 'express':
      if (params.cssFramework === 'none') {
        await cpy([normalizeCss, mainCss], cssDir);
      } else {
        await cpy([mainCss], cssDir);
      }
      break;
    case 'hapi':
      break;
    case 'meteor':
      break;
    default:
  }
}

export default generatePlainCssPreprocessor;

Copy only main.css if css framework is selected
Copy only main.css if css framework is selected
