Skip to content

Commit 8b4bee8

Browse files
committed
Modify path to reflect folder structure change in Laravel 5.7
1 parent 0a5808a commit 8b4bee8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/BulmaPreset.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,17 @@ protected static function updatePackageArray(array $packages)
5353
protected static function updateSass()
5454
{
5555
// clean up orphan files
56-
$orphan_sass_files = glob(resource_path('/assets/sass/*.*'));
56+
$orphan_sass_files = glob(resource_path('/sass/*.*'));
5757

5858
foreach($orphan_sass_files as $sass_file)
5959
{
6060
(new Filesystem)->delete($sass_file);
6161
}
6262

63-
copy(__DIR__.'/bulma-stubs/initial-variables.sass', resource_path('assets/sass/initial-variables.sass'));
64-
copy(__DIR__.'/bulma-stubs/bulma.sass', resource_path('assets/sass/bulma.sass'));
65-
copy(__DIR__.'/bulma-stubs/bulma-extensions.sass', resource_path('assets/sass/bulma-extensions.sass'));
66-
copy(__DIR__.'/bulma-stubs/app.scss', resource_path('assets/sass/app.scss'));
63+
copy(__DIR__.'/bulma-stubs/initial-variables.sass', resource_path('sass/initial-variables.sass'));
64+
copy(__DIR__.'/bulma-stubs/bulma.sass', resource_path('sass/bulma.sass'));
65+
copy(__DIR__.'/bulma-stubs/bulma-extensions.sass', resource_path('sass/bulma-extensions.sass'));
66+
copy(__DIR__.'/bulma-stubs/app.scss', resource_path('sass/app.scss'));
6767
}
6868

6969

@@ -76,12 +76,12 @@ protected static function updateBootstrapping()
7676
{
7777
$file = new Filesystem;
7878

79-
$file->delete(resource_path('assets/js/bootstrap.js'));
80-
$file->delete(resource_path('assets/js/app.js'));
79+
$file->delete(resource_path('js/bootstrap.js'));
80+
$file->delete(resource_path('js/app.js'));
8181

82-
copy(__DIR__.'/bulma-stubs/bootstrap.js', resource_path('assets/js/bootstrap.js'));
83-
copy(__DIR__.'/bulma-stubs/app.js', resource_path('assets/js/app.js'));
84-
copy(__DIR__.'/bulma-stubs/bulma-extensions.js', resource_path('assets/js/bulma-extensions.js'));
82+
copy(__DIR__.'/bulma-stubs/bootstrap.js', resource_path('js/bootstrap.js'));
83+
copy(__DIR__.'/bulma-stubs/app.js', resource_path('js/app.js'));
84+
copy(__DIR__.'/bulma-stubs/bulma-extensions.js', resource_path('js/bulma-extensions.js'));
8585
}
8686

8787

0 commit comments

Comments
 (0)