Skip to content

Commit

Permalink
Modify path to reflect folder structure changes in Laravel 5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
deeshrestha committed Sep 10, 2018
1 parent 265a809 commit b0dbee2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ZurbFoundationPreset.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ protected static function updatePackageArray(array $packages)
protected static function updateSass()
{
// clean up orphan files
$orphan_sass_files = glob(resource_path('/assets/sass/*.*'));
$orphan_sass_files = glob(resource_path('/sass/*.*'));

foreach($orphan_sass_files as $sass_file)
{
(new Filesystem)->delete($sass_file);
}

copy(__DIR__.'/foundation-stubs/_settings.scss', resource_path('assets/sass/_settings.scss'));
copy(__DIR__.'/foundation-stubs/foundation.scss', resource_path('assets/sass/foundation.scss'));
copy(__DIR__.'/foundation-stubs/app.scss', resource_path('assets/sass/app.scss'));
copy(__DIR__.'/foundation-stubs/_settings.scss', resource_path('sass/_settings.scss'));
copy(__DIR__.'/foundation-stubs/foundation.scss', resource_path('sass/foundation.scss'));
copy(__DIR__.'/foundation-stubs/app.scss', resource_path('sass/app.scss'));
}

/**
Expand All @@ -73,10 +73,10 @@ protected static function updateSass()
protected static function updateBootstrapping()
{
(new Filesystem)->delete(
resource_path('assets/js/bootstrap.js')
resource_path('js/bootstrap.js')
);

copy(__DIR__.'/foundation-stubs/bootstrap.js', resource_path('assets/js/bootstrap.js'));
copy(__DIR__.'/foundation-stubs/bootstrap.js', resource_path('js/bootstrap.js'));
}

/**
Expand Down

0 comments on commit b0dbee2

Please sign in to comment.