Skip to content
Snippets Groups Projects
Commit b4e79122 authored by jurgenhaas's avatar jurgenhaas
Browse files

#7 [WIP] Introduce a base theme settings

parent 97dade6e
No related branches found
No related tags found
No related merge requests found
......@@ -330,16 +330,18 @@ class Handler
$finder = new Finder();
$finder->ignoreDotFiles(FALSE);
// Copy all files
$this->copyFiles($fs, $finder, $pluginRoot . '/templates', $destination);
if ($this->getOption('copy_starterkit')) {
// Copy Bootstrap base theme files
$bootstrapPackage = $this->getPackage('drupal/bootstrap');
if ($bootstrapPackage) {
$bootstrapRoot = $this->getInstallationManager()->getInstallPath($bootstrapPackage);
$this->copyFiles($fs, $finder, $bootstrapRoot . '/starterkits/sass', $destination);
# TODO: Replace this with the base_theme settings from composer.json
# TODO: Those settings also need to go into default settings above
// Copy all files
$this->copyFiles($fs, $finder, $pluginRoot . '/templates', $destination);
if ($this->getOption('copy_starterkit')) {
// Copy Bootstrap base theme files
$bootstrapPackage = $this->getPackage('drupal/bootstrap');
if ($bootstrapPackage) {
$bootstrapRoot = $this->getInstallationManager()->getInstallPath($bootstrapPackage);
$this->copyFiles($fs, $finder, $bootstrapRoot . '/starterkits/sass', $destination);
}
}
}
// Remove bower stuff if that's available globally
if ($this->getOption('bower_assets')['global']) {
......
......@@ -4,3 +4,8 @@
@import '{{ import }}';
{% endfor %}
{% endfor %}
// ============== Using base theme {{ base_theme.package }}============================
{% for import in base_theme.import %}
@import '{{ import }}';
{% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment