Skip to content

Commit 6987541

Browse files
Update the gitignore to ignore compiled CSS, JS assets
1 parent 3dee549 commit 6987541

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/InertiaJsPreset.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public static function install()
1313
static::updatePackages();
1414
static::updateBootstrapping();
1515
static::updateWelcomePage();
16+
static::updateGitignore();
1617
static::scaffoldComponents();
1718
static::removeNodeModules();
1819
}
@@ -43,6 +44,15 @@ protected static function updateWelcomePage()
4344
copy(__DIR__.'/inertiajs-stubs/resources/views/app.blade.php', resource_path('views/app.blade.php'));
4445
}
4546

47+
protected static function updateGitignore()
48+
{
49+
file_put_contents(
50+
base_path('.gitignore'),
51+
file_get_contents(__DIR__.'/inertiajs-stubs/gitignore'),
52+
FILE_APPEND
53+
);
54+
}
55+
4656
protected static function scaffoldComponents()
4757
{
4858
(new Filesystem)->copyDirectory(__DIR__.'/inertiajs-stubs/resources/js/Shared', resource_path('js'));

0 commit comments

Comments
 (0)