You are here

public function ThemeGenerator::removeScss in AT Tools 8.2

Same name and namespace in other branches
  1. 8.3 at_theme_generator/src/Theme/ThemeGenerator.php \Drupal\at_theme_generator\Theme\ThemeGenerator::removeScss()

Remove SCSS/SASS related directories and files.

2 calls to ThemeGenerator::removeScss()
ThemeGeneratorTypes::skinGenerator in at_theme_generator/src/Theme/ThemeGeneratorTypes.php
Generate skin type theme.
ThemeGeneratorTypes::starterkitGenerator in at_theme_generator/src/Theme/ThemeGeneratorTypes.php
Generate starter kit type theme.

File

at_theme_generator/src/Theme/ThemeGenerator.php, line 477

Class

ThemeGenerator
Generator form.

Namespace

Drupal\at_theme_generator\Theme

Code

public function removeScss() {
  $dirs = [
    '/styles/scss',
    '/styles/uikit',
    '/layout/site-builder/sass',
    '/layout/flex-builder/sass',
    '/styles/layout_plugin/sass',
    '/bower_components',
    '/node_modules',
  ];
  foreach ($dirs as $dir) {
    if (is_dir($this->target . '/' . $dir)) {
      $this->directoryOperations
        ->directoryRemove($this->target . '/' . $dir);
    }
  }
}