Skip to content

Commit

Permalink
install assets and save path appropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
dmolsen committed Jul 28, 2016
1 parent c976fa4 commit 7dd6d48
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/PatternLab/InstallerUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,14 +349,15 @@ protected static function parseComponentList($packageName,$sourceBase,$destinati
// iterate over the returned objects
foreach ($finder as $file) {

$ext = $file->getExtension();
$ext = $file->getExtension();
$pathName = $file->getPathname());

if ($ext == "css") {
$componentTypes["stylesheets"][] = str_replace($sourceBase.$source,$destination,$file->getPathname());
$componentTypes["stylesheets"][] = str_replace(DIRECTORY_SEPARATOR,"/",str_replace($sourceBase.$source,$destination,$pathName));
} else if ($ext == "js") {
$componentTypes["javascripts"][] = str_replace($sourceBase.$source,$destination,$file->getPathname());
$componentTypes["javascripts"][] = str_replace(DIRECTORY_SEPARATOR,"/",str_replace($sourceBase.$source,$destination,$pathName));
} else if ($ext == $templateExtension) {
$componentTypes["templates"][] = str_replace($sourceBase.$source,$destination,$file->getPathname());
$componentTypes["templates"][] = str_replace(DIRECTORY_SEPARATOR,"/",str_replace($sourceBase.$source,$destination,$pathName));
}

}
Expand Down

0 comments on commit 7dd6d48

Please sign in to comment.