public function ThemeGenerator::removeScssTools in AT Tools 8.3
Same name and namespace in other branches
- 8.2 at_theme_generator/src/Theme/ThemeGenerator.php \Drupal\at_theme_generator\Theme\ThemeGenerator::removeScssTools()
Remove SCSS tools and related files.
2 calls to ThemeGenerator::removeScssTools()
- 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 531
Class
- ThemeGenerator
- Generator form.
Namespace
Drupal\at_theme_generator\ThemeCode
public function removeScssTools() {
$scss_tools = [
'bower.json',
'package.json',
'.csslintrc',
'Gruntfile.js',
'Gemfile',
'Gemfile.lock',
'.gitignore',
];
foreach ($scss_tools as $tool) {
if (file_exists($this->target . '/' . $tool)) {
unlink($this->target . '/' . $tool);
}
}
}