Skip to content

Commit

Permalink
remove subdirectories from atom packages
Browse files Browse the repository at this point in the history
  • Loading branch information
arminrosu committed Apr 4, 2016
1 parent 16717a2 commit 585f691
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build/src/Raincolour/Core/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,12 @@ protected function buildOutputPath($pattern, $template, $theme)
// Build path array from directory locations.
$path[] = $this->config->dir('output');
$path[] = $pattern->get('directory');
$path[] = $theme->get('theme.dir');

// @NOTE Atom doesn't display packages in subdirectories.
if ($pattern->get('directory') !== 'atom') {
$path[] = $theme->get('theme.dir');
}

$path[] = $template->get('directory');
$name = $this->buildFileName($template->get('name'), $theme);
$path[] = $name.$template->get('extension');
Expand Down

0 comments on commit 585f691

Please sign in to comment.